Live Music
9 nodes
On this page 9
Add Live Track
FunctionAdds a track to a live session: another pattern on another instrument, in time with the rest from the next cycle.
AddTrack -> Live Session
session: Live Session
pattern: Pattern
instrument: Instrument
name: Text
gain: NumberLiveSession AddTrack(
LiveSession session,
Pattern pattern,
Instrument instrument,
string name = "bass",
double gain = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| session | Live Session | — | The session. |
| pattern | Pattern | — | What the track plays. |
| instrument | Instrument | — | What plays it; the default SoundFont's piano when not connected. |
| name | Text | bass | What to call the track, for Update Live. |
| gain | Number | 1 | The track's level. |
Returns
| Session | Live Session |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Live Music
- Package
- Music
Record Live
FunctionStarts recording what a live session plays, from the next block.
Record(session: Live Session) -> Live Session
LiveSession Record(LiveSession session)
Parameters
| name | type | default | description |
|---|---|---|---|
| session | Live Session | — | The session. |
Returns
| Session | Live Session |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Live Music
- Package
- Music
Render Live
FunctionRuns the live engine offline: a pattern on an instrument for some cycles, rendered exactly as the device would hear it, into a clip.
Render -> AudioBuffer
pattern: Pattern
instrument: Instrument
beatsPerMinute: Number
cycles: Integer
cycleBeats: Number
tail: Number
sampleRate: IntegerAudioBuffer Render(
Pattern pattern,
Instrument instrument,
double beatsPerMinute = 120,
int cycles = 4,
double cycleBeats = 4,
double tail = 1,
int sampleRate = 44100)Parameters
| name | type | default | description |
|---|---|---|---|
| pattern | Pattern | — | What to play. |
| instrument | Instrument | — | What plays it; the default SoundFont's piano when not connected. |
| beatsPerMinute | Number | 120 | The tempo. |
| cycles | Integer | 4 | How many cycles. |
| cycleBeats | Number | 4 | Beats a cycle lasts. |
| tail | Number | 1 | Seconds after the last cycle, for the sound to ring out. |
| sampleRate | Integer | 44100 | Output rate. |
Returns
| Audio | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Live Music
- Package
- Music
Set Live Tempo
FunctionChanges a live session's tempo while it plays.
SetTempo -> Live Session
session: Live Session
beatsPerMinute: NumberLiveSession SetTempo(
LiveSession session,
double beatsPerMinute = 120)Parameters
| name | type | default | description |
|---|---|---|---|
| session | Live Session | — | The session. |
| beatsPerMinute | Number | 120 | The new tempo. |
Returns
| Session | Live Session |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Live Music
- Package
- Music
Set Live Track Level
FunctionSets one track's level while it plays; 0 mutes it.
SetTrackGain -> Live Session
session: Live Session
track: Text
gain: NumberLiveSession SetTrackGain(
LiveSession session,
string track = "",
double gain = 1)Parameters
| name | type | default | description |
|---|---|---|---|
| session | Live Session | — | The session. |
| track | Text | — | Which track; the first when empty. |
| gain | Number | 1 | The level. |
Returns
| Session | Live Session |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Live Music
- Package
- Music
Start Live
FunctionStarts playing a pattern on the audio device, looping until it is stopped.
Start -> Live Session
pattern: Pattern
instrument: Instrument
beatsPerMinute: Number
cycleBeats: NumberLiveSession Start(
Pattern pattern,
Instrument instrument,
double beatsPerMinute = 120,
double cycleBeats = 4)Parameters
| name | type | default | description |
|---|---|---|---|
| pattern | Pattern | — | What to play. |
| instrument | Instrument | — | What plays it; the default SoundFont's piano when not connected. FM instruments play offline only. |
| beatsPerMinute | Number | 120 | The tempo. |
| cycleBeats | Number | 4 | Beats a cycle of the pattern lasts; 4 is a bar of 4/4. |
Returns
| Session | Live Session |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Live Music
- Package
- Music
Stop Live
FunctionStops a live session.
Stop(session: Live Session)
void Stop(LiveSession session)
Parameters
| name | type | default | description |
|---|---|---|---|
| session | Live Session | — | The session. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Live Music
- Package
- Music
Stop Recording
FunctionStops recording a live session and gives back what was heard since Record Live, as a clip for the mixer or a file.
StopRecording(session: Live Session) -> AudioBuffer
AudioBuffer StopRecording(LiveSession session)
Parameters
| name | type | default | description |
|---|---|---|---|
| session | Live Session | — | The session. |
Returns
| Audio | AudioBuffer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Live Music
- Package
- Music
Update Live
FunctionSwaps what a track of a live session plays without stopping it, on the same beat grid: at the start of the next cycle unless told otherwise, so a phrase is never cut off halfway.
Update -> Live Session
session: Live Session
pattern: Pattern
track: Text
quantize: Live QuantizeLiveSession Update(
LiveSession session,
Pattern pattern,
string track = "",
LiveQuantize quantize = LiveQuantize.Cycle)Parameters
| name | type | default | description |
|---|---|---|---|
| session | Live Session | — | The session. |
| pattern | Pattern | — | The new pattern. |
| track | Text | — | Which track; the first when empty. |
| quantize | Live Quantize | Cycle | When the new pattern takes over. |
Returns
| Session | Live Session |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Live Music
- Package
- Music