Thursday, May 31, 2012

Saving to .wav files

The thrill of playing the music you composed in ChucK many days later when you have probably forgotten much about chucking, or just sharing your compositions with friends and family, is just a thrill everyone should experience. It is not hard at all to save your compositions in ChucK. Please note that I am assuming that you are using the command line. Let's dive right in.
  • In your ChucK folder—the one you downloaded when you were installing the command line ChucK,  double-click on the examples folder
  • A bunch of other folders and .ck files will appear. Look for the basic folder, and  double-click it
  • You will see rec.ck and rec-auto.ck files. These are the files you need for saving your compositions to .wav files
  • Now make a choice, yes make a choice. Do you want to save your .wav files in the basic folder or somewhere else. If you don't mind saving them in the basic folder, use cd on the command line to access the current directory. I assume you understand how to access files and folders from the terminal by now. Besides, you can always use ls to see the files and folders you have access to right now
  • If you would like to save your .wav files somewhere else, you might want to consider copying and pasting your rec.ck and rec-auto.ck files to the location where you would like to save your .wav
  • Make sure in your terminal you are in the right folder—the exact folder where your rec.ck, and rec-auto.ck are located—where you would like to save your .wav files
  • Let's save the composition
    •  If you would like to save the following : chuck chuck1.ck you should type chuck chuck1.ck rec.ck in the terminal
    • If you would like to record your composition but don't hear the sound while it is recording, type chuck chuck.ck reck -s. The -s is the one which is used for recording in silence
    • rec.ck records a .wav file with the name foo.wav, but in the event that you would like to record many other compositions and you do not like  the foo.wav to be overwritten, you can use rec-auto.ck. So if you would like to record the following composition: chuck chuck1.ck chuck2.ck chuck3.ck, then you need to type chuck chuck1.ck chuck2.ck chuck3.ck rec-auto.ck, and if you would like the recording to proceed in silence, type chuck chuck1.ck chuck2.ck chuck3.ck rec-auto.ck -s
    • Please note that you can always change the file names later, and also check the rec.ck and rec-auto.ck files  to see if you can change anything in those files

No comments:

Post a Comment