FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Discussion
   General Processing Discussion
(Moderators: fry, REAS)
   MIDI
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: MIDI  (Read 573 times)
iebele


MIDI
« on: Oct 2nd, 2003, 9:47am »

Hi group,  
 
I did a search on MIDI in this forum, with zero results. Is there any possibility of getting Processing in talk with MIDI. In other words, does Processing handle MIDI in- and output?
 
Iebele
 
Martin

122417302122417302martingomez_listsmg1ph WWW Email
Re: MIDI
« Reply #1 on: Oct 6th, 2003, 3:20pm »

yes, possible in 0065's java mode.
will write a sample when i've fully recovered.
 
Martin

122417302122417302martingomez_listsmg1ph WWW Email
Re: MIDI
« Reply #2 on: Oct 8th, 2003, 4:53pm »

a rather rough example...
http://decode.ateneo.edu/martin/p5midisample/
http://decode.ateneo.edu/martin/p5midisample.zip
 
Bijeoma

myloveiloved
Re: MIDI
« Reply #3 on: Oct 9th, 2003, 6:42am »

nice work. i like this song better than the michael jackson song you used before. hehe
 
bryan
« Last Edit: Oct 9th, 2003, 6:43am by Bijeoma »  
benelek

35160983516098 WWW Email
Re: MIDI
« Reply #4 on: Oct 9th, 2003, 7:57am »

lol, heal the world if i remember correctly. why is it that michael jackson is more condusive to MIDI examples than bob marley?...
 
rgovostes

rgovostes
Re: MIDI
« Reply #5 on: Oct 11th, 2003, 5:32pm »

Is it possible to generate your own MIDI stuff through Proce55ing?
 
Martin

122417302122417302martingomez_listsmg1ph WWW Email
Re: MIDI
« Reply #6 on: Oct 12th, 2003, 8:17am »

Yes it is.
 
Martin

122417302122417302martingomez_listsmg1ph WWW Email
Re: MIDI
« Reply #7 on: Oct 12th, 2003, 9:23am »

w00t. My bad. In 0065, I just realized that P5 has javax.sound.midi already imported. This means that it would be possible to do MIDI without having to import stuff manually.
 
trip

triparepa WWW Email
Re: MIDI
« Reply #8 on: Oct 14th, 2003, 8:59pm »

anyone know of a good Java for MIDI tutorial? I was going through the sun docs, but i cant for the life of me understand anything in there.
 
my goal is to control an applet with some MIDI input... is this possible at all?
 
and btw, the timing of the midi file played in matin's example is simply awful on my machine... it slows down, catches up. it can't keep the beat at all. is this just me? i am using the MS virtual GM synth, maybe thats got something to do with it??
 
Martin

122417302122417302martingomez_listsmg1ph WWW Email
Re: MIDI
« Reply #9 on: Oct 15th, 2003, 4:12pm »

re: applet + midi input, possible
re: my applet ... hmm.. works fine with others?
 
news: i'll be damned. copy and paste inside p5, run.
 
Code:

void setup()
{
  size(200,200);
  background(255,0,0);
}
 
void loop()
{  
  try
  {    
    URL filename = new URL(  
     "http://decode.ateneo.edu/martin/" +  
     "pasko_na_sinta_ko.mid" );
    AudioClip clip = Applet.newAudioClip(filename);
    clip.play();
  }
  catch( MalformedURLException e )
  {
  }
}

 
Now compare this to the previous code I posted. Hmmm... Sun's cheating!
 
Music playing is an Original Pinoy (Filipino) Music entitled 'Pasko Na, Sinta Ko', or literally translated to 'It's Christmas, My Love'. More info about this song at http://www.philmusic.com/netradio/specials/paskona/
 
Pages: 1 

« Previous topic | Next topic »