void Window::loadPatch(int index) { qDebug() << index; if(index == 1) libpd_bang("activatefirstpatcher"); // sending a bang to the Pd receiver object "activatefirstpatcher" if(index == 2) libpd_bang("activatesecondpatcher"); }
JNIEXPORT jint JNICALL Java_org_puredata_core_PdBase_sendBang (JNIEnv *env, jclass cls, jstring jrecv) { if (!jrecv) return -2; const char *crecv = (char *) (*env)->GetStringUTFChars(env, jrecv, NULL); pthread_mutex_lock(&mutex); int err = libpd_bang(crecv); pthread_mutex_unlock(&mutex); (*env)->ReleaseStringUTFChars(env, jrecv, crecv); return err; }
//---------------------------------------------------------- void PdBase::sendBang(const std::string& dest) { libpd_bang(dest.c_str()); }
void portAudio::bangSweep() { libpd_bang("sweep"); }
//---------------------------------------------------------- void PdBase::sendBang(const std::string& dest) { _LOCK(); libpd_bang(dest.c_str()); _UNLOCK(); }