Ejemplo n.º 1
0
static void jack_transport_bang(jack_transport_t * x)
{
	float f;
	if (!x->x_jack_client)
		return;
	
	f = (float)jack_get_current_transport_frame(x->x_jack_client);
	
	outlet_float(x->x_outlet, f);
}
Ejemplo n.º 2
0
static PyObject* get_current_transport_frame(PyObject* self, PyObject* args)
{
    pyjack_client_t * client = self_or_global_client(self);
    if(client->pjc == NULL) {
        PyErr_SetString(JackNotConnectedError, "Jack connection has not yet been established.");
        return NULL;
    }

    int ftr = jack_get_current_transport_frame(client->pjc);
    return Py_BuildValue("i", ftr);
}
Ejemplo n.º 3
0
jack_nframes_t luajack_get_current_transport_frame(luajack_t *client)
	{
	cud_t *cud = get_cud(client);	
	if(!cud) return 0;
	return jack_get_current_transport_frame(cud->client);
	}