docs execution test

This commit is contained in:
2023-08-26 20:40:08 +02:00
parent b4626d32c6
commit 9d5990186c
2 changed files with 31 additions and 15 deletions

View File

@ -56,6 +56,18 @@ export class UserAPI {
//this.load = samples("github:tidalcycles/Dirt-Samples/master");
}
_executeCodeExample = (code: string) => {
console.log("Executing documentation example");
this.app.universes[
this.app.selected_universe as string
].global.candidate = code as string;
tryEvaluate(
this.app,
this.app.universes[this.app.selected_universe as string].global
);
};
_all_samples = (): object => {
return soundMap.get();
};