Class: BytebeatNode

BytebeatNode no AudioWorkletNode(context, bytebeat, frequencyopt, tempoopt, floatModeopt, bufferLengthopt)

A polyfill for BytebeatNode in systems that don't have AudioWorkletNode. Instead of real time generation, a thirty second sample is generated 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, 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: