tidalcycles / Dirt

Experimental sample playback
GNU General Public License v3.0
85 stars 24 forks source link

getopt, add --no-dirty-compressor and --no-jack-auto-connect command line arguments #12

Closed munshkr closed 10 years ago

munshkr commented 10 years ago

This changes the -dc argument for --no-dirty-compressor and adds an additional argument --no-jack-auto-connect to disable JACK port autoconnection, to make it easier to use another compressor or more complex audio workflows with JACK.

Auto-connection is enabled by default, so running ./dirt gets the normal behavior as always. I think it's good to auto-connect by default (regardless of the opinion of JACK users/developers), but better to have an option to disable for more advanced users.

I used getopt.h for command-line argument parsing, which is what most C GNU software use, based on this example. This makes it easier to add new options in the future.

munshkr commented 10 years ago

Oh, I just realized I only tested this on Debian, so I am not sure if getopt is available on Windows, or if some cross-platform tweaking is needed. I'll try to follow the portaudio instructions on this branch and see if it works...