Exemple #1
0
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;
}
Exemple #2
0
//----------------------------------------------------------
void PdBase::sendNoteOn(const int channel, const int pitch, const int velocity) {
	libpd_noteon(channel, pitch, velocity);
}