JNIEXPORT jint JNICALL Java_org_puredata_core_PdBase_sendNoteOn (JNIEnv *env, jclass cls, jint channel, jint pitch, jint velocity) { pthread_mutex_lock(&mutex); int err = libpd_noteon(channel, pitch, velocity); pthread_mutex_unlock(&mutex); return err; }
//---------------------------------------------------------- void PdBase::sendNoteOn(const int channel, const int pitch, const int velocity) { libpd_noteon(channel, pitch, velocity); }