Skip to content

jack_playrec provides an interface for synchronous recording/playback via the JACK Audio Connection Kit.

License

Notifications You must be signed in to change notification settings

HoerTech-gGmbH/jack_playrec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JACK_PLAYREC

jack_playrec provides an interface for synchronous recording/playback via the JACK Audio Connection Kit. In addition to the cli a Matlab wrapper is provided.

Installation of pre-compiled packages

See INSTALLATION.md

Compiling from source

See COMPILATION.md

Command line interface

Usage:

jack_playrec [options] input.wav [ ports [...]]

Matlab wrapper

Usage:

[y,fs,bufsize,load,xruns,sCfg] = jack_playrec( x, ... );

Examples:

Display list of valid key/value pairs:

jack_playrec help

Playback of MATLAB matrix x on hardware outputs (one column per channel):

jack_playrec( x );

Playback of MATLAB data via user defined ports:

jack_playrec( x, 'output', csOutputPorts );

Synchronouos playback and recording of MATLAB vector:

[y,fs,bufsize] = jack_playrec( x, 'output', csOutputPorts, 'input', csInputPorts );

Synchronouos playback and recording, with jack transport:

[y,fs,bufsize] = jack_playrec( x, 'input', csInputPorts, 'starttime', transportStart );

Synchronouos playback and recording, in freewheeling mode:

[y,fs,bufsize] = jack_playrec( x, 'input', csInputPorts, 'freewheeling', true );

If csOutputPorts and csInputPorts are a single string, a single port name is used. If they are a cell string array, the number of channels in x has to match the number of elements in csOutputPorts, and the number of channels in y will match the number of channels in csInputPorts. If the argument is a numeric vector, then the physical ports (starting from 1) are used.

jack_playrec was isolated and renamed from the tascar_jackio tool of the Toolbox for Acoustic Scene Creation and Rendering TASCAR (https://github.com/HoerTech-gGmbH/tascar), written by Giso Grimm.