How do I mix a background WAV/MP3/Ogg file with the output of the p-drop Perl script?
Firstly, note that from version 1.4.0, the p-drop script is no longer required as the “Drop” feature has been built into SBaGen as the “-p drop” option. See SBAGEN.txt, section 3.6 for full details, or try the prog-drop-00d example sequence or a command-line something like this: sbagen -m background.wav -p drop 05ds+ mix/100 However, for people who want to use the original Perl-script file, here’s an example command-line that generates a new WAV file ‘out.wav’ based on the p-drop sequence “05ds+”: p-drop 05ds+ -m background.wav -Wo out.wav If you want to output this directly to the sound card, just miss off the output part: p-drop 05ds+ -m background.wav These work because p-drop passes the extra arguments straight through to sbagen itself. Also note that the input WAV file must be encoded in the correct sampling rate and format (16-bit stereo, and 44100Hz by default). To use an MP3 or Ogg file, just put the mp3/ogg file in place of “background.wav” above.