Better export UI
This commit is contained in:
parent
418bca79b2
commit
ff83994733
8 changed files with 195 additions and 109 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue