Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MIDI Input in QT for Java



Hi,

Check out at http://music.calarts.edu/~tre/JavaMusic.html for several
java-midi projects. Perhaps a nice idea to stick to the javaSound standard,
using Wire or WireProvider, which you can both find on that page too.

Best,

Niels

>> I'd like to read some MIDI commands from an external MIDI device via
>> Quicktime for Java since the days of QT 4.0. I tried it in MacOS as well
>> in Windows.
>> Unfortunately it seems that the developer of QT for Java simply forgot to
>> implement the method (useDefaultMIDIInput) for opening a MIDI input port
>in the
>> quicktime.std.music.NoteAllocator class, although they implemented a
>method
>> for closing the MIDI input port: loseDefaultMIDIInput!
>>
>> The method or function for opening a MIDI input port DOES exist in the
>> standard C QuickTime Music Architecture (QTMA), where it is called
>> NAUseDefaultMIDIInput:
>>
>> NAUseDefaultMIDIInput
>> Defines an entry point to service external MIDI device events.
>>
>> ComponentResult NAUseDefaultMIDIInput ( // IV-2677
>> NoteAllocator na, //
>IV-2686
>> MusicMIDIReadHookUPP readHook, //
>IV-2697
>> long refCon,
>> unsigned long flags );
>>
>> Although the correspoding Java method is mentioned in the javadoc files,
>it
>> doesn't exist in the class, as a call to javap shows.
>>
>> From the QT for Java documentation (class NoteAllocator):
>> ---------------------------------------------------------
>> loseDefaultMIDIInput
>> public void loseDefaultMIDIInput() throws StdQTException
>> Removes the external default MIDI service procedure call, if previously
>> defined by the useDefaultMIDIInput call.
>>
>> I got a workaround via JNI (Java Native Interface) working, but that's
>> unsatisfying. So here comes my question (to the QT4Java developers):
>>
>> Why don't you implement the useDefaultMIDIInput method while you are
>> implementing all other method? Would that be so hard? And if you do so,
>> when will it be available? I hope at least in Quicktime 10.0 or so. :-)
>>
>>
>>
>> +-----------------------------------------------------------------+
>> | Wolfgang SAMMINGER | while (!sleep) |
>> | email@hidden | sheep++; |
>> +-----------------------------------------------------------------+
>_______________________________________________
>quicktime-java mailing list
>email@hidden
>http://www.lists.apple.com/mailman/listinfo/quicktime-java


References: 
 >Re: MIDI Input in QT for Java (From: "np" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.