Sunday 9 March 2008

CC2 week1

This seems to be fairly straightforward. I had problems with understanding the question this week, and made things more complicated than was necessary. After stepping back and looking at it more simply, I went with a basic pseudocode consisting of individual IF THEN conditions inside a CASE. I nearly put REPEAT at the start and UNTIL “10 seconds of silence has passed” at the end, but wasn’t sure if it would be right. My thinking is that if that was put there it would create a loop and monitor the kit for drum hits until a silence of ten seconds had passed signalling the end of a performance. If this was there then I assume I could also have an IF THEN condition like “IF snare THEN play note D and F# and A” to create chords. The loop could also be monitoring for length of notes by adding REPEAT – UNTIL level drops 60dB. This could then have a volume modifier to create a fading delay, maybe even a dodgy reverb effect if the repeats are close together. Wow. This could go on and on and on and on…

CASE note played

IF snare THEN
Play D note

IF kick THEN
Play E note

IF high tom THEN
Play F# note

IF mid tom THEN
Play G note

IF floor tom THEN
Play A note

IF hihat THEN
Play B note

IF ride THEN
Play C# note

END CASE
-
Haines, Christian. 2008. “CC2 – Programming and Pseudocoding.” Seminar presented at the University of Adelaide, 5th March.

No comments: