Divooka Reference

Note

12 nodes

On this page 12

Make Note

Function

This node carries no documentation.

Overload 1 of 2

Signature
FNote -> F Note
    pitches: F Note Pitch Array
    baseStep: Integer
    velocity: Integer
    extendedDuration: Integer
FNote FNote(
    FNotePitch[] pitches,
    int baseStep,
    int velocity,
    int extendedDuration)

Parameters

nametypedefaultdescription
pitchesF Note Pitch Array—A single MIDI note or a chord of notes, or a vocal
baseStepInteger—Duration: 1, 2, 4, 8, 16, 32
velocityInteger—The MIDI velocity range is from 0–127, with 127 being the loudest
extendedDurationInteger—How many additional 1/2 durations should we extend from Duration of this note

Returns

NoteF Note

Overload 2 of 2

Signature
FNote -> F Note
    pitches: F Note Pitch Array
    relativeMeasureDuration: Number
    velocity: Integer
FNote FNote(
    FNotePitch[] pitches,
    double relativeMeasureDuration,
    int velocity)

Parameters

nametypedefaultdescription
pitchesF Note Pitch Array—
relativeMeasureDurationNumber—
velocityInteger—

Returns

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

Equals

Function

This node carries no documentation.

Overload 1 of 2

Signature
Equals(F Note: F Note, obj: Any) -> Truth
bool Equals(FNote F Note, object obj)

Parameters

nametypedefaultdescription
F NoteF Note—
objAny—

Returns

resultTruth

Overload 2 of 2

Signature
Equals(F Note: F Note, other: F Note) -> Truth
bool Equals(FNote F Note, FNote other)

Parameters

nametypedefaultdescription
F NoteF Note—
otherF Note—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Note
Package
Music

Base Step

Function

The step size that corresponds to one such note.

Signature
BaseStep(F Note: F Note) -> Number
double BaseStep(FNote F Note)

Parameters

nametypedefaultdescription
F NoteF Note—

Returns

resultNumber

Remarks

Example: for FNote.MeasureFractionDuration of `0.25`, this is 4, meaning for a quarter note beat size, this note is one beat.

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

Measure Fraction Duration

Function

Durations of note in fractional number of (any) beat size.
I.e. "how much of a (base) beat is this note"?
I.e. "How big are we in the 4/4 scale relative to that 1 (which is 4 times 1/4)?" A.a in a 4/4 measure, each 4th note is actually a 1/4, i.e. 0.25. It's 0.25 of that entire measure.

Signature
MeasureFractionDuration(F Note: F Note) -> Number
double MeasureFractionDuration(FNote F Note)

Parameters

nametypedefaultdescription
F NoteF Note—

Returns

resultNumber

Remarks

Not fully supported yet, e.g. Types.ScoreSheetMIDIReader may not work.

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

Get Pitches

Function

This node carries no documentation.

Signature
Pitches(F Note: F Note) -> F Note Pitch Array
FNotePitch[] Pitches(FNote F Note)

Parameters

nametypedefaultdescription
F NoteF Note—

Returns

resultF Note Pitch Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Note
Package
Music

Get Velocity

Function

This node carries no documentation.

Signature
Velocity(F Note: F Note) -> Integer
int Velocity(FNote F Note)

Parameters

nametypedefaultdescription
F NoteF Note—

Returns

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

Get Duration Units

Function

This node carries no documentation.

Signature
GetDurationUnits(F Note: F Note, denominator: Number) -> Integer
int GetDurationUnits(FNote F Note, double denominator)

Parameters

nametypedefaultdescription
F NoteF Note—
denominatorNumber—

Returns

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

Get Hash Code

Function

This node carries no documentation.

Signature
GetHashCode(F Note: F Note) -> Integer
int GetHashCode(FNote F Note)

Parameters

nametypedefaultdescription
F NoteF Note—

Returns

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

Get Relative Scale

Function

How many (reference) beats is this note. E.g. if reference is an 8, and we are a 4, then we are twice the reference.

Signature
GetRelativeScale -> Number
    F Note: F Note
    referenceStepSize: Integer
double GetRelativeScale(FNote F Note, int referenceStepSize)

Parameters

nametypedefaultdescription
F NoteF Note—
referenceStepSizeInteger—

Returns

resultNumber

Remarks

If reference step is equal to our own FNote.BaseStep, then it will be 1 beat.

(Remark) The math is all weird because an 8 is actually smaller than a 4 in music.

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

To String

Function

This node carries no documentation.

Signature
ToString(F Note: F Note) -> Text
string ToString(FNote F Note)

Parameters

nametypedefaultdescription
F NoteF Note—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Note
Package
Music

Op Equality

Function

This node carries no documentation.

Signature
op_Equality(left: F Note, right: F Note) -> Truth
bool op_Equality(FNote left, FNote right)

Parameters

nametypedefaultdescription
leftF Note—
rightF Note—

Returns

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

Op Inequality

Function

This node carries no documentation.

Signature
op_Inequality(left: F Note, right: F Note) -> Truth
bool op_Inequality(FNote left, FNote right)

Parameters

nametypedefaultdescription
leftF Note—
rightF Note—

Returns

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