Instrument
1 node
On this page 1
Play
FunctionOverload 1 of 2
Signature
Play -> AudioBuffer
Instrument: Instrument
notes: IReadOnlyList<Music Event>
sampleRate: Integer
tail: NumberAudioBuffer 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
| name | type | default | description |
|---|---|---|---|
| Instrument | Instrument | — | |
| notes | IReadOnlyList<Music Event> | — | |
| sampleRate | Integer | — | |
| tail | Number | — |
Returns
| result | AudioBuffer |
Overload 2 of 2
Signature
Play -> AudioBuffer
Instrument: Instrument
music: Music
beatsPerMinute: Number
tail: Number
sampleRate: IntegerAudioBuffer Play(
Instrument Instrument,
Music music,
double beatsPerMinute = 120,
double tail = 1,
int sampleRate = 44100)Plays music at a tempo.
Parameters
| name | type | default | description |
|---|---|---|---|
| Instrument | Instrument | — | |
| music | Music | — | |
| beatsPerMinute | Number | 120 | |
| tail | Number | 1 | |
| sampleRate | Integer | 44100 |
Returns
| result | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Instrument
- Package
- Music