EE6641 Analysis and Synthesis of Digital Audio Signals
Due date: 2018/06/05
Thanks to the previous SuperCollider homework, we are capable of writing a simple piece of music. Then, we might want to do further signal processing with our music on Python. But How? The easiest way is to record the audio we want and save it as a .wav file, so that we can load it into Python.
Recording initialization. Allocates the necessary buffer for recording the server's output.
- path The path and the file name of the recorded file.
- numChannels The number of output channels to record.
Starts or resumes recording the output.
- path Optional if specified at
.prepareForRecord
. - bus Optional.
- numChannels Optional if specified at
.prepareForRecord
. - node Optional.
- duration If set, this limits recording to a given time in seconds. Optional if follow by
.stopRecording
.
Stops recording, closes the file, and frees the associated resources.
Please implement following tasks in the given source codes recorder.scd. You have to hand in recorder_yourID.scd with proper comments.
- Please record Twinkle Twinkle Little Star from the previous homework and save it as a wav file. You must record the whole piece of music, which means you can't execute
s.stopRecording
before the music ends. The recorded audio have to be mono. - If you can't open the exported file by a media player, load it in to Python and check whether your file satisfies the spec. (Python library
soundfile
recommended) - You have to hand in the wav file named as LittleStar_yourID.wav.
- Please record an ever playing music for 3 seconds and save it as a wav file. The recorded audio have to be stereo.
- You have to hand in the wav file named as bubbles_yourID.wav.
- Please record Twinkle Twinkle Little Star in stereo and save it as a wav file..
- You have to hand in the wav file named as bonus_yourID.wav.
Please check the folder "OSC" for further instruction.