All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.std.music.NoteAllocator
java.lang.Object
|
+----quicktime.QTObject
|
+----quicktime.std.comp.ComponentIdentifier
|
+----quicktime.std.comp.Component
|
+----quicktime.std.music.NoteAllocator
- public final class NoteAllocator
- extends Component
- implements QuickTimeLib
Corresponds to the NoteAllocator component type.
-
NoteAllocator()
- Opens the NoteAllocator component.
-
NoteAllocator(int)
- Opens the NoteAllocator component with a specified subType.
-
copyrightDialog(Pict, String, String, String, String)
- Displays a copyright dialog with information specific to a music device.
-
getDefault()
- Returns a system created NoteAllocator instance that can be used
by applications.
-
getDefaultMIDIInput()
-
Obtain external MIDI connection information about the MIDI device that is
attached to the system and selected as the default MIDI input device.
-
getIndNoteChannel(int)
- Returns a new NoteChannel as indexed into the NoteAllocator instance.
-
getMIDIInPorts()
-
Get the MIDI input ports that are available to the NoteAllocator.
-
getMIDIOutPorts()
-
Get the MIDI output ports that are available to the NoteAllocator.
-
getRegisteredMusicDevice(int)
- Return information about music components that are registered with the note allocator.
-
loseDefaultMIDIInput()
- Removes the external default MIDI service procedure call, if previously defined by
the useDefaultMIDIInput call.
-
numMusicComponents()
- Return the number of MusicComponents that are registered with the note allocator.
-
numNoteChannels()
- Returns the number of NoteChannels handled by the specific NoteAllocator instance.
-
pickArrangement(String, Track, String)
- Displays a dialog to allow instrument selection.
-
registerMusicDevice(int, String, SynthesizerConnections)
- Registers a music component with the NoteAllocator.
-
saveMusicConfiguration()
- Saves the current list of registered devices to the QuickTime default file.
-
setDefaultMIDIInput(SynthesizerConnections)
-
Initializes an external MIDI device that is used to receive external MIDI information.
-
task()
- Call periodically to allow the note allocator to perform tasks.
-
unregisterMusicDevice(int)
- Removes a previously registered music component from the NoteAllocator.
NoteAllocator
public NoteAllocator() throws QTException
- Opens the NoteAllocator component.
QuickTime::OpenADefaultComponent
NoteAllocator
public NoteAllocator(int subType) throws QTException
- Opens the NoteAllocator component with a specified subType.
QuickTime::OpenADefaultComponent
getDefault
public static NoteAllocator getDefault() throws QTException
- Returns a system created NoteAllocator instance that can be used
by applications.
- Returns:
- a NoteAllocator
numNoteChannels
public int numNoteChannels() throws StdQTException
- Returns the number of NoteChannels handled by the specific NoteAllocator instance.
QuickTime::NAGetIndNoteChannel
- Returns:
- number of NoteChannels
getIndNoteChannel
public NoteChannel getIndNoteChannel(int index) throws StdQTException
- Returns a new NoteChannel as indexed into the NoteAllocator instance.
QuickTime::NAGetIndNoteChannel
- Parameters:
- index - the index of the NoteChannel
- Returns:
- a new NoteChannel instance
task
public void task() throws StdQTException
- Call periodically to allow the note allocator to perform tasks.
QuickTime::NATask
pickArrangement
public void pickArrangement(String prompt,
Track track,
String songName) throws StdQTException
- Displays a dialog to allow instrument selection.
QuickTime::NAPickArrangement
- Parameters:
- prompt - dialog box prompt.
- track - a movie track
- songName - the name of the song to display
copyrightDialog
public void copyrightDialog(Pict p,
String author,
String copyright,
String other,
String title) throws StdQTException
- Displays a copyright dialog with information specific to a music device.
QuickTime::NACopyrightDialog
- Parameters:
- p - picture for dialog
- author - author information
- copyright - copyright information
- other - and additional information
- title - title information
numMusicComponents
public int numMusicComponents() throws StdQTException
- Return the number of MusicComponents that are registered with the note allocator.
QuickTime::NAGetRegisteredMusicDevice
- Returns:
- the number of music components.
registerMusicDevice
public void registerMusicDevice(int synthType,
String name,
SynthesizerConnections connections) throws StdQTException
- Registers a music component with the NoteAllocator.
QuickTime::NARegisterMusicDevice
- Parameters:
- synthType - the subType of the MusicComponent of the synth
- name - the synthesizer name
- connections - a synthesizer connections for a MIDI device.
unregisterMusicDevice
public void unregisterMusicDevice(int index) throws StdQTException
- Removes a previously registered music component from the NoteAllocator.
QuickTime::NAUnregisterMusicDevice
- Parameters:
- index - the index of the synthesizer to unregister.
getRegisteredMusicDevice
public MusicComponentInfo getRegisteredMusicDevice(int index) throws StdQTException
- Return information about music components that are registered with the note allocator.
QuickTime::NAGetRegisteredMusicDevice
- Parameters:
- index - the index of the component you are interested in.
- Returns:
- music component information
getDefaultMIDIInput
public SynthesizerConnections getDefaultMIDIInput() throws StdQTException
- Obtain external MIDI connection information about the MIDI device that is
attached to the system and selected as the default MIDI input device.
QuickTime::NAGetDefaultMIDIInput()
setDefaultMIDIInput
public void setDefaultMIDIInput(SynthesizerConnections sc) throws StdQTException
- Initializes an external MIDI device that is used to receive external MIDI information.
QuickTime::NASetDefaultMIDIInput()
- Parameters:
- sc - connections for the external MIDI input device
saveMusicConfiguration
public void saveMusicConfiguration() throws StdQTException
- Saves the current list of registered devices to the QuickTime default file.
QuickTime::NASaveMusicConfiguration()
getMIDIInPorts
public QTMIDIPortList getMIDIInPorts() throws QTException
- Get the MIDI input ports that are available to the NoteAllocator.
QuickTime::NAGetMIDIPorts()
- Returns:
- the MIDI input ports list.
getMIDIOutPorts
public QTMIDIPortList getMIDIOutPorts() throws QTException
- Get the MIDI output ports that are available to the NoteAllocator.
QuickTime::NAGetMIDIPorts()
- Returns:
- the MIDI output ports list.
loseDefaultMIDIInput
public void loseDefaultMIDIInput() throws StdQTException
- Removes the external default MIDI service procedure call, if previously defined by
the useDefaultMIDIInput call.
QuickTime::NALoseDefaultMIDIInput()
All Packages Class Hierarchy This Package Previous Next Index