Constructor
new BytebeatNode(context, bytebeat, frequencyopt, tempoopt, floatModeopt, bufferLengthopt)
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
context |
AudioContext | |||
bytebeat |
string | The bytebeat function to be played | ||
frequency |
number |
<optional> |
8000 | The fundamental frequency of the note to be played, used by 't' |
tempo |
number |
<optional> |
120 | The tempo that will be translated to counter 'tt' |
floatMode |
boolean |
<optional> |
false | Whether the bytebeat function expects an output between 0:255 (default) or -1:1 |
bufferLength |
number |
<optional> |
2 | Length of the buffer to render in seconds |
- Source: