jacktransport

jacktransport — Start/stop jack_transport and can optionally relocate the playback head.

Description

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.

Syntax

jacktransport icommand [, ilocation]

Initialization

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.

Examples

Here is a simple example of the jacktransport opcode. It uses the file jacktransport.csd.

Example 502. 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>


See also

Real-time Performance Control

Credits

Author: Cesare Marilungo

New in version 5.08