コード例 #1
0
ファイル: Routing.cs プロジェクト: pema4/SynthWithCompiler
 private void MidiProcessor_NoteOn(object sender, MidiNoteEventArgs e)
 {
     midiNote = e.Note.NoteNo;
     OscAFrequencyScript.IsPlaying   = true;
     FilterCutoffScript.IsPlaying    = true;
     FilterResonanceScript.IsPlaying = true;
     AmplitudeScript.IsPlaying       = true;
 }
コード例 #2
0
ファイル: Routing.cs プロジェクト: pema4/SynthWithCompiler
 private void MidiProcessor_NoteOff(object sender, MidiNoteEventArgs e)
 {
     if (e.PressedNotesCount == 0)
     {
         OscAFrequencyScript.IsPlaying   = false;
         FilterCutoffScript.IsPlaying    = false;
         FilterResonanceScript.IsPlaying = false;
         AmplitudeScript.IsPlaying       = false;
     }
 }