Compute. File. Load
The implementation uses the Web Audio API. If your browser does not support this API, this node can not be used and will return an error message.
Currently, only uploading audio data with the MIME-type "audio/wav" is supported. For decoding the information into a GSN signal, the implementation makes use of the function decodeAudioData of the Web Audio API.
The sample rate input slot defines the sample rate to which the data from the input file is resampled. For a minimal derivation from the original, the selected sample rate should match the one of the input file. Selectable sample rates are at least in the range 22050 to 96000 but some browsers might support a wider range.
If the file contains multiple audio channels, the channel input slot selects which channel to load. If the selected channel is not available in the input file, the first channel (channel=0) is loaded instead.
The example Play Audio File demonstrates the usage of this node.