jacktransport
Prev | Orchestra Opcodes and Operators | Next

## jacktransport

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

## Description

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.

| Note
Since jacktransport depends on jack audio connection kit, it will work only on Linux or Mac OS X systems which have the jack server running.

## Examples

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

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

## Credits

Author: Cesare Marilungo

New in version 5.08

Prev | Up | Next
JackoTransport | Home | jitter