Better export UI

This commit is contained in:
Nikita 2025-10-20 20:19:52 +03:00
parent 418bca79b2
commit ff83994733
8 changed files with 195 additions and 109 deletions

View file

@ -203,8 +203,8 @@ export function useReplContext() {
const handleEvaluate = () => {
editorRef.current.evaluate();
};
const handleExport = async (begin, end) => {
await editorRef.current.exportAudio(begin, end);
const handleExport = async (begin, end, sampleRate, downloadName = undefined) => {
await editorRef.current.exportAudio(begin, end, sampleRate, downloadName);
};
const handleShuffle = async () => {
const patternData = await getRandomTune();