Divooka Reference

Musical Score

11 nodes

On this page 11

Measures

Function

Actual data stored as Measures.

Signature
Measures(Musical Score: Musical Score) -> Musical Measure Array
FMeasure[] Measures(FScoreSheet Musical Score)

Parameters

nametypedefaultdescription
Musical ScoreMusical Score—

Returns

resultMusical Measure Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Musical Score
Package
Music

Make Musical Score

Function

This node carries no documentation.

Signature
FScoreSheet() -> Musical Score
FScoreSheet FScoreSheet()

Returns

Musical ScoreMusical Score
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Musical Score
Package
Music

Beats Per Measure

Function

How many beats in a measure; Numerator in time signature,

Signature
BeatsPerMeasure(Musical Score: Musical Score) -> Integer
int BeatsPerMeasure(FScoreSheet Musical Score)

Parameters

nametypedefaultdescription
Musical ScoreMusical Score—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Musical Score
Package
Music

Beat Step Size

Function

Beat size for a unit beat; denominator in time signature, Actual beat count is beat size divided by note duration (1, 2, 4, 8 etc.).
E.g. A beat size of 4, with a note duration of 8, gives an actual units of beat of 4/8=1/2 length, or half a beat count.

Signature
BeatStepSize(Musical Score: Musical Score) -> Integer
int BeatStepSize(FScoreSheet Musical Score)

Parameters

nametypedefaultdescription
Musical ScoreMusical Score—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Musical Score
Package
Music

Bpm

Function

How many beats per minute, decides tempo.

Signature
BPM(Musical Score: Musical Score) -> Integer
int BPM(FScoreSheet Musical Score)

Parameters

nametypedefaultdescription
Musical ScoreMusical Score—

Returns

resultInteger

Remarks

The parser always assigns this, but the default must still be a
plausible tempo: scores constructed programmatically rather than
parsed would otherwise play at 4 BPM.

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

Measure Size In Seconds

Function

Duration of a measure in seconds

Signature
MeasureSizeInSeconds(Musical Score: Musical Score) -> Number
double MeasureSizeInSeconds(FScoreSheet Musical Score)

Parameters

nametypedefaultdescription
Musical ScoreMusical Score—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Musical Score
Package
Music

Total Seconds

Function

Total duration of the entire score

Signature
TotalSeconds(Musical Score: Musical Score) -> Number
double TotalSeconds(FScoreSheet Musical Score)

Parameters

nametypedefaultdescription
Musical ScoreMusical Score—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Musical Score
Package
Music

Vocals

Function

A list of vocals referencing WAV files and function like notes

Signature
Vocals(Musical Score: Musical Score) -> Dictionary of Text to Text
Dictionary<string, string> Vocals(FScoreSheet Musical Score)

Parameters

nametypedefaultdescription
Musical ScoreMusical Score—

Returns

resultDictionary of Text to Text
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Musical Score
Package
Music

Get Beat Size In Floats

Function

Get how many samples is required for a bit as deteremined by sample rate.

Signature
GetBeatSizeInFloats -> Integer
    Musical Score: Musical Score
    sampleRate: Integer
int GetBeatSizeInFloats(
    FScoreSheet Musical Score,
    int sampleRate)

Parameters

nametypedefaultdescription
Musical ScoreMusical Score—
sampleRateInteger—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Musical Score
Package
Music

Get Measure Size In Floats

Function

Get how many samples is required for each measure.

Signature
GetMeasureSizeInFloats -> Integer
    Musical Score: Musical Score
    sampleRate: Integer
int GetMeasureSizeInFloats(
    FScoreSheet Musical Score,
    int sampleRate)

Parameters

nametypedefaultdescription
Musical ScoreMusical Score—
sampleRateInteger—

Returns

resultInteger

Remarks

TODO: May have alignment problem

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Musical Score
Package
Music

Get Total Samples

Function

Total number of samples as determined by sample rate throughout the duration of the music piece.

Signature
GetTotalSamples -> Integer
    Musical Score: Musical Score
    sampleRate: Integer
int GetTotalSamples(FScoreSheet Musical Score, int sampleRate)

Parameters

nametypedefaultdescription
Musical ScoreMusical Score—
sampleRateInteger—

Returns

resultInteger

Remarks

TODO: May have alignment problem

Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Musical Score
Package
Music