Skip to content

Commit a22c91e

Browse files
committed
README
1 parent e2d48bd commit a22c91e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ async function start() {
305305
byteBeatNode.setType(ByteBeatNode.Type.byteBeat);
306306
byteBeatNode.setExpressionType(ByteBeatNode.ExpressionType.infix);
307307
byteBeatNode.setDesiredSampleRate(8000);
308-
byteBeatNode.setExpressions(['((t >> 10) & 42) * t']);
308+
await byteBeatNode.setExpressions(['((t >> 10) & 42) * t']);
309309
byteBeatNode.connect(context.destination);
310310
}
311311
```
@@ -384,14 +384,14 @@ There's just one class `ByteBeatNode`. You must call the async function `ByteBea
384384
Returns the number of channels output
385385
by the current expression.
386386
387-
* `getSampleForTime(time: number, context, stack, channel: number)`
387+
* `async getSamplesForTimeRange(start: number, end: number: numSamples: number, context, stack, channel: number)`
388388
389389
Gets a -1 to +1 from the current expression for the given time (time is the `t` value in your expression)
390390
391391
This function is useful for visualizers.
392392
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`.
395395
A stack is used for postfix expressions.
396396
[See docs on postfix](#postfix). The context
397397
is used for keeping expressions state for

0 commit comments

Comments
 (0)