MidiDemo

By mjrb4 - uploaded on 2009-1-8      1984 views (87 in the last 7 days)      1 vote (0 in the last 7 days)

Tags: mouse demo with-source midi

Simple demo of using MIDI to play sounds rather than lots of seperate sound files. This has the advantage that you can switch instruments easily, have more control over the notes that are played (e.g. how long they last for) and if you're feeling adventurous even implement things like pitch bending - it's all in the java API already, you just need to call the right methods :) You can do much more than in this example, it was just something I put together very quickly to show how it could be done.

UPDATE: Now added the updated MidiPlayer class used in the MidiPiano scenario.

If you just want the MidiPlayer.java class rather than the whole scenario, just visit the web site link.

Visit the web page for this scenario.
Open the scenario in Greenfoot.
Download the source for this scenario.


Your browser is ignoring the <APPLET> tag.

Some people who like this scenario: Builderboy2005


This scenario is a member of the following collections: Reusable actors & support classes


Report this scenario as broken or inappropriate.

Builderboy2005 writes (on 2009-1-8):

It says that it uses a newer version of the greenfoot api, version 2.0.0
but the newest one to download says 1.4.6...
where do i download 2.0.0?

mjrb4 writes (on 2009-1-8):

Ah, sorry, I'm running the development version of 1.5 at the moment - does it not open at all in 1.4.6?

Builderboy2005 writes (on 2009-1-8):

it complains and then won't compile.

mjrb4 writes (on 2009-1-8):

Gimme a minute and I'll reupload in 1.4.6 :)

Builderboy2005 writes (on 2009-1-8):

Thanks!

A new version of this scenario was uploaded on Thu Jan 08 22:47:13 UTC 2009

mjrb4 writes (on 2009-1-8):

That should do it :)

A new version of this scenario was uploaded on Fri Mar 06 10:23:40 UTC 2009


If you want to leave a comment on this scenario, you must first log in.


The Greenfoot Network:  Greenfoot.org    Greenfoot Gallery   Greenfoot-Discuss

Our sponsors:

University of Kent Deakin University Sun Microsystems