Class: BytebeatNode

BytebeatNode(context, bytebeat, frequencyopt, tempoopt, floatModeopt)

BytebeatNode runs in the main scope. Error checking is performed in the main scope before attempting to instantiate the function in the AudioWorkletScope

Constructor

new BytebeatNode(context, bytebeat, frequencyopt, tempoopt, floatModeopt)

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
Source:

Methods

(static) evaluateBytebeat(bytebeat) → {function}

Parameters:
Name Type Description
bytebeat string
Source:
Returns:
Type
function

(static) evaluateBytebeat(bytebeat) → {function}

Parameters:
Name Type Description
bytebeat string
Source:
Returns:
Type
function

(static) validateBytebeat(bytebeat) → {boolean}

Easy way of checking whether a bytebeat code is valid
Parameters:
Name Type Description
bytebeat string
Source:
Returns:
Whether the string represents a valid bytebeat code
Type
boolean

(static) validateBytebeat(bytebeat) → {boolean}

Easy way of checking whether a bytebeat code is valid
Parameters:
Name Type Description
bytebeat string
Source:
Returns:
Whether the string represents a valid bytebeat code
Type
boolean