@@ -305,7 +305,7 @@ async function start() {
305
305
byteBeatNode .setType (ByteBeatNode .Type .byteBeat );
306
306
byteBeatNode .setExpressionType (ByteBeatNode .ExpressionType .infix );
307
307
byteBeatNode .setDesiredSampleRate (8000 );
308
- byteBeatNode .setExpressions ([' ((t >> 10) & 42) * t' ]);
308
+ await byteBeatNode .setExpressions ([' ((t >> 10) & 42) * t' ]);
309
309
byteBeatNode .connect (context .destination );
310
310
}
311
311
```
@@ -384,14 +384,14 @@ There's just one class `ByteBeatNode`. You must call the async function `ByteBea
384
384
Returns the number of channels output
385
385
by the current expression.
386
386
387
- * `getSampleForTime(time : number, context, stack, channel: number)`
387
+ * `async getSamplesForTimeRange(start: number, end: number: numSamples : number, context, stack, channel: number)`
388
388
389
389
Gets a -1 to +1 from the current expression for the given time (time is the `t` value in your expression)
390
390
391
391
This function is useful for visualizers.
392
392
393
- To make a stack call `ByteBeatNode .createStack()`. To create a context call
394
- `ByteBeatNode .createContext`.
393
+ To make a stack call `byteBeat .createStack()`. To create a context call
394
+ `byteBeat .createContext`.
395
395
A stack is used for postfix expressions.
396
396
[See docs on postfix](#postfix). The context
397
397
is used for keeping expressions state for
0 commit comments