Trec 2.02 --------- by Grekim Jennings Trec is short for tiny recorder. It is a minimalist version of my Recorder7 program. Trec is limited to recording 1 or 2 tracks of audio and does not have any playback or take-handling capability. The goal was to make a program that starts recording instantly and with an absolute minimum in configuration such as you would want when the creative process strikes you! In fact, all you need to do to record is type ./trec 1644 10, for example. The 10 in this case means the recording duration is 10 seconds. Recording will start instantly using channel 1 from your default soundcard and a file name is automatically created. Changes: -------- Starting in trec version 2.02, there is the ability to record to a stereo interleaved file. Also, a live peak meter has been added. Peaks are held for 3 seconds. Starting in trec version 2.00, there is just one binary file which can record at the various bit depths and samplerates. If you are accustomed to the original version, all you need to do differently is use the format as the first argument. Essentially, you are just adding a space compared to the older version! Finally, recording at higher sample rates are possible if supported by your soundcard. Options: -------- You are able to specify number of channels, soundcard device name, and recording file names. Typing ./trec without any arguments will remind you what order the arguments are in as well as tell you the program version number. You a required to enter the format and the duration. All other arguments are optional. If you do not specify a file name, then one will be created. One channel is recorded unless specified. The arguments are as follows: format duration device channels filename 1 filename 2 The format choices are as follows: Format Bits Sample Rate 1644 16 44100 1648 16 48000 2444 24 44100 2448 24 48000 1688 16 88200 1696 16 96000 2488 24 88200 2496 24 96000 For the device, you may enter d to request the default soundcard if this has been set up. Other common devices are plughw:0,0 or plughw:1,0 for soundcard 0 or soundcard 1 respectively. For interleaved stero files, use s instead of 1 or 2 for the channel argument. Only one filename is created or specified. Examples: --------- The following examples use bit depth 16 and sample rate 44,100. Record 30 seconds of audio, 1 channel, with filename of your choice: ./trec 1644 30 d 1 myname.wav Record 30 seconds of audio, 2 channels, with filenames of your choice: ./trec 1644 30 d 2 myname1.wav myname2.wav Record 1 channel of audio with a specific soundcard device: ./trec 1644 30 plughw:1,0 Record 2 channels of audio using the default soundcard with automatic file names: ./trec 1644 30 d 2 Record an interleaved stereo file: ./trec 1644 40 d s myname.wav Stopping the Recording: -------- --- ---------- Please note you need to allow enough time to capture your performance. There is a time remaining readout and recording can resume by restarting the program. You can stop the program by using control-C. In this case, the recorded wave file will still be there, but the wave file header will indicate a file that is the length that you originally intended and not what it actually is. This may cause issues in some wave players. My hdrfix utility will automatically check and fix the header if necessary. Of course, if the take is not something you want to save then simply exit with control-C and relaunch the application.