[MPTK PRO] Range/scale interval library loaded from GammeDefinition.csv. Can be used in any music-generation workflow. See examples in TestMidiStream.cs and ExtStreamPlayerPro.cs.
new void Start()
{
midiStreamPlayer = FindObjectOfType<MidiStreamPlayer>();
}
private void PlayScale()
{
for (
int ecart = 0; ecart < range.
Count; ecart++)
{
{
Value = CurrentNote + range[ecart],
Channel = StreamChannel,
Duration = DelayPlayScale,
Velocity = Velocity,
Delay = ecart * DelayPlayScale,
};
}
}
Represents a MIDI event used throughout MPTK. This class is central to script-based MIDI workflows in...
Definition MPTKEvent.cs:59
[MPTK PRO] Range/scale interval library loaded from GammeDefinition.csv. Can be used in any music-gen...
Definition MPTKRangeLib.cs:46
static MPTKRangeLib Range(int index, bool log=false)
Gets a range from its zero-based index. Data is read from GammeDefinition.csv in Resources/GeneratorT...
Definition MPTKRangeLib.cs:122
int Count
Number of notes in the range/scale.
Definition MPTKRangeLib.cs:78
Builds and plays real-time music in response to user actions or algorithmic logic....
Definition MidiStreamPlayer.cs:44
void MPTK_PlayEvent(MPTKEvent mptkEvent)
Plays one MIDI event from an instance of MPTKEvent. Runs in a thread so the call returns immediately....
Definition MidiStreamPlayer.cs:121
MPTKCommand
MIDI command codes. Defines the action performed by the message: note on/off, patch change,...
Definition MPTKEnum.cs:16