WIP non-realtime exporting
This commit is contained in:
parent
6e58c973af
commit
0fbde61b2d
12 changed files with 217 additions and 31 deletions
|
|
@ -203,6 +203,9 @@ export function useReplContext() {
|
|||
const handleEvaluate = () => {
|
||||
editorRef.current.evaluate();
|
||||
};
|
||||
const handleExport = (begin, end) => {
|
||||
editorRef.current.exportAudio(begin, end);
|
||||
};
|
||||
const handleShuffle = async () => {
|
||||
const patternData = await getRandomTune();
|
||||
const code = patternData.code;
|
||||
|
|
@ -225,6 +228,7 @@ export function useReplContext() {
|
|||
handleShuffle,
|
||||
handleShare,
|
||||
handleEvaluate,
|
||||
handleExport,
|
||||
init,
|
||||
error,
|
||||
editorRef,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue