We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › problems with proMidi Libray
Page Index Toggle Pages: 1
problems with proMidi Libray (Read 667 times)
problems with proMidi Libray
Apr 23rd, 2008, 7:07pm
 
hi,
i've been working with processing 0135 at windowsXP and developing some
applications using the promidi library (see http://www.voodoochild.cl/slightreturned);
recently i had to format my disk, reinstall system and all its components;
including the latest version of Java; then, the applications i were
developing doesn't work anymore!!;
for instance, when i use the Sequencer and Track objects, i obtain these
error messages:

C:/DOCUME~1/coyarzun/CONFIG~1/Temp/build43228.tmp/Temporary_7454_5889.java:13:3:
13:7:
Semantic Error: Type "Track" is imported on demand from package "promidi"
and package "javax.sound.midi".


C:/DOCUME~1/coyarzun/CONFIG~1/Temp/build43228.tmp/Temporary_7454_5889.java:13:21
:13:25:
Semantic Error: Type "Track" is imported on demand from package "promidi"
and package "javax.sound.midi".

can u help me?
thankU;
cHr();
Re: problems with proMidi Libray
Reply #1 - Apr 30th, 2008, 9:35pm
 
As a workaround, specify the promidi package on both imports and initialisation:

import promidi.*;

promidi.Sequencer sequencer;
promidi.Track track;
...

void setup() {
 MidiIO io = MidiIO.getInstance();
 io.closeOutput(1);
 MidiOut out = io.getMidiOut(0, DEFAULT_MIDI_BUS);
 sequencer = new promidi.Sequencer();
 track = new promidi.Track("track1", out);
 ...
Re: problems with proMidi Libray
Reply #2 - May 1st, 2008, 3:37am
 
ouh!
great!!, it works again;
thanks a lot;
cHr();
Page Index Toggle Pages: 1