The following pseudocode converts notes of the major scale to the equivalent relative minor scale note. These notes are then played on a musical device, until twenty notes are heard.
playnotes = 20
REPEAT
CASE 1: scale degree 1
lower a minor third
output to device
playnotes = -1
CASE 2: scale degree 2
lower a minor third
output to device
playnotes = -1
CASE 3: scale degree 3
lower a major third
output to device
playnotes = -1
CASE 4: scale degree 4
lower a minor third
output to device
playnotes = -1
CASE 5: scale degree 5
lower a minor third
output to device
playnotes = -1
CASE 6: scale degree 6
lower a major third
output to device
playnotes = -1
CASE 7: scale degree 7
lower a major third
output to device
playnotes = -1
CASE 8: scale degree 8
lower a minor third
output to device
playnotes = -1
ENDCASE
UNTIL playnotes = 0
note: blogger does not let me put in tab or spaces to align this code correctly.
iieiwrmeieweeiimeemmwreiweremweireeemeimwieewwrwweereireeiimeewmiwwwemwiewimeeeremeiewmemweewieewerwemwiimiewmeiwireiiwrrewmwewree |
4.3.07
cc - week one - pseudocode
copywrite 10:44 am
Subscribe to:
Post Comments (Atom)
3 comments:
You look like a douche in your profile pic. Your pseudocode is basically the same as mine, 'cept mine adds 'playnotes' until reaching 20.
And I wouldn't have my email address on the main page, web crawlers will find it and you'll cop a spamload in the mouth.
ooo so i dont have an animated display pic, are you r8 mad
cop a spamload in the mouth? giggity.
ahh theres worse things that could happen, and besides i might get an important email... like who knows.... i could have been THE 1,000,000,000 VISITOR TO THIS WEB SITE AND NEED THAT EMAIL TO COLLECT MY PRIZE!!!!!
Post a Comment