JackoInit
Prev | Orchestra Opcodes and Operators | Next

## JackoInit

JackoInit — Initializes Csound as a Jack client.

## Description

Initializes this instance of Csound as a Jack client.

Csound's sr must be equal to the Jack daemon's frames per second.

Csound's ksmps must be equal to the Jack daemon's frames per period.

Frames per period must not only (a) be a power of 2, but also (b) go evenly into the frames per second, e.g. 128 frames per period goes into 48000 frames per second 375 times, for a latency or MIDI time granularity of about 2.7 milliseconds (as good as or better than the absolute best human performers).

The order of processing of all signals that pass from Jack input ports, through Csound processing, and to Jack output ports, must be properly determined by sequence of instrument and opcode definition within Csound.

## Syntax

    JackoInit SclientName, ServerName

## Initialization

Sname -- String name of the inlet port. The name of the inlet is implicitly qualified by the instrument name or number, so it is valid to use the same inlet name in more than one instrument (but not to use the same inlet name twice in one instrument).

SclientName -- The name of the Jack client; normally, should be "csound".

ServerName -- The name of the Jack daemon; normally, will be "default".

This opcode must be called once and only once in the orchestra header, and before any other Jack opcodes. If more than one instance of Csound is using the Jack opcodes at the same time, then each instance of Csound must use a different client name.

## Examples

Here is an example of the JackoInit opcode. It uses the file JackoInit.csd.

Example 380. Example of the JackoInit opcode.

See the sections Real-time Audio and Command Line Flags for more information on using command line flags.

    <CsoundSynthesizer>
    <CsOptions>
    -n
    </CsOptions>
    <CsInstruments>

    sr  = 48000
    ksmps = 128
    nchnls  = 2
    0dbfs   = 1

    instr 1

    JackoInit "default", "csound"
    JackoInfo

    endin
    </CsInstruments>
    <CsScore>

     i 1 0 0
    e
    </CsScore>
    </CsoundSynthesizer>

## See Also

JackoInfo, JackoFreewheel, JackoAudioInConnect, JackoAudioOutConnect, JackoMidiInConnect, JackoMidiOutConnect, JackoOn, JackoAudioIn, JackoAudioOut, JackoMidiOut, JackoNoteOut, JackoTransport.

## Credits

By: Michael Gogins 2010

Prev | Up | Next
JackoInfo | Home | JackoMidiInConnect