Example #1
0
JNIEXPORT jint JNICALL Java_org_puredata_core_PdBase_sendMidiByte
(JNIEnv *env, jclass cls, jint port, jint value) {
  pthread_mutex_lock(&mutex);
  int err = libpd_midibyte(port, value);
  pthread_mutex_unlock(&mutex);
  return err;
}
Example #2
0
//----------------------------------------------------------
void PdBase::sendMidiByte(const int port, const int value) {
	libpd_midibyte(port, value);
}
Example #3
0
//----------------------------------------------------------
void PdBase::sendMidiByte(const int port, const int value) {
    _LOCK();
    libpd_midibyte(port, value);
    _UNLOCK();
}