public static void main(String[] args) throws Exception {
    SoftTestUtils soft = new SoftTestUtils();
    MidiChannel channel = soft.synth.getChannels()[0];

    for (int i = 0; i < 128; i++) {
      if (i == 0 || i == 32) continue;
      channel.controlChange(i, 10);
      assertEquals(channel.getController(i), 10);
      channel.controlChange(i, 100);
      assertEquals(channel.getController(i), 100);
    }

    soft.close();
  }
  public static void main(String[] args) throws Exception {
    SoftTestUtils soft = new SoftTestUtils();
    MidiChannel channel = soft.synth.getChannels()[0];

    channel.noteOn(60, 64);
    soft.read(1);
    VoiceStatus[] v = soft.synth.getVoiceStatus();
    assertEquals(v[0].note, 60);
    assertEquals(v[0].active, true);
    channel.allNotesOff();
    soft.read(1);
    v = soft.synth.getVoiceStatus();
    assertEquals(v[0].active, false);

    soft.close();
  }