don't use labeled statements in example for now

This commit is contained in:
Felix Roos 2024-06-04 00:10:46 +02:00
parent 771eb31d3f
commit 666c695c63
3 changed files with 5 additions and 4 deletions

View File

@ -1163,8 +1163,10 @@ export const { octave } = registerControl('octave');
* @name orbit
* @param {number | Pattern} number
* @example
* $: s("hh*6").delay(.5).delaytime(.25).orbit(1)
* $: s("~ sd ~ sd").delay(.5).delaytime(.125).orbit(2)
* stack(
* s("hh*6").delay(.5).delaytime(.25).orbit(1),
* s("~ sd ~ sd").delay(.5).delaytime(.125).orbit(2)
* )
*/
export const { orbit } = registerControl('orbit');
// TODO: what is this? not found in tidal doc Answer: gain is limited to maximum of 2. This allows you to go over that

View File

@ -191,6 +191,7 @@ evalScope(
},
);
// TBD: use transpiler to support labeled statements
export const queryCode = async (code, cycles = 1) => {
const { pattern } = await evaluate(code);
const haps = pattern.sortHapsByPart().queryArc(0, cycles);

View File

@ -108,12 +108,10 @@ We can add as often as we like:
.scale("C5:minor")
.sound("gm_xylophone")
.room(.4).delay(.125)
$: note("c2 [eb3,g3]".add("<0 <1 -1>>"))
.adsr("[.1 0]:.2:[1 0]")
.sound("gm_acoustic_bass")
.room(.5)
$: n("0 1 [2 3] 2").sound("jazz").jux(rev)`}
/>