Divooka Reference

Song Part

6 nodes

On this page 6

Make Song Part

Function

One instrument's part of a song, played: what it is called and how it sounds.

Signature
SongPart -> Song Part
    Name: Text
    Program: Optional General Midi Instrument
    Percussion: Truth
    Audio: AudioBuffer
SongPart SongPart(
    string Name,
    GeneralMidiInstrument? Program,
    bool Percussion,
    AudioBuffer Audio)

Parameters

nametypedefaultdescription
NameText—The program's name, or Drums.
ProgramOptional General Midi Instrument—The program, when it is not the drums.
PercussionTruth—Whether this is the drums.
AudioAudioBuffer—The part, as long as the song.

Returns

resultSong Part
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Song Part
Package
Music

Audio

Function

The part, as long as the song.

Signature
Audio(Song Part: Song Part) -> AudioBuffer
AudioBuffer Audio(SongPart Song Part)

Parameters

nametypedefaultdescription
Song PartSong Part—

Returns

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

Name

Function

The program's name, or Drums.

Signature
Name(Song Part: Song Part) -> Text
string Name(SongPart Song Part)

Parameters

nametypedefaultdescription
Song PartSong Part—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Song Part
Package
Music

Percussion

Function

Whether this is the drums.

Signature
Percussion(Song Part: Song Part) -> Truth
bool Percussion(SongPart Song Part)

Parameters

nametypedefaultdescription
Song PartSong Part—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Song Part
Package
Music

Program

Function

The program, when it is not the drums.

Signature
Program(Song Part: Song Part) -> Optional General Midi Instrument
GeneralMidiInstrument? Program(SongPart Song Part)

Parameters

nametypedefaultdescription
Song PartSong Part—

Returns

resultOptional General Midi Instrument
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Song Part
Package
Music

To String

Function

This node carries no documentation.

Signature
ToString(Song Part: Song Part) -> Text
string ToString(SongPart Song Part)

Parameters

nametypedefaultdescription
Song PartSong Part—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Song Part
Package
Music