Re: Playing (MIDI) sounds from Java applet (Shepard's Tones)

From: Ben (cgrskip_at_skynet.be)
Date: 10/22/03


Date: Wed, 22 Oct 2003 22:36:22 +0200


"SOB-like MIDIs" wrote :

> How is this done?
> (I'm assuming it uses MIDI.)

No. Java only supports MIDI in its 1.4 version (javax.sound.midi).
This applet runs regular short au clips. Another method to do
audio with earlier versions of java is to use the sun.audio classes.
They're not standard java, but (before 1.4) it was the only way to
perform low-level sound synthesis in java.

An example with source code :
http://www.neuralsemantics.com/applets/jazz.html
(also take a look at the online e-guitar !)

> Is this sound applet playable from any
> java-enabled browser on any Windows system?

supposed to be, yes (provided there is a sound card !)

> How about on Mac or Unix?

same

Ben



Relevant Pages

  • Re: miniJava of my dreams
    ... > thing that would run MIDI applets with accurate timing on an old ... > IDE can't deal with the new JVM.) ... > compile and run java applications should be able to fit in under 1MB. ... > install 200MB to do this. ...
    (comp.lang.java.programmer)
  • miniJava of my dreams
    ... thing that would run MIDI applets with accurate timing on an old ... windows95 PC (tried javasound086-jsyn-midishare-jsml ... i still haven't got a IDE ... compile and run java applications should be able to fit in under 1MB. ...
    (comp.lang.java.programmer)
  • java and USB MIDI interface
    ... I'm writing a java tool that from a MIDI ... my problem is come out this pitch and velocity at a midi USB ... interface (i'm using a emagic MT4 USB midi inteface) recognize of Mac Os X. ... I tried with javax.sound source api, but i not able to find a right function. ...
    (comp.lang.java.programmer)
  • Re: java and USB MIDI interface
    ... I'm writing a java tool that from a MIDI ... my problem is come out this pitch and velocity at a midi USB ...
    (comp.lang.java.programmer)
  • How can i do make avaiable MIDI events?
    ... I'm writing a java tool that from a MIDI file get out all the pitch and velocity of all tracks. ... my problem is to come out this pitch and velocity at a midi USB interface. ...
    (comp.music.midi)