Example #1
0
 private void MidiProcessor_NoteOn(object sender, MidiNoteEventArgs e)
 {
     midiNote = e.Note.NoteNo;
     OscAFrequencyScript.IsPlaying   = true;
     FilterCutoffScript.IsPlaying    = true;
     FilterResonanceScript.IsPlaying = true;
     AmplitudeScript.IsPlaying       = true;
 }
Example #2
0
 private void MidiProcessor_NoteOff(object sender, MidiNoteEventArgs e)
 {
     if (e.PressedNotesCount == 0)
     {
         OscAFrequencyScript.IsPlaying   = false;
         FilterCutoffScript.IsPlaying    = false;
         FilterResonanceScript.IsPlaying = false;
         AmplitudeScript.IsPlaying       = false;
     }
 }