jacktransport — Start/stop jack_transport and can optionally relocate the playback head.
Plugin opcode in jackTransport. This opcode is part of the plugin repository and has to be installed separately. The plugin repository can be found here: https://github.com/csound/plugins
Start/stop jack_transport and can optionally relocate the playback head.
icommand -- 1 to start playing, 0 to stop.
ilocation -- optional location in seconds to specify where the playback head should be moved. If omitted, the transport is started from current location.
Here is a simple example of the jacktransport opcode. Play jacktransport.csd
Example 487. Simple example of the jacktransport opcode.
<CsoundSynthesizer> <CsOptions> -+rtaudio=JACK -b 64 --sched -o dac:system:playback_ </CsOptions> <CsInstruments> sr = 44100 ksmps = 16 nchnls = 2 instr 1 jacktransport p4, p5 endin instr 2 jacktransport p4 endin </CsInstruments> <CsScore> i2 0 5 1; play i2 5 1 0; stop i1 6 5 1 2 ; move at 2 seconds and start playing back i1 11 1 0 0 ; stop and rewind e </CsScore> </CsoundSynthesizer>