MultiPlayer Op

MultiPlayer

This op is deprecated!

It will not receive any updates

Plays back multiple one-shot samples


MultiPlayer is well suited for one-shots, multi-sampled instruments or any time you need to play a bunch of audio buffers. It has eight ports to which you can connect an AudioBuffer – which holds your sample (wav / mp3 / ogg). It also brings some options to change the pitch of each sample, or set its duration.

For every action (Start Buffer / Start Buffer (Loop) / Stop Buffer / Stop All Buffers ) you can specify the Time+0 means right now. By putting in a bigger number you can schedule things in the future, e.g. starting a sample with Time = +3 will start the playback in three seconds.

**Important: **When you trigger Start Buffer / Start Buffer (Loop) / Stop Buffer you also need to specify the Buffer Index – so which of the buffers you want to start / stop. By default this is 0, so the first buffer will be used (Audio Buffer 0).

Tone.js Reference


Full Name
  • Ops.Extension.Deprecated.Tonejs.MultiPlayer
Visibility
  •  Extension Op - Visible to all users
License
  • MIT
AuthorgithubMaintained by TeamJavascript Libraries








No op example found on this server

INPUT PORTS


AudioBuffer 0 (Object)

Connect this to an Ops.WebAudio.AudioBuffer op, which holds the audio-sample you want to use

AudioBuffer 1 (Object)

Connect this to an Ops.WebAudio.AudioBuffer op, which holds the audio-sample you want to use

AudioBuffer 2 (Object)

Connect this to an Ops.WebAudio.AudioBuffer op, which holds the audio-sample you want to use

AudioBuffer 3 (Object)

Connect this to an Ops.WebAudio.AudioBuffer op, which holds the audio-sample you want to use

AudioBuffer 4 (Object)

Connect this to an Ops.WebAudio.AudioBuffer op, which holds the audio-sample you want to use

AudioBuffer 5 (Object)

Connect this to an Ops.WebAudio.AudioBuffer op, which holds the audio-sample you want to use

AudioBuffer 6 (Object)

Connect this to an Ops.WebAudio.AudioBuffer op, which holds the audio-sample you want to use

AudioBuffer 7 (Object)

Connect this to an Ops.WebAudio.AudioBuffer op, which holds the audio-sample you want to use

Start Buffer (Trigger)

Starts the buffer at index Buffer Index at time Time, also uses Offset Duration, Pitch, Gain

Buffer Index (Number)

The number of the buffer to start / stop

Time (Number)

When to start / stop a buffer – +0 = now, +3 = in three seconds

Fade In Time (Number)

How long it takes until the sample is at full volume

Offset (Number)

The offset into the buffer to play from, e.g. 0.1 skips the first 0.1 seconds

Duration (Number)

How long to play the buffer for, can be left empty

Pitch (Number)

The interval to repitch the buffer, -1 = one semitone down, 1 = one semitones up, 12 = one octave up

Gain (Number)

The gain to play the sample at, 1 = default

Start Buffer (Loop) (Trigger)

Same as Start Buffer but the playback will be looped. Starts the buffer at index Buffer Index at time Time, also uses Offset Duration, Pitch, Gain. Additionally you can specify Loop Start and Loop End

Loop Start Time (Number)

When to start the loop, can be left empty

Loop End Time (Number)

When to end the loop, can be left empty

Stop Buffer (Trigger)

Stops the buffer at index Buffer Index at time Time. If this buffer is being played multiple times, only the first one will be stopped.

Stop All Buffers (Trigger)

Stops all buffers at time Time, will not use Fade Out Time

Fade Out Time (Number)

How long it takes until the buffer is fully stopped when Stop Buffer was triggered

Volume (Number)

The volume of the MultiPlayer in dB

Mute (Number)

Mutes the whole player

OUTPUT PORTS


Audio Out (Object)

The audio out


Patches using MultiPlayer

  • Examples
  • Public
  • My Patches