[MPTK PRO] Build Scale and Play with MidiStreamPlayer.
See example 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,
};
}
}
Description of a MIDI Event. It's the heart of MPTK! Essential to handling MIDI by script from all ot...
Definition: MPTKEvent.cs:395
[MPTK PRO] Build Scale and Play with MidiStreamPlayer.
Definition: MPTKRangeLib.cs:45
static MPTKRangeLib Range(int index, bool log=false)
Definition: MPTKRangeLib.cs:119
int Count
Definition: MPTKRangeLib.cs:77
Build and Play Real Time Music in relation with user actions or algorithms. This class must be used w...
Definition: MidiStreamPlayer.cs:78
void MPTK_PlayEvent(MPTKEvent evnt)
Definition: MidiStreamPlayer.cs:128
MPTKCommand
Definition: MPTKEvent.cs:15