CC2 Week 1 - Pseudocode
I missed the first class of Creative Computing. This is my attempt of the pseudocode exercise. I generally understand how a program would do this operation. My problem was working out how to make the computer realise to increase by a tone or semitone. This program is wrong because it just says "+1". I don't know how to specify a specific increase. [1]
Pitch = Note Input
// set note input
Play = Note Output
// set note output
NoteCount = Note
// note increments
If
Pitch C: Play A
Pitch D: Play B
Pitch E: Play C
Pitch F: Play D
Pitch G: Play E
Pitch A: Play F
Pitch B: Play G
// when pitch is played lower it to the relative minor
Note = Note + 1
// increment note by 1 value
Play = Play + 3
// increase the Play by three semitones to place it in the original key
[1] Christian Haines. "Creative Computing: Semester 1, Week 1. Programming & Pseudocode." Lecture presented at the Electronic Music Unit, University of Adelaide, South Australia, 1st March 2007.
Monday, March 19, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment