Music
32 nodes
On this page 32
Articulate
FunctionEach note sounding for Fraction of its length - 0.5 staccato, 1 legato - while still taking its whole length in time.
Articulate(Music: Music, fraction: Number) -> Music
Music Articulate(Music Music, double fraction)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| fraction | Number | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Cut
FunctionThe first Length of the music, a note crossing the cut shortened to end on it (Euterpea's cut).
Cut(Music: Music, length: Duration) -> Music
Music Cut(Music Music, Duration length)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| length | Duration | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Equals
FunctionThis node carries no documentation.
Overload 1 of 2
Equals(Music: Music, obj: Any) -> Truth
bool Equals(Music Music, object obj)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| obj | Any | — |
Returns
| result | Truth |
Overload 2 of 2
Equals(Music: Music, other: Music) -> Truth
bool Equals(Music Music, Music other)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| other | Music | — |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Length
FunctionHow long the music lasts, in whole notes, taking tempo changes into account (Euterpea's dur).
Length(Music: Music) -> Duration
Duration Length(Music Music)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — |
Returns
| result | Duration |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Get Hash Code
FunctionThis node carries no documentation.
GetHashCode(Music: Music) -> Integer
int GetHashCode(Music Music)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
In Key
FunctionThe music in a key, which its ornaments and diatonic transposition read their steps from.
InKey(Music: Music, tonic: Note Name, mode: Scale Mode) -> Music
Music InKey(Music Music, NoteName tonic, ScaleMode mode)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| tonic | Note Name | — | |
| mode | Scale Mode | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Instrument
FunctionPlayed on a General MIDI instrument (Euterpea's instrument).
Instrument -> Music
Music: Music
instrument: General Midi InstrumentMusic Instrument(Music Music, GeneralMidiInstrument instrument)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| instrument | General Midi Instrument | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Invert
FunctionThe melody turned upside down about Axis - an interval up becomes the same interval down (Euterpea's invertAt); about the first note when no axis is given (invert).
Invert(Music: Music, axis: Optional Pitch) -> Music
Music Invert(Music Music, Pitch? axis)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| axis | Optional Pitch | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Map Pitches
FunctionEvery pitch passed through Map, rests and structure unchanged (Euterpea's mMap over pitches).
MapPitches(Music: Music, map: Func<Pitch, Pitch>) -> Music
Music MapPitches(Music Music, Func<Pitch, Pitch> map)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| map | Func<Pitch, Pitch> | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Offset
FunctionThe music after Delay of silence (Euterpea's offset).
Offset(Music: Music, delay: Duration) -> Music
Music Offset(Music Music, Duration delay)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| delay | Duration | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Percussion
FunctionPlayed on the drum kit: every note's key chooses a drum.
Percussion(Music: Music) -> Music
Music Percussion(Music Music)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Perform
FunctionThe music as timed events, at Beats Per Minute quarter notes a minute (Euterpea's perform with its default context: a grand piano at velocity 100, articulation 1).
Perform -> IReadOnlyList<Music Event>
Music: Music
beatsPerMinute: NumberIReadOnlyList<MusicEvent> Perform(
Music Music,
double beatsPerMinute = 120)Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| beatsPerMinute | Number | 120 |
Returns
| result | IReadOnlyList<Music Event> |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Phrase
FunctionThe music played with Euterpea's phrase attributes, the last first.
Phrase -> Music
Music: Music
attributes: Phrase Attribute ArrayMusic Phrase(Music Music, params PhraseAttribute[] attributes)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| attributes | Phrase Attribute Array | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Range
FunctionThe lowest and highest key any note reaches, after transpositions; null for music with no notes.
Range(Music: Music) -> Optional (Pitch, Pitch)
(Pitch, Pitch)? Range(Music Music)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — |
Returns
| result | Optional (Pitch, Pitch) |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Remove
FunctionThe music without its first Length, a note crossing the cut shortened to begin on it (Euterpea's remove).
Remove(Music: Music, length: Duration) -> Music
Music Remove(Music Music, Duration length)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| length | Duration | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Repeat
FunctionThe music Times times over (Euterpea's times).
Repeat(Music: Music, times: Integer) -> Music
Music Repeat(Music Music, int times)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| times | Integer | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Retrograde
FunctionThe music backwards in time (Euterpea's retro): a line reversed, and in a chord the shorter part shifted so every part still ends together.
Retrograde(Music: Music) -> Music
Music Retrograde(Music Music)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Scale Lengths
FunctionEvery length multiplied by Factor, without a tempo marking (Euterpea's scaleDurations).
ScaleLengths(Music: Music, factor: Duration) -> Music
Music ScaleLengths(Music Music, Duration factor)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| factor | Duration | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Tempo
FunctionPlayed Factor times as fast (Euterpea's tempo); 2 is twice as fast and half as long.
Tempo(Music: Music, factor: Duration) -> Music
Music Tempo(Music Music, Duration factor)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| factor | Duration | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Then
FunctionThis, then Next.
Then(Music: Music, next: Music) -> Music
Music Then(Music Music, Music next)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| next | Music | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
To Midi
FunctionThe music as a Standard MIDI File document: a conductor track with the tempo, then one track per instrument, drums on channel 10 (Euterpea's toMidi).
ToMidi -> MidiDocument
Music: Music
beatsPerMinute: Number
ticksPerQuarterNote: IntegerMidiDocument ToMidi(
Music Music,
double beatsPerMinute = 120,
int ticksPerQuarterNote = 480)Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| beatsPerMinute | Number | 120 | Quarter notes a minute. |
| ticksPerQuarterNote | Integer | 480 | The file's time resolution. |
Returns
| result | MidiDocument |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
To String
FunctionThe music written as Euterpea writes it: c 4 qn :+: (e 4 qn :=: g 4 qn).
ToString(Music: Music) -> Text
string ToString(Music Music)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Transpose
FunctionEvery note Semitones higher (Euterpea's transpose).
Transpose(Music: Music, semitones: Integer) -> Music
Music Transpose(Music Music, int semitones)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| semitones | Integer | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Velocity
FunctionPlayed at a MIDI velocity, 1 (barely) to 127 (as hard as possible).
Velocity(Music: Music, velocity: Integer) -> Music
Music Velocity(Music Music, int velocity)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| velocity | Integer | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
With
FunctionThis and Other together.
With(Music: Music, other: Music) -> Music
Music With(Music Music, Music other)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| other | Music | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
With Cut
FunctionBoth together, cut to the shorter (Euterpea's /=:).
WithCut(Music: Music, other: Music) -> Music
Music WithCut(Music Music, Music other)
Parameters
| name | type | default | description |
|---|---|---|---|
| Music | Music | — | |
| other | Music | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Chord
FunctionEvery piece at once (Euterpea's chord).
Chord(parts: IEnumerable<Music>) -> Music
Music Chord(IEnumerable<Music> parts)
Parameters
| name | type | default | description |
|---|---|---|---|
| parts | IEnumerable<Music> | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
From Midi
FunctionReads music out of a MIDI document: each channel's notes as a chord of lines, each note placed at its time by a rest before it, on the instrument its channel was set to; channel 10 is drums (Euterpea's fromMidi, simplified).
FromMidi(document: MidiDocument, grid: Integer) -> Music
Music FromMidi(MidiDocument document, int grid = 64)
Parameters
| name | type | default | description |
|---|---|---|---|
| document | MidiDocument | — | |
| grid | Integer | 64 |
Returns
| result | Music |
Remarks
Lengths are quantized to Grid of a whole note - 1/64 by default - since MIDI times are ticks and music lengths are fractions.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Empty
FunctionNo music: a rest of no length, the identity of both Music.Then and Music.With.
Empty() -> Music
Music Empty()
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Line
FunctionEach piece after the one before (Euterpea's line).
Line(parts: IEnumerable<Music>) -> Music
Music Line(IEnumerable<Music> parts)
Parameters
| name | type | default | description |
|---|---|---|---|
| parts | IEnumerable<Music> | — |
Returns
| result | Music |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Op Equality
FunctionThis node carries no documentation.
op_Equality(left: Music, right: Music) -> Truth
bool op_Equality(Music left, Music right)
Parameters
| name | type | default | description |
|---|---|---|---|
| left | Music | — | |
| right | Music | — |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music
Op Inequality
FunctionThis node carries no documentation.
op_Inequality(left: Music, right: Music) -> Truth
bool op_Inequality(Music left, Music right)
Parameters
| name | type | default | description |
|---|---|---|---|
| left | Music | — | |
| right | Music | — |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Music
- Package
- Music