Tone Audio Context

PHOTO EMBED

Sat Jun 25 2022 13:23:53 GMT+0000 (Coordinated Universal Time)

Saved by @Polly #webaudioapi #tonejs

context = new Tone.context

### Examples

# Destination inputNodes 

## gets PCM data from stream/file and returns small segments at a time 
context.decodeAudioData(audioData:ArrayBuffer) -> returns AudioBuffer 



# Source outputNodes to play audio streams/files

## creates html controls for the input passed to it.
context.createMediaElementSource() -> returns <audio> 
content_copyCOPY

Creates Audio Nodes = input/output packages for processing Destination Node = inputs - the steam/file to consume Source Node = outputs - the device to play/control the stream/file