AudioBufferPlayer_v2 Op
Play back audio data stored in an AudioBuffer
Summary (oneliner)
<p>Typically connected to a <a href="/op/Ops.WebAudio.AudioBuffer">Ops.WebAudio.AudioBuffer</a>, which holds the sample / audio file. In contrast to the <a href="https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode">Web Audio AudioBufferSourceNode</a>, which can only play back an AudioBuffer once, this op can play back multiple times (every time the playback finished a new <code>AudioBufferSourceNode</code> is being created internally). </p>
- Ops.WebAudio.AudioBufferPlayer_v2
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
INPUT PORTS
<p>The audio buffer (typically from an audio file) which contains the audio data. In most cases you need to create a <code>AudioBuffer</code> op to load your audio sample and connect it to this port.</p>
Playback Controls
<i>boolean</i>
)<p>When set the playback is started</p>
<i>boolean</i>
)<p>Weather or not the playback should start from the beginning once the end has been reached. Please note that some browsers have problems doing a perfect loop with certain file types. If you e.g. use an MP3-file as <code>AudioBuffer</code> Google Chrome might produce a slight gap between the loops. Ogg-files sometimes work better.</p>
<p>trigger to restart the playback</p>
Time Controls
<p>Shifts the playback position</p>
Miscellaneous
<p>How fast / slow the audio should be played back, <code>1</code> is normal speed, <code>2</code> double speed, <code>0.5</code> half speed.</p>
<p>How much the sound should be detuned in <a href="https://en.wikipedia.org/wiki/Cent_(music)">cents</a>. <code>-100</code> means one semitone lower, <code>100</code> one semitone higher, <code>1200</code> is one octave higher (<code>12 * 100</code>).</p>
OUTPUT PORTS
<p>The audio out object</p>
<i>boolean</i>
Number)<p>returns true if audio file is playing, false if not</p>
<i>boolean</i>
Number)<p>true if currently loading an audio source</p>