|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--quicktime.QTObject
|
+--quicktime.std.comp.ComponentIdentifier
|
+--quicktime.std.comp.Component
|
+--quicktime.std.music.NoteAllocator
Corresponds to the NoteAllocator component type.
| Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
| Constructor Summary | |
NoteAllocator()
Opens the NoteAllocator component. |
|
NoteAllocator(int subType)
Opens the NoteAllocator component with a specified subType. |
|
| Method Summary | |
void |
copyrightDialog(Pict p,
java.lang.String author,
java.lang.String copyright,
java.lang.String other,
java.lang.String title)
Displays a copyright dialog with information specific to a music device. |
static NoteAllocator |
getDefault()
Returns a system created NoteAllocator instance that can be used by applications. |
SynthesizerConnections |
getDefaultMIDIInput()
Obtain external MIDI connection information about the MIDI device that is attached to the system and selected as the default MIDI input device. |
NoteChannel |
getIndNoteChannel(int index)
Returns a new NoteChannel as indexed into the NoteAllocator instance. |
QTMIDIPortList |
getMIDIInPorts()
Get the MIDI input ports that are available to the NoteAllocator. |
QTMIDIPortList |
getMIDIOutPorts()
Get the MIDI output ports that are available to the NoteAllocator. |
MusicComponentInfo |
getRegisteredMusicDevice(int index)
Return information about music components that are registered with the note allocator. |
void |
loseDefaultMIDIInput()
Removes the external default MIDI service procedure call, if previously defined by the useDefaultMIDIInput call. |
int |
numMusicComponents()
Return the number of MusicComponents that are registered with the note allocator. |
int |
numNoteChannels()
Returns the number of NoteChannels handled by the specific NoteAllocator instance. |
void |
pickArrangement(java.lang.String prompt,
Track track,
java.lang.String songName)
Displays a dialog to allow instrument selection. |
java.lang.String |
registerMusicDevice_SoundBank(QTFile soundBankFile)
Registers a music component with the NoteAllocator, where the MusicComponent will use the supplied SoundBank for its sample data. |
void |
registerMusicDevice(int synthType,
java.lang.String name,
SynthesizerConnections connections)
Registers a music component with the NoteAllocator. |
void |
saveMusicConfiguration()
Saves the current list of registered devices to the QuickTime default file. |
void |
setDefaultMIDIInput(SynthesizerConnections sc)
Initializes an external MIDI device that is used to receive external MIDI information. |
void |
task()
Call periodically to allow the note allocator to perform tasks. |
void |
unregisterMusicDevice(int index)
Removes a previously registered music component from the NoteAllocator. |
| Methods inherited from class quicktime.std.comp.Component |
count |
| Methods inherited from class quicktime.std.comp.ComponentIdentifier |
find, find, getInfo, toString |
| Methods inherited from class quicktime.QTObject |
disposeQTObject, equals, ID |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NoteAllocator()
throws QTException
public NoteAllocator(int subType)
throws QTException
| Method Detail |
public static NoteAllocator getDefault()
throws QTException
public int numNoteChannels()
throws StdQTException
public NoteChannel getIndNoteChannel(int index)
throws StdQTException
index - the index of the NoteChannel
public void task()
throws StdQTException
public void pickArrangement(java.lang.String prompt,
Track track,
java.lang.String songName)
throws StdQTException
prompt - dialog box prompt.track - a movie tracksongName - the name of the song to display
public void copyrightDialog(Pict p,
java.lang.String author,
java.lang.String copyright,
java.lang.String other,
java.lang.String title)
throws StdQTException
p - picture for dialogauthor - author informationcopyright - copyright informationother - and additional informationtitle - title information
public int numMusicComponents()
throws StdQTException
public java.lang.String registerMusicDevice_SoundBank(QTFile soundBankFile)
throws QTException
soundBankFile - a DLS or SF2 file of sample data
public void registerMusicDevice(int synthType,
java.lang.String name,
SynthesizerConnections connections)
throws StdQTException
synthType - the subType of the MusicComponent of the synthname - the synthesizer nameconnections - a synthesizer connections for a MIDI device.
public void unregisterMusicDevice(int index)
throws StdQTException
index - the index of the synthesizer to unregister.
public MusicComponentInfo getRegisteredMusicDevice(int index)
throws StdQTException
index - the index of the component you are interested in.
public SynthesizerConnections getDefaultMIDIInput()
throws StdQTException
public void setDefaultMIDIInput(SynthesizerConnections sc)
throws StdQTException
sc - connections for the external MIDI input device
public void saveMusicConfiguration()
throws StdQTException
public QTMIDIPortList getMIDIInPorts()
throws QTException
public QTMIDIPortList getMIDIOutPorts()
throws QTException
public void loseDefaultMIDIInput()
throws StdQTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||