GithubHelp home page GithubHelp logo

standarddeviant / jack_play_record Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 45 KB

License: The Unlicense

C 87.86% Shell 0.73% C++ 11.41%
jack convenient sndfile jackaudio multichannel wav wav-file

jack_play_record's Introduction

jack_play_record

After looking for a convenient command line tool, that reliably played and recorded multichannel wave files in JACK, I came up short. So I wrote jack_play_record to fill that niche. If something robust already exists and I've missed it, please email me or file an issue to update the README.

Getting Started

To build the code, change to the jack_play_record directory on a linux system, and run

./build.sh

That should leave an executable in the same directory named jack_play_record

There are examples below, but the help text is pretty straightforward:

Usage: jack_play_record [OPTION...] [-p play.wav | -c chans -r rec.wav]
  -h,    print this help text
  -c,    specify the number of channels (required for recording)
  -n,    specify the name of the jack client
  -f,    specify the intended nframes for use with jack server
         note, that this will save on memory, but is unsafe if the
         jack server nframes value is ever increased
  -w,    wait until W ports have been connected before playing or recording

If you want to record a four-channel wave file named sweet_sounds.wav, where the jack client is named cool_client, you can issue the following:

./jack_play_record -r sweet_sounds.wav -c 4 -n cool_client

When that file has finished recording, you can play that same file back in to jack:

./jack_play_record -p sweet_sounds.wav -n really_cool_client

The order of the command line arguments is irrelevant.

Prerequisites

The build.sh script is very simple, but requires the following libraries

  • libjack
  • libsndfile
  • libpthread

Authors

  • Dave Crist

License

This project is licensed under the Unlicense License - see the LICENSE file for details

Acknowledgments

  • Thanks to the developers of JACK, libsndfile, PortAudio and gcc
  • Thanks to Spencer Russell for introducing me to the convenient pa_ringbuffer code

jack_play_record's People

Contributors

david-crist-bose avatar standarddeviant avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jack_play_record's Issues

wav file format

Some wav file readers (e.g., scipy.io.wavfile) cannot read the wav files produced after a record. It may be due to the fact that sf_close is never called within the code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.