Audio-render is a pass-through audio stream, providing structure for rendering stream audio data.
It resolves common routines like frequency analysis (fft), buffering data, reading pcm format, providing unified API for rendering both in node/browser, events, options, hooks etc. Creating new rendering components based on audio-render is as simple as creating them from scratch, but times more reliable. It is also useful for creating quick debuggers.
Usage
myAudioStream;
API
var Generator = ;var Speaker = ;var RenderStream = ;var isBrowser = ; //create rendering stream from passed optionsvar renderer = ; //Depending on the enviromnent, expose canvasisBrowser && documentbody; renderer; //If renderer is not piped, it works as a sink, else - as pass-throughGenerator;
Related
audio-analyser — audio analyser stream.
audio-spectrum — render audio spectrum.
audio-spectrogram — render audio spectrogram.
audio-waveform — render audio waveform.
audio-stat — render any kind of audio info: waveform, spectrogram etc.
audio-spiral — render spiral spectrogram, based on audio-render.
drawille-canvas — node/browser canvas class.
pcm-util — utils for work with pcm-streams.