Esempio n. 1
0
int libpd_controlchange(int channel, int controller, int value) {
  CHECK_CHANNEL
  CHECK_RANGE_7BIT(controller)
  CHECK_RANGE_7BIT(value)
  sys_lock();
  inmidi_controlchange(PORT, CHANNEL, controller, value);
  sys_unlock();
  return 0;
}
Esempio n. 2
0
int libpd_noteon(int channel, int pitch, int velocity) {
  CHECK_CHANNEL
  CHECK_RANGE_7BIT(pitch)
  CHECK_RANGE_7BIT(velocity)
  sys_lock();
  inmidi_noteon(PORT, CHANNEL, pitch, velocity);
  sys_unlock();
  return 0;
}
Esempio n. 3
0
int libpd_programchange(int channel, int value) {
  CHECK_CHANNEL
  CHECK_RANGE_7BIT(value)
  sys_lock();
  inmidi_programchange(PORT, CHANNEL, value);
  sys_unlock();
  return 0;
}
Esempio n. 4
0
 void Instance::sendProgramChange(int channel, int value) {
     CHECK_CHANNEL
     CHECK_RANGE_7BIT(value)
     inmidi_programchange(MIDI_PORT, MIDI_CHANNEL, value);
 }
Esempio n. 5
0
 void Instance::sendControlChange(int channel, int controller, int value) {
     CHECK_CHANNEL
     CHECK_RANGE_7BIT(controller)
     CHECK_RANGE_7BIT(value)
     inmidi_controlchange(MIDI_PORT, MIDI_CHANNEL, controller, value);
 }
Esempio n. 6
0
 void Instance::sendNoteOff(int channel, int pitch, int velocity) {
     CHECK_CHANNEL
     CHECK_RANGE_7BIT(pitch)
     CHECK_RANGE_7BIT(velocity)
     inmidi_noteon(MIDI_PORT, MIDI_CHANNEL, pitch, 0);
 }