Build Scale and Play with MidiStreamPlayer.
- Version
- Maestro Pro
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:418
Build Scale and Play with MidiStreamPlayer.
Definition: MPTKRangeLib.cs:44
static MPTKRangeLib Range(int index, bool log=false)
Definition: MPTKRangeLib.cs:118
int Count
Definition: MPTKRangeLib.cs:76
Build and Play Real Time Music in relation with user actions or algorithms. This class must be used w...
Definition: MidiStreamPlayer.cs:79
void MPTK_PlayEvent(MPTKEvent mptkEvent)
Definition: MidiStreamPlayer.cs:133
MPTKCommand
Definition: MPTKEvent.cs:12