Divooka Reference

Instrument

1 node

On this page 1

Play

Function

Overload 1 of 2

Signature
Play -> AudioBuffer
    Instrument: Instrument
    notes: IReadOnlyList<Music Event>
    sampleRate: Integer
    tail: Number
AudioBuffer Play(
    Instrument Instrument,
    IReadOnlyList<MusicEvent> notes,
    int sampleRate,
    double tail)

Plays performed notes - times in seconds - into a stereo clip that runs Tail seconds past the last note's end.

Parameters

nametypedefaultdescription
InstrumentInstrument—
notesIReadOnlyList<Music Event>—
sampleRateInteger—
tailNumber—

Returns

resultAudioBuffer

Overload 2 of 2

Signature
Play -> AudioBuffer
    Instrument: Instrument
    music: Music
    beatsPerMinute: Number
    tail: Number
    sampleRate: Integer
AudioBuffer Play(
    Instrument Instrument,
    Music music,
    double beatsPerMinute = 120,
    double tail = 1,
    int sampleRate = 44100)

Plays music at a tempo.

Parameters

nametypedefaultdescription
InstrumentInstrument—
musicMusic—
beatsPerMinuteNumber120
tailNumber1
sampleRateInteger44100

Returns

resultAudioBuffer
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Instrument
Package
Music