Пример #1
0
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");
}
Пример #2
0
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;
}
Пример #3
0
//----------------------------------------------------------
void PdBase::sendBang(const std::string& dest) {
	libpd_bang(dest.c_str());
}
Пример #4
0
void portAudio::bangSweep() {
    
    libpd_bang("sweep");
}
Пример #5
0
//----------------------------------------------------------
void PdBase::sendBang(const std::string& dest) {
    _LOCK();
    libpd_bang(dest.c_str());
    _UNLOCK();
}