This needs some design work but the idea would be to expose the Noteplayer
command to a
script as an alternative way to generate sounds.
To avoid overloading the rbKarel syntax, I favour having a separate rbScript
object used to
contain named instruments and commands for the Noteplayer command.
Music scripts would be named and saved separately so the sole rbkarel command
added would
be something like:
PlayMusic "Furry Lees"
where Furry Lees.txt is a file in a KarelMusic folder.
That would allow a syntax using constants for musical notes, shifting octaves
and fairly literal
transcription of music into a script.
This could be a great introduction to MIDI by itself.
Original issue reported on code.google.com by dentaroo@gmail.com on 30 Apr 2009 at 9:13
Original issue reported on code.google.com by
dentaroo@gmail.com
on 30 Apr 2009 at 9:13