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



check out Tom Erbe's jmidi package, available from www.softsynth.com. Only
cross platform (no OSX though, I guess) solution I could find (plenty of
alternatives available for Windows, non for the Mac, far as I can tell).
This one works nicely if all you need is ins and outs and, compared to the
quicktime internal midi stuff, is designed far more straight forward.
nils

> Message: 4
> Date: Fri, 30 Nov 2001 22:37:33 +0100
> To: email@hidden
> From: Wolfgang Samminger <email@hidden>
> Subject: MIDI Input in QT for Java
>
> Hello Quicktime for Java people,
>
> 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
as
> 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++; |
> +-----------------------------------------------------------------+




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.