This site requires JavaScript, please enable it in your browser!
Greenfoot back
dedoig213
dedoig213 wrote ...

2011/12/7

Music Notes API?

dedoig213 dedoig213

2011/12/7

#
Is it possible to play musical notes in Greenfoot (e.g. C6, D#6, ...) ? I could not find the API among the standard Greenfoot classes. Thanks!
AwesomeNameGuy AwesomeNameGuy

2011/12/7

#
I had a scenario that used midi, but it only works on some computers for some reason. It works on my old computer, but not my new one.
Herman Herman

2011/12/7

#
Try using "import javax.sound.midi.*".
AwesomeNameGuy AwesomeNameGuy

2011/12/7

#
I'll give it a shot. Thanks for the tip!
mjrb4 mjrb4

2011/12/7

#
http://www.greenfoot.org/scenarios/574 The above might be helpful - it's mik's piano scenario but modified so it works using MIDI for the notes rather than sound files.
You need to login to post a reply.