AndyDentFree / rbstuff

Automatically exported from code.google.com/p/rbstuff
2 stars 0 forks source link

rbkarel consider Noteplayer support #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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