A function identified as deprecated has been superseded and may become unsupported in the future.
Disposes of a MusicMIDISendUPP pointer. (Deprecated in Mac OS X v10.5.)
void DisposeMusicMIDISendUPP ( MusicMIDISendUPP userUPP );
A MusicMIDISendUPP
pointer. See Universal Procedure Pointers
.
You can access this function's error returns through GetMoviesError
and GetMoviesStickyError
.
Introduced in QuickTime 4.1.
QuickTimeMusic.h
Disposes of a MusicOfflineDataUPP pointer. (Deprecated in Mac OS X v10.5.)
void DisposeMusicOfflineDataUPP ( MusicOfflineDataUPP userUPP );
A MusicOfflineDataUPP
pointer. See Universal Procedure Pointers
.
You can access this function's error returns through GetMoviesError
and GetMoviesStickyError
.
Introduced in QuickTime 4.1.
QuickTimeMusic.h
Disposes of a TuneCallBackUPP pointer. (Deprecated in Mac OS X v10.5.)
void DisposeTuneCallBackUPP ( TuneCallBackUPP userUPP );
A TuneCallBackUPP
pointer. See Universal Procedure Pointers
.
You can access this function's error returns through GetMoviesError
and GetMoviesStickyError
.
Introduced in QuickTime 4.1.
QuickTimeMusic.h
Disposes of a TunePlayCallBackUPP pointer. (Deprecated in Mac OS X v10.5.)
void DisposeTunePlayCallBackUPP ( TunePlayCallBackUPP userUPP );
A TunePlayCallBackUPP
pointer. See Universal Procedure Pointers
.
You can access this function's error returns through GetMoviesError
and GetMoviesStickyError
.
Introduced in QuickTime 4.1.
QuickTimeMusic.h
Closes a music movie resource file. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicDerivedCloseResFile ( MusicComponent mc, short resRefNum );
A music component. Your software obtains this reference when calling OpenComponent
or OpenDefaultComponent
.
The resource file to be closed. Your application obtains this value from the OpenMovieFile
function.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Sends a MIDI packet to a music component. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicDerivedMIDISend ( MusicComponent mc, MusicMIDIPacket *packet );
A music component. Your software obtains this reference when calling OpenComponent
or OpenDefaultComponent
function.
A pointer to the music MIDI packet to be sent.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Opens the music resource file for a music component. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicDerivedOpenResFile ( MusicComponent mc );
A music component. Your software obtains this reference when calling OpenComponent
or OpenDefaultComponent
.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
The complete instrument defined by the Part structure to the synthesizer. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicDerivedSetInstrument ( MusicComponent mc, long partNumber, GCPart *p );
The instance of the generic music component. Your software obtains this reference when calling OpenComponent
or OpenDefaultComponent
.
The number of the part for this operation.
A pointer to the part for this operation.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Called when any of the synthesizer's knobs are altered. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicDerivedSetKnob ( MusicComponent mc, long knobType, long knobNumber, long knobValue, long partNumber, GCPart *p, GenericKnobDescription *gkd );
The instance of the generic music component. Your software obtains this reference when calling OpenComponent
or OpenDefaultComponent
.
The type of knob that has been altered (see below). See these constants:
kGenericMusicKnob
kGenericMusicInstrumentKnob
kGenericMusicDrumKnob
The number of the knob that has been altered.
The new value of the altered knob.
The number of the part whose knob has been altered.
A pointer to the part whose knob has been altered.
A GenericKnobDescription
structure for the knob.
See Error Codes
. Returns noErr
if there is no error.
This function is called when any knob on the synthesizer is altered. It should look at the GCPart
and the GenericKnobDescription
structures and address the synthesizer hardware appropriately to set the new knob value. For a MIDI device, this means to construct a system-exclusive MIDI packet and send it to the MIDI routine received by the MusicDerivedSetMIDI
call.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Sets the MIDI channel and other MIDI settings for MIDI output only. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicDerivedSetMIDI ( MusicComponent mc, MusicMIDISendUPP midiProc, long refcon, long midiChannel );
The instance of the generic music component. Your software obtains this reference when calling OpenComponent
or OpenDefaultComponent
.
A pointer to the MusicMIDISendProc
callback in your music component for performing MIDI output.
A reference constant sent to the callback specified by the midiProc
parameter. Use this parameter to point to a data structure containing any information your callback needs.
The MIDI channel to use for the operation.
See Error Codes
. Returns noErr
if there is no error.
A derived component for a MIDI synthesizer receives this call soon after it is opened. It should store the midiProc
, refCon
, and midiChannel
parameters in its global variables. When the derived component needs to communicate with the synthesizer, it calls your MusicMIDISendProc
function with this reference constant. The midiChannel
variable specifies the "system channel" of the device.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Sets the polyphony for the part specified in the GCPart structure. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicDerivedSetPart ( MusicComponent mc, long partNumber, GCPart *p );
The instance of the generic music component. Your software obtains this reference when calling OpenComponent
or OpenDefaultComponent
.
The number of the part for this operation.
A pointer to the part for this operation.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Sets the instrument specified in the GCPart structure. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicDerivedSetPartInstrumentNumber ( MusicComponent mc, long partNumber, GCPart *p );
A music component. Your software obtains this reference when calling OpenComponent
or OpenDefaultComponent
.
The number of the part for this operation.
A pointer to the part for this operation.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Undocumented (Deprecated in Mac OS X v10.5.)
ComponentResult MusicDerivedStorePartInstrument ( MusicComponent mc, long partNumber, GCPart *p, long instrumentNumber );
An instance of the music component. Your software obtains this reference when calling OpenComponent
or OpenDefaultComponent
.
The number of the part for this operation.
A pointer to the part for this operation.
Number of the instrument for this part. You can use MusicFindTone
to get an instrument number.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns the number of the best-matching instrument provided by a specified music component. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicFindTone ( MusicComponent mc, ToneDescription *td, long *libraryIndexOut, unsigned long *fit );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Pointer to a ToneDescription
structure.
On return, contains the number of the best-matching instrument. Only General MIDI numbers are guaranteed to be the same for later instantiations of the component.
On return, a constant (see below) that indicates how well an instrument matches the tone description. See these constants:
kInstrumentMatchSynthesizerType
kInstrumentMatchSynthesizerName
kInstrumentMatchName
kInstrumentMatchNumber
kInstrumentMatchGMNumber
See Error Codes
. Returns noErr
if there is no error.
The music component searches for an instrument as follows:
If the synthesizerType
field of the td
parameter matches the type of the specified music component, it first tries to find an instrument that matches the value of the instrumentNumber
field of the td
parameter. If this value is in the range 129-16512, which specifies a GS instrument, and the GS instrument is not available, it tries to find the General MIDI instrument that corresponds to it, which has the number ((GSinstrumentnumber - 1) & 0x7F)
+ 1. If the value is greater than 16512, which specifies a transient ROM instrument or internal instrument index value, it tries to find an instrument that matches the synthesizerName
field of the td
parameter. If that fails, it tries to find an instrument that matches the value of the gmNumber
field of the td
parameter.
If the synthesizerType
field of the td
parameter does not match the type of the specified music component, it tries to find an instrument that matches the value of the gmNumber
field of the td
parameter.
If none of these rules apply, or the fields are blank (0 for the type
or numeric fields, or zero-length for the strings), then the call returns instrument 1 and a fit parameter of zero.
The synthesizerName
field may be ignored by the component; it is used by the note allocator when deciding which music device to use.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Informs the generic music component what services your music component requires and points to any resources that are necessary. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGenericConfigure ( MusicComponent mc, long mode, long flags, long baseResID );
The instance of the generic music component. Your software obtains this reference when calling the Component Manager's OpenComponent
or OpenDefaultComponent
function.
Must be 0.
Flags (see below) that control the importation of MIDI files. See these constants:
kGenericMusicDoMIDI
kGenericMusicBank0
kGenericMusicBank32
kGenericMusicErsatzMIDI
kGenericMusicCallKnobs
kGenericMusicCallParts
kGenericMusicCallInstrument
kGenericMusicCallNumber
kGenericMusicCallROMInstrument
The resource ID of the lowest-numbered resource used by your music component.
See Error Codes
. Returns noErr
if there is no error.
The baseResID
parameter is the lowest resource ID used by your component for the standard resources described above. Since the resource numbers are relative to this, you can include several music components in a single system extension.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Gets a list of the knobs of a given type for the generic music component. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGenericGetKnobList ( MusicComponent mc, long knobType, GenericKnobDescriptionListHandle *gkdlH );
The instance of the generic music component. Your software obtains this reference when calling OpenComponent
or OpenDefaultComponent
.
A constant (see below) that defines the type of knob. See these constants:
kGenericMusicKnob
kGenericMusicInstrumentKnob
kGenericMusicDrumKnob
On return, a pointer to a handle to a GenericKnobDescriptionList
structure.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Gets a part used by the generic music component. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGenericGetPart ( MusicComponent mc, long partNumber, GCPart **part );
The instance of the generic music component. Your software obtains this reference when calling OpenComponent
or OpenDefaultComponent
.
The number of the part for this operation.
A handle to a GCPart
structure.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Undocumented (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGenericSetResourceNumbers ( MusicComponent mc, Handle resourceIDH );
The instance of the generic music component. Your software obtains this reference when calling OpenComponent
or OpenDefaultComponent
.
A handle to a resource ID.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns a structure describing the synthesizer controlled by the music component device. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetDescription ( MusicComponent mc, SynthesizerDescription *sd );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Pointer to a SynthesizerDescription
structure.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Determines how many hardware synthesizers are available to a music component and gets the IDs for those devices. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetDeviceConnection ( MusicComponent mc, long index, long *id1, long *id2 );
Music component returned by NAGetRegisteredMusicDevice
.
Index of the device for which you want to find out the IDs. Set to 0 if you are calling to get the number of hardware devices.
On return, a hardware synthesizer ID.
On return, another hardware synthesizer ID.
See Error Codes
. Returns noErr
if there is no error.
To get the number of hardware synthesizers available to the music component specified in the mc
parameter and an index you can use to request ID numbers for a specific device, call this function with a value of 0 for the index
parameter. You can then pass an index value in the index
parameter, and the function returns hardware synthesizer IDs in the id1 and id2 parameters.
This function is implemented only for hardware synthesizers, such as PCI card devices.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns a description of a drum kit knob. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetDrumKnobDescription ( MusicComponent mc, long knobIndex, KnobDescription *mkd );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
A knob index or knob ID.
A pointer to a KnobDescription
structure.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Undocumented (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetDrumNames ( MusicComponent mc, long modifiableInstruments, Handle *instrumentNumbers, Handle *instrumentNames );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Undocumented
Undocumented
A pointer to a handle to the requested list of instrument name strings, formatted as a short integer followed by packed strings.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Undocumented (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetInfoText ( MusicComponent mc, long selector, Handle *textH, Handle *styleH );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Undocumented
Undocumented
Undocumented
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Obtains the information about an instrument that appears in its About box. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetInstrumentAboutInfo ( MusicComponent mc, long part, InstrumentAboutInfo *iai );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Number of the part containing the instrument for which you want information.
On return, a pointer to an InstrumentAboutInfo
structure for the instrument currently on the specified synthesizer part.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Obtains a list of instruments supported by a synthesizer. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetInstrumentInfo ( MusicComponent mc, long getInstrumentInfoFlags, InstrumentInfoListHandle *infoListH );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Flags (see below) that specify limits to the list of instruments. See these constants:
kGetInstrumentInfoNoBuiltIn
kGetInstrumentInfoMidiUserInst
kGetInstrumentInfoNoIText
On return, a pointer to a handle to an InstrumentInfoList
structure that contains the list of instruments. This handle must be disposed of by the caller.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Obtains the description of an instrument knob. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetInstrumentKnobDescription ( MusicComponent mc, long knobIndex, KnobDescription *mkd );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
A knob index or knob ID.
On return, a KnobDescription
structure.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Undocumented (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetInstrumentNames ( MusicComponent mc, long modifiableInstruments, Handle *instrumentNames, Handle *instrumentCategoryLasts, Handle *instrumentCategoryNames );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Undocumented
A pointer to a handle to the requested list of instrument name strings, formatted as a short integer followed by packed strings.
A pointer to a handle to a group of short integers, the first of which contains the number of integers to follow.
A pointer to a handle to the requested list of instrument category name strings, formatted as a short integer followed by packed strings.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns the value of the specified global synthesizer knob. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetKnob ( MusicComponent mc, long knobID );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Knob index or ID.
See Error Codes
. Returns noErr
if there is no error.
A global knob controls an aspect of the entire synthesizer. It is not specific to a part within the synthesizer.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns a pointer to an initialized knob description structure describing a global synthesizer knob. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetKnobDescription ( MusicComponent mc, long knobIndex, KnobDescription *mkd );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Knob index or ID.
Pointer to a KnobDescription
structure. The initialized structure provides default values associated with the particular knob.
See Error Codes
. Returns noErr
if there is no error.
A global knob controls an aspect of the entire synthesizer; it is not limited to a part within the synthesizer. You can use the information returned by a call to this function to reset a knob to some known, usable value.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns a list of knob setting names known by the specified music component. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetKnobSettingStrings ( MusicComponent mc, long knobIndex, long isGlobal, Handle *settingsNames, Handle *settingsCategoryLasts, Handle *settingsCategoryNames );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
The knob index or knob ID.
If a knob index is used, indicates whether the specified knob is a global knob.
The requested list of knob setting strings formatted as a short followed by packed strings.
A group of short integers, the first of which contains the number of shorts to follow.
Knob setting category names formatted as a short integer followed by a list of names.
See Error Codes
. Returns noErr
if there is no error.
All handles must be disposed of by the caller.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns the synthesizer's master tuning as a fixed-point value in semitones. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetMasterTune ( MusicComponent mc );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
A fixed-point value representing the synthesizer's master tuning. The value is a fixed 16.16 number, allowing shifts by fractional values.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns the number of input and output ports a MIDI device has. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetMIDIPorts ( MusicComponent mc, long *inputPortCount, long *outputPortCount );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
On return, the number of input MIDI ports available to the music component.
On return, the number of output MIDI ports available to the music component.
See Error Codes
. Returns noErr
if there is no error.
This call is implemented only for hardware synthesizers, such as PCI card devices.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns a pointer to the procedure a music component is using to process external MIDI notes. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetMIDIProc ( MusicComponent mc, MusicMIDISendUPP *midiSendProc, long *refCon );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Pointer to a MIDI serial port MusicMIDISendProc
callback that processes external MIDI notes. This function was set by a previous call to MusicSetMIDIProc
. If no function has been set with MusicSetMIDIProc
, this parameter returns 0.
A reference constant. The Movie Toolbox passes this reference constant to your MusicMIDISendProc
each time it calls it. Use this parameter to point to a data structure containing any information your callback needs.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns the MIDI channel and maximum polyphony for a particular part. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetPart ( MusicComponent mc, long part, long *midiChannel, long *polyphony );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
The music component part requested.
On return, a pointer to a MIDI channel. For non-MIDI devices, the MIDI channel pointed to by this parameter is 0.
On return, a pointer to the maximum number of voices or polyphony for the part..
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns the atomic instrument currently in a part. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetPartAtomicInstrument ( MusicComponent mc, long part, AtomicInstrument *ai, long flags );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
The part with the atomic instrument.
On return, an atomic instrument.
A constant (see below) that specifies what pieces of information about an atomic instrument the caller is interested in. See these constants:
kGetAtomicInstNoExpandedSamples
kGetAtomicInstNoOriginalSamples
kGetAtomicInstNoSamples
kGetAtomicInstNoKnobList
kGetAtomicInstNoInstrumentInfo
kGetAtomicInstOriginalKnobList
kGetAtomicInstAllKnobs
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns the value of a specified controller on a specified part. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetPartController ( MusicComponent mc, long part, MusicController controllerNumber );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Part whose controller value you want to get.
On return, the controller number; see Music Controllers
.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns the instrument number currently assigned to a part. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetPartInstrumentNumber ( MusicComponent mc, long part );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Part number containing the instrument.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Retrieves the current value of a knob for a part. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetPartKnob ( MusicComponent mc, long part, long knobID );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
The part number.
The knob index or ID.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns the string name of a part. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicGetPartName ( MusicComponent mc, long part, StringPtr name );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Part to get the name of.
On return, a string containing the part name.
See Error Codes
. Returns noErr
if there is no error.
The name string is used by selection dialog boxes or configuration information.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Plays a note on a specified part at a specified pitch and velocity. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicPlayNote ( MusicComponent mc, long part, long pitch, long velocity );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
The part to play the note on.
The pitch at which to play the note. If the pitch is specified by a number from 0 to 127, it is a MIDI pitch, where 60 is middle C. If the pitch is a positive number above 65535, the value is a fixed-point pitch value. Thus, microtonal values may be specified.
How hard to strike the key. Values are 0-127 where 0 is silence. Velocity refers to how hard the key is struck (if performed on a keyboard-instrument); typically, this translates directly to volume, but on many synthesizers this also subtly alters the timbre of the tone.
See Error Codes
. Returns noErr
if there is no error.
The current note continues to play until a MusicPlayNote
function with the same pitch and velocity of 0 turns the note off.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Silences all sounds on a specified part and resets all controllers on that part to their default values. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicResetPart ( MusicComponent mc, long part );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
The number of the part.
See Error Codes
. Returns noErr
if there is no error.
The default value to which controllers on the part are set is 0 for all controllers except volume. Volume is set to its maximum, 32767 (0x7FFF).
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Sends a MIDI packet to a specified port. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicSendMIDI ( MusicComponent mc, long portIndex, MusicMIDIPacket *mp );
Music component instance returned by NAGetRegisteredMusicDevice
.
The index of the port to send the MIDI packet to. The index value is 1 through the port count returned by MusicGetMIDIPorts
.
A pointer to the music MIDI packet to be sent. The function sends the MIDI music packet specified by this parameter to the specified port.
See Error Codes
. Returns noErr
if there is no error.
This call is implemented only for hardware synthesizers, such as PCI card devices.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Modifies the value of the specified global synthesizer knob. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicSetKnob ( MusicComponent mc, long knobID, long knobValue );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Knob index or ID.
Value for specified knob.
See Error Codes
. Returns noErr
if there is no error.
A global knob controls an aspect of the entire synthesizer; it is not limited to a part within the synthesizer.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Alters a synthesizer's master tuning. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicSetMasterTune ( MusicComponent mc, long masterTune );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
The amount by which to transpose the entire synthesizer in pitch. The value is a fixed 16.16 number, allowing shifts by fractional values.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Informs the music component what procedure to call when it needs to send MIDI data. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicSetMIDIProc ( MusicComponent mc, MusicMIDISendUPP midiSendProc, long refCon );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
A pointer to the MusicMIDISendProc
callback to use when sending MIDI data.
A reference constant value. The Movie Toolbox passes this reference constant to your callback each time it calls it. Use this parameter to point to a data structure containing any information your callback needs.
See Error Codes
. Returns noErr
if there is no error.
This call is implemented only by music components for MIDI synthesizers.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Advances the synthesizer clock when the synthesizer is not running in real time. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicSetOfflineTimeTo ( MusicComponent mc, long newTimeStamp );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
The number of samples to synthesize.
See Error Codes
. Returns noErr
if there is no error.
The synthesizer may not be running in real time due to a call to MusicStartOffline
. Setting the time generates audio output from the synthesizer.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Sets the MIDI channel and maximum polyphony for a specified part. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicSetPart ( MusicComponent mc, long part, long midiChannel, long polyphony );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Part whose MIDI channel and polyphony are to be set.
The MIDI channel to set the part to. For non-MIDI devices, set this parameter to 0.
The maximum number of voices or polyphony for the part.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Initializes a part with an atomic instrument. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicSetPartAtomicInstrument ( MusicComponent mc, long part, AtomicInstrumentPtr aiP, long flags );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
The part to initialize with the atomic instrument to.
The atomic instrument.
Constants (see below) that specify details of initializing a part with an atomic instrument. See these constants:
kGetAtomicInstNoExpandedSamples
kGetAtomicInstNoOriginalSamples
kGetAtomicInstNoSamples
kGetAtomicInstNoKnobList
kGetAtomicInstNoInstrumentInfo
kGetAtomicInstOriginalKnobList
kGetAtomicInstAllKnobs
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Initializes the value of a specified controller on a specified part. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicSetPartController ( MusicComponent mc, long part, MusicController controllerNumber, long controllerValue );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Part whose controller value you want to set.
Controller number; see Music Controllers
.
Value for controller.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Superseded by MusicSetPartInstrumentNumberInterruptSafe. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicSetPartInstrumentNumber ( MusicComponent mc, long part, long instrumentNumber );
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Initializes a part with a particular instrument. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicSetPartInstrumentNumberInterruptSafe ( MusicComponent mc, long part, long instrumentNumber );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Part to be initialized.
Number of instrument to initialize part with. You can use MusicFindTone
to get an instrument number.
See Error Codes
. Returns noErr
if there is no error.
You can call this function at interrupt time.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Sets a knob for a specified part. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicSetPartKnob ( MusicComponent mc, long part, long knobID, long knobValue );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
The part number.
The index or ID of the knob to be set.
The value to set the knob to.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Changes the name of an instrument in a specified part. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicSetPartName ( MusicComponent mc, long part, StringPtr name );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Part to apply name to.
A pointer to the name to apply to part.
See Error Codes
. Returns noErr
if there is no error.
You might want to change the name of a modified instrument before saving it. The instrument name string is used by selection dialog and configuration information boxes.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Passes sound localization data to a specified synthesizer part. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicSetPartSoundLocalization ( MusicComponent mc, long part, Handle data );
Music component instance identifier.
The part to pass the data to.
The sound localization data.
See Error Codes
. Returns noErr
if there is no error.
Use the functions described in this section to get and modify the master tuning of the synthesizer, to play off line, and to allow the music component to perform tasks it must perform at foreground task time.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Informs the QuickTime music synthesizer that the music will not be played through the speakers. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicStartOffline ( MusicComponent mc, unsigned long *numChannels, UnsignedFixed *sampleRate, unsigned short *sampleSize, MusicOfflineDataUPP dataProc, long dataProcRefCon );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Number of channels in the music sample; 1 indicates monaural, 2 indicates stereo.
The number of samples per second.
The size of the music sample: 8-bit or 16-bit.
A pointer to a MusicOfflineDataProc
callback to handle the audio data.
A reference constant to pass to the MusicOfflineDataProc
callback. Use this parameter to point to a data structure containing any information your callback needs.
See Error Codes
. Returns noErr
if there is no error.
Audio data will be sent to a function that will create a sound file to be played back later. You pass this function the requested values for the numChannels
, sampleRate
, and sampleSize
parameters. When the function returns, those parameters contain the actual values used.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Puts whatever instrument is on the specified part into the synthesizer's instrument store. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicStorePartInstrument ( MusicComponent mc, long part, long instrumentNumber );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
Part containing the instrument to be stored.
Instrument number at which to store the part. The value must be between 1 and the synthesizer's modifiable instrument count, as defined by the modifiableInstrumentCount
field of the synthesizer's SynthesizerDescription
structure.
See Error Codes
. Returns noErr
if there is no error.
This function lets you store modified instruments.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Allows a music component to perform tasks it must perform at foreground task time. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicTask ( MusicComponent mc );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
See Error Codes
. Returns noErr
if there is no error.
This function must be called periodically. In the case of the QuickTime music synthesizer, instruments cannot be loaded from disk at interrupt time, so if the NASetInstrumentNumberInterruptSafe
function is called, the instrument is loaded during the next MusicTask
call.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Tells a music component which hardware synthesizer to talk to. (Deprecated in Mac OS X v10.5.)
ComponentResult MusicUseDeviceConnection ( MusicComponent mc, long id1, long id2 );
Music component instance identifier returned by NAGetRegisteredMusicDevice
.
The ID of the device returned in the id1 parameter of MusicGetDeviceConnection
.
The ID of the device returned in the id2 parameter of MusicGetDeviceConnection
.
See Error Codes
. Returns noErr
if there is no error.
This call is implemented only for hardware synthesizers, such as PCI card devices.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Displays a copyright dialog box with information specific to a music device. (Deprecated in Mac OS X v10.5.)
ComponentResult NACopyrightDialog ( NoteAllocator na, PicHandle p, StringPtr author, StringPtr copyright, StringPtr other, StringPtr title, ModalFilterUPP filterProc, long refCon );
You obtain the note allocator identifier by calling OpenComponent
.
A handle to a Picture
structure containing the image resource for the dialog box.
A pointer to a string containing author information.
A pointer to a string containing copyright information.
A pointer to a string containing any additional information.
A pointer to a string containing title information.
Pointer to a ModalFilterProc
callback.
A reference constant value. The Movie Toolbox passes this reference constant to your ModalFilterProc
each time it calls it. Use this parameter to point to a data structure containing any information your callback needs.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Deletes a specified note channel. (Deprecated in Mac OS X v10.5.)
ComponentResult NADisposeNoteChannel ( NoteAllocator na, NoteChannel noteChannel );
You obtain the note allocator identifier by calling OpenComponent
.
Note channel to be disposed. You obtain the note channel identifier from NANewNoteChannel
or NANewNoteChannelFromAtomicInstrument
.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Locates the instrument that best fits a requested tone description for a specific channel. (Deprecated in Mac OS X v10.5.)
ComponentResult NAFindNoteChannelTone ( NoteAllocator na, NoteChannel noteChannel, ToneDescription *td, long *instrumentNumber );
You obtain the note allocator identifier by calling OpenComponent
.
The note channel for which you want an instrument. You obtain the note channel identifier from NANewNoteChannel
or NANewNoteChannelFromAtomicInstrument
.
A ToneDescription
structure that describes the instrument fit.
On return, the number of the instrument that best fits the tone description.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Retrieves the controller settings for a note channel. (Deprecated in Mac OS X v10.5.)
ComponentResult NAGetController ( NoteAllocator na, NoteChannel noteChannel, long controllerNumber, long *controllerValue );
You obtain the note allocator identifier by calling OpenComponent
.
Note channel for which to get controller settings. You obtain the note channel identifier from NANewNoteChannel
or NANewNoteChannelFromAtomicInstrument
.
The controller for which to get settings; see Music Controllers
.
On return, the value for the controller setting, typically 0 (0x00.00) to 32767 (0x7F.FF).
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns the number of note channels handled by the specified note allocator instance. (Deprecated in Mac OS X v10.5.)
ComponentResult NAGetIndNoteChannel ( NoteAllocator na, long index, NoteChannel *nc, long *seed );
You obtain the note allocator identifier from the Component Manager's OpenComponent
function.
The index of the note channel. If 0, the result is still the number of note channels, but the nc
parameter is not filled out.
The note channel requested.
A number that changes on successive calls if anything significant changes about a note channel; for example, if the note channel has been reallocated or released.
See Error Codes
. Returns noErr
if there is no error.
This function can also return a requested note channel. To get a count of the note channels, pass 0 in the index
parameter. To get a specific note channel, pass the index value returned by a previous call to NAGetIndNoteChannel
.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Obtains the value of a knob for a given note channel. (Deprecated in Mac OS X v10.5.)
ComponentResult NAGetKnob ( NoteAllocator na, NoteChannel noteChannel, long knobNumber, long *knobValue );
You obtain the note allocator identifier by calling OpenComponent
.
The note channel whose knob value you want to get. You obtain the note channel identifier from NANewNoteChannel
or NANewNoteChannelFromAtomicInstrument
.
The index or ID of the knob whose value you want to get.
On return, a pointer to the value of the knob.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
The MIDI input and output ports available to a note allocator. (Deprecated in Mac OS X v10.5.)
ComponentResult NAGetMIDIPorts ( NoteAllocator na, QTMIDIPortListHandle *inputPorts, QTMIDIPortListHandle *outputPorts );
You obtain the note allocator identifier by calling OpenComponent
.
On return, a handle giving the number of input ports (the first two bytes) followed by a list of QTMIDIPort
structures.
On return, a handle giving the number of output ports (the first two bytes) followed by a list of QTMIDIPort
structures.
See Error Codes
. Returns noErr
if there is no error.
This routine calls the QuickTime MIDI components to query them.
NAGetMIDIPorts
is the correct call for applications to make. They should not call QTMIDIGetMIDIPorts
.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns the index of the music component for the allocated channel and its part number on that music component. (Deprecated in Mac OS X v10.5.)
ComponentResult NAGetNoteChannelInfo ( NoteAllocator na, NoteChannel noteChannel, long *index, long *part );
You obtain the note allocator identifier by calling OpenComponent
.
Note channel to get information about. You obtain the note channel identifier from NANewNoteChannel
or NANewNoteChannelFromAtomicInstrument
.
Music component index.
Music component part pointer.
See Error Codes
. Returns noErr
if there is no error.
The NAGetNoteChannelInfo
function allows direct access to the music component allocated to the note channel by the note allocator. The index returned becomes invalid if music components are subsequently registered or unregistered.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Retrieves the NoteRequest structure that was passed to a note channel. (Deprecated in Mac OS X v10.5.)
ComponentResult NAGetNoteRequest ( NoteAllocator na, NoteChannel noteChannel, NoteRequest *nrOut );
You obtain the note allocator identifier from the Component Manager's OpenComponent
function.
The note channel whose note request you want to get. You obtain the note channel identifier from NANewNoteChannel
or NANewNoteChannelFromAtomicInstrument
.
On return, the NoteRequest
structure that was used when the specified note channel was allocated.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns details about music components registered to the specified note allocator instance. (Deprecated in Mac OS X v10.5.)
ComponentResult NAGetRegisteredMusicDevice ( NoteAllocator na, long index, OSType *synthType, Str31 name, SynthesizerConnections *connections, MusicComponent *mc );
You obtain the note allocator identifier from the Component Manager's OpenComponent
function.
The index of the music component to get information about. To get a count of the registered music components, pass 0 in the index
parameter. The return value is the count of components. To get information about one of the music components registered with the note allocator, pass the music component index in the index
parameter. The index value can be 1 through the number of registered components returned by a previous call to NAGetRegisteredMusicDevice
.
Synthesizer type.
Synthesizer name as a text string.
A synthesizer connections for MIDI devices structure.
Music component instance identifier.
See Error Codes
. Returns noErr
if there is no error.
If you request information about a specific registered music component, this function returns the type of synthesizer the component supports in the synthType
parameter, the name of the synthesizer in the name parameter, and the music component identifier in the mc
parameter. For MIDI devices, it returns a pointer to a MIDI devices structure with information about the synthesizer connections.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Requests a new note channel with the qualities described in a NoteRequest structure. (Deprecated in Mac OS X v10.5.)
ComponentResult NANewNoteChannel ( NoteAllocator na, NoteRequest *noteRequest, NoteChannel *outChannel );
You obtain the note allocator identifier from the Component Manager's OpenComponent
function.
A pointer to a NoteRequest
structure.
On return, a pointer to an identifier for a new note channel or NIL
if the function fails to create a note channel.
See Error Codes
. Returns noErr
if there is no error.
This function searches all available music components for the instrument that best matches the specifications in the ToneDescription
structure that is contained within the noteRequest
parameter. If an error occurs, the new note channel is initialized to NIL
. The caller can request an instrument that is not currently allocated to a part. In that case, this function may return a value in outChannel
, even though the request cannot initially be satisfied. The note channel may become valid at a later time, as other note channels are released or other music components are registered.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Requests a new note channel for an atomic instrument. (Deprecated in Mac OS X v10.5.)
ComponentResult NANewNoteChannelFromAtomicInstrument ( NoteAllocator na, AtomicInstrumentPtr instrument, long flags, NoteChannel *outChannel );
You obtain the note allocator identifier from the Component Manager's OpenComponent
function.
A pointer to the atomic instrument. This may be a dereferenced locked QT atom container.
Flags (see below) that specify details of initializing a part with an atomic instrument. See these constants:
kSetAtomicInstKeepOriginalInstrument
kSetAtomicInstShareAcrossParts
kSetAtomicInstCallerTosses
kSetAtomicInstDontPreprocess
On return, a pointer to an identifier for a new note channel or NIL
if the function fails to create a note channel.
See Error Codes
. Returns noErr
if there is no error.
This function takes a note allocator identifier in the na
parameter and a pointer to the atomic instrument you are requesting a new channel for in the instrument
parameter. Among other things, you can specify how to handle the expanded sample with the flags
parameter. The function returns the note channel allocated for the instrument in the outChannel
parameter, or NIL
if an error occurs.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Displays a dialog box to allow instrument selection. (Deprecated in Mac OS X v10.5.)
ComponentResult NAPickArrangement ( NoteAllocator na, ModalFilterUPP filterProc, StringPtr prompt, long zero1, long zero2, Track t, StringPtr songName );
You obtain the note allocator identifier by calling OpenComponent
.
A Universal Procedure Pointer to a ModalFilterProc
callback.
A pointer to a dialog box prompt string.
Must be 0.
Must be 0.
The arrangement movie track number.
A pointer to the name of a song to display in the dialog box.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Presents a user interface for changing the instrument in a live note channel or modifying an atomic instrument. (Deprecated in Mac OS X v10.5.)
ComponentResult NAPickEditInstrument ( NoteAllocator na, ModalFilterUPP filterProc, StringPtr prompt, long refCon, NoteChannel nc, AtomicInstrument ai, long flags );
You obtain the note allocator identifier by calling OpenComponent
.
Pointer to a ModalFilterProc
callback.
Dialog box prompt "New Instrument".
A reference constant value. The Movie Toolbox passes this reference constant to your ModalFilterProc
callback each time it calls it. Use this parameter to point to a data structure containing any information your callback needs.
The live note channel that appears in the dialog box. If you specify a note channel, set the ai
parameter to 0. You obtain the note channel identifier from NANewNoteChannel
or NANewNoteChannelFromAtomicInstrument
.
The atomic instrument that appears in the dialog box. If you specify an atomic instrument, set the nc
parameter to 0.
Flags (see below) that limit the instruments presented. If the kPickDontMix
flag is set, the dialog box does not display a mix of synthesizer part types. For example, if the current instrument is a drum, only available drums appear in the dialog box. The kPickSameSynth
flag allows selections only within the current synthesizer. The kPickUserInsts
flag allows user modifiable instruments to appear. If the kPickEditAllowPick
flag is not set, no dialog box appears. See these constants:
kPickDontMix
kPickSameSynth
kPickUserInsts
kPickEditAllowPick
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Presents a user interface for picking an instrument. (Deprecated in Mac OS X v10.5.)
ComponentResult NAPickInstrument ( NoteAllocator na, ModalFilterUPP filterProc, StringPtr prompt, ToneDescription *sd, unsigned long flags, long refCon, long reserved1, long reserved2 );
You obtain the note allocator identifier by calling OpenComponent
.
Pointer to a ModalFilterProc
callback.
A pointer to the dialog box prompt "New Instrument".
On entry, the tone description of the instrument that appears in the picker dialog box. On return, a tone description of the instrument the user selected.
Flags (see below) that determine whether to display the picker dialog box and what instruments appear for selection. If the kPickDontMix
flag is set, the dialog box does not display a mix of synthesizer part types. For example, if the current instrument is a drum, only available drums appear in the dialog box. The kPickSameSynth
flag allows selections only within the current synthesizer. The kPickUserInsts
flag allows user modifiable instruments to appear. The kPickEditAllowPick
flag is used only with NAPickEditInstrument
. See these constants:
kPickDontMix
kPickSameSynth
kPickUserInsts
A reference constant value. The Movie Toolbox passes this reference constant to your ModalFilterProc
callback each time it calls it. Use this parameter to point to a data structure containing any information your callback needs.
Must contain 0.
Must contain 0.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Plays a note with a specified pitch and velocity on the specified note channel. (Deprecated in Mac OS X v10.5.)
ComponentResult NAPlayNote ( NoteAllocator na, NoteChannel noteChannel, long pitch, long velocity );
You obtain the note allocator identifier from OpenComponent
.
The note channel to play the note. You obtain the note channel identifier from the NANewNoteChannel
or the NANewNoteChannelFromAtomicInstrument
function.
The pitch at which to play the note. You can specify values as integer pitch values (0-127 where 60 is middle C) or fractional pitch values (256 (0x1.00) through 32767 (0x7F.FF)). If the pitch is a number from 0 to 127, then it is the MIDI pitch, where 60 is middle C. If the pitch is a positive number above 65535, then the value is a fixed-point pitch value. Thus, microtonal values can be specified. Negative values are not defined and should not be used.
The velocity with which the key is struck. Typically, this translates directly to volume, but on many synthesizers this also subtly alters the timbre of the tone. A value of 0 is silence; a value of 127 is maximum force.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Attempts to reallocate the note channel if it was invalid previously. (Deprecated in Mac OS X v10.5.)
ComponentResult NAPrerollNoteChannel ( NoteAllocator na, NoteChannel noteChannel );
You obtain the note allocator identifier by calling OpenComponent
.
Note channel to be re-allocated. You obtain the note channel identifier from NANewNoteChannel
or NANewNoteChannelFromAtomicInstrument
.
See Error Codes
. Returns noErr
if there is no error.
The NAPrerollNoteChannel
function attempts to reallocate the note channel, if it was invalid previously. It could have been invalid if there were no available voices on any registered music components when the note channel was created.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Registers a music component with the note allocator. (Deprecated in Mac OS X v10.5.)
ComponentResult NARegisterMusicDevice ( NoteAllocator na, OSType synthType, Str31 name, SynthesizerConnections *connections );
You obtain the note allocator identifier from OpenComponent
.
Subtype of the music component.
The synthesizer name. This parameter provides a means of distinguishing multiple instances of the same type of device and is a string that can be displayed to the user. If no value is passed in the name parameter, the name defaults to the name of the music component type. The name appears in the instrument picker dialog box.
A SynthesizerConnections
structure that describes the hardware connections to a MIDI device.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Turns off all currently active notes on the note channel and resets all controllers to their default values. (Deprecated in Mac OS X v10.5.)
ComponentResult NAResetNoteChannel ( NoteAllocator na, NoteChannel noteChannel );
You obtain the note allocator identifier by calling OpenComponent
.
The note channel to reset. You obtain the note channel identifier from NANewNoteChannel
or NANewNoteChannelFromAtomicInstrument
.
See Error Codes
. Returns noErr
if there is no error.
This function resets the specified note channel by turning "off" any note currently playing. All controllers are reset to their default state. The effects of the NAResetNoteChannel
call are propagated down to the allocated part within the appropriate music component.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Saves the current list of registered devices to a file. (Deprecated in Mac OS X v10.5.)
ComponentResult NASaveMusicConfiguration ( NoteAllocator na );
You obtain the note allocator identifier by calling OpenComponent
.
See Error Codes
. Returns noErr
if there is no error.
The NASaveMusicConfiguration
function saves the current list of registered devices to a file. This file is read whenever a note allocator connection is opened, restoring the previously configured list of devices. The list is saved in the QuickTime Preferences file.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Sends a MIDI music packet to a synthesizer that contains a specific note channel. (Deprecated in Mac OS X v10.5.)
ComponentResult NASendMIDI ( NoteAllocator na, NoteChannel noteChannel, MusicMIDIPacket *mp );
You obtain the note allocator identifier from the Component Manager's OpenComponent
function.
The function sends the packet to the synthesizer that contains this note channel. You obtain the note channel identifier from the NANewNoteChannel
or the NANewNoteChannelFromAtomicInstrument
function.
The music packet to be sent.
See Error Codes
. Returns noErr
if there is no error.
This function sends the MIDI music packet pointed to by the mp
parameter to the synthesizer that contains the note channel identified by the noteChannel
parameter. The na
parameter specifies the note allocator instance to use.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Initializes a synthesizer part with an atomic instrument. (Deprecated in Mac OS X v10.5.)
ComponentResult NASetAtomicInstrument ( NoteAllocator na, NoteChannel noteChannel, AtomicInstrumentPtr instrument, long flags );
You obtain the note allocator identifier by calling OpenComponent
.
The note channel to apply the atomic instrument to. You obtain the note channel identifier from NANewNoteChannel
or NANewNoteChannelFromAtomicInstrument
.
A pointer to the atomic instrument. This can be a locked, dereferenced atomic instrument.
Flags (see below) that detail how to initialize the part. See these constants:
kSetAtomicInstKeepOriginalInstrument
kSetAtomicInstShareAcrossParts
kSetAtomicInstCallerTosses
kSetAtomicInstDontPreprocess
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Changes the controller setting on a note channel to a specified value. (Deprecated in Mac OS X v10.5.)
ComponentResult NASetController ( NoteAllocator na, NoteChannel noteChannel, long controllerNumber, long controllerValue );
You obtain the note allocator identifier by calling OpenComponent
.
Note channel on which to change controller. You obtain the note channel identifier from NANewNoteChannel
or NANewNoteChannelFromAtomicInstrument
.
The controller to set; see Music Controllers
.
Value for controller setting; typically 0 (0x00.00) to 32767 (0x7F.FF).
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Initializes initializes a synthesizer part with the specified instrument. (Deprecated in Mac OS X v10.5.)
ComponentResult NASetInstrumentNumber ( NoteAllocator na, NoteChannel noteChannel, long instrumentNumber );
You obtain the note allocator identifier by calling OpenComponent
.
Note channel to initialize with the instrument. You obtain the note channel identifier from NANewNoteChannel
or NANewNoteChannelFromAtomicInstrument
.
Number of the instrument to initialize the part with. This number is unique to each synthesizer. General MIDI synthesizers all share the range 1-128 and 16365 to kLastDrumKit
.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Initializes a synthesizer part with the specified instrument during interrupt time. (Deprecated in Mac OS X v10.5.)
ComponentResult NASetInstrumentNumberInterruptSafe ( NoteAllocator na, NoteChannel noteChannel, long instrumentNumber );
You obtain the note allocator identifier by calling OpenComponent
.
Note channel to initialize with the instrument. You obtain the note channel identifier from NANewNoteChannel
or NANewNoteChannelFromAtomicInstrument
.
Number of the instrument to initialize the part with.
See Error Codes
. Returns noErr
if there is no error.
If the instrument is not already loaded when you call NASetInstrumentNumberInterruptSafe
, you have to wait for the next call to NATask
for the instrument to become available.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Sets a note channel knob to a particular value. (Deprecated in Mac OS X v10.5.)
ComponentResult NASetKnob ( NoteAllocator na, NoteChannel noteChannel, long knobNumber, long knobValue );
You obtain the note allocator identifier by calling OpenComponent
.
Note channel on which to set the knob value. You obtain the note channel identifier from NANewNoteChannel
or NANewNoteChannelFromAtomicInstrument
.
Index or ID of the knob to be set.
Value to set knob to.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Modifies the pan controller setting for a note channel. (Deprecated in Mac OS X v10.5.)
ComponentResult NASetNoteChannelBalance ( NoteAllocator na, NoteChannel noteChannel, long balance );
You obtain the note allocator identifier by calling OpenComponent
.
The note channel to be balanced. You obtain the note channel identifier from NANewNoteChannel
or NANewNoteChannelFromAtomicInstrument
.
Specifies how to modify the pan controller setting. Valid values are from -128 to 128 for left to right balance.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Passes sound localization data to a note channel. (Deprecated in Mac OS X v10.5.)
ComponentResult NASetNoteChannelSoundLocalization ( NoteAllocator na, NoteChannel noteChannel, Handle data );
You obtain the note allocator identifier by calling OpenComponent
.
The note channel to pass the data to. You obtain the note channel identifier from NANewNoteChannel
or NANewNoteChannelFromAtomicInstrument
.
Sound localization data.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Sets the volume on the specified note channel. (Deprecated in Mac OS X v10.5.)
ComponentResult NASetNoteChannelVolume ( NoteAllocator na, NoteChannel noteChannel, Fixed volume );
You obtain the note allocator identifier from the Component Manager's OpenComponent
function.
The note channel to reset. You obtain the note channel identifier from the NANewNoteChannel
or the NANewNoteChannelFromAtomicInstrument
function.
A fixed 16.16 number. NASetNoteChannelVolume
sets the volume for the note channel, which is different from a kControllerVolume
setting. Both volume settings allow fractional values of 0.0 to 1.0. Each value modifies the other. For example, a kControllerVolume
value of 0.5 and a NASetNoteChannelVolume
value of 0.5 result in a 0.25 volume level.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Initializes a tone description structure with the details of a General MIDI note channel. (Deprecated in Mac OS X v10.5.)
ComponentResult NAStuffToneDescription ( NoteAllocator na, long gmNumber, ToneDescription *td );
You obtain the note allocator identifier from the Component Manager's OpenComponent
function.
A General MIDI instrument number.
On return, an initialized tone description. The instrument name field will be filled in with the string name for the instrument.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Called periodically to allow the note allocator to perform tasks in foreground task time. (Deprecated in Mac OS X v10.5.)
ComponentResult NATask ( NoteAllocator na );
You obtain the note allocator identifier from the Component Manager's OpenComponent
function.
See Error Codes
. Returns noErr
if there is no error.
The NATask
function calls each registered music component's MusicTask
function.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Removes a previously registered music component from the note allocator. (Deprecated in Mac OS X v10.5.)
ComponentResult NAUnregisterMusicDevice ( NoteAllocator na, long index );
You obtain the note allocator identifier by calling OpenComponent
.
Synthesizer to unregister. The value is 1 through the registered music component count returned by NAGetRegisteredMusicDevice
.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Marks a note channel as available to be stolen. (Deprecated in Mac OS X v10.5.)
ComponentResult NAUnrollNoteChannel ( NoteAllocator na, NoteChannel noteChannel );
You obtain the note allocator identifier by calling OpenComponent
.
Note channel to be unrolled. You obtain the note channel identifier from NANewNoteChannel
or NANewNoteChannelFromAtomicInstrument
.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Allocates a Universal Procedure Pointer for the MusicMIDISendProc callback. (Deprecated in Mac OS X v10.5.)
MusicMIDISendUPP NewMusicMIDISendUPP ( MusicMIDISendProcPtr userRoutine );
A pointer to your application-defined function.
A new UPP; see Universal Procedure Pointers
.
This function is used with Macintosh PowerPC systems. See Inside Macintosh: PowerPC System Software.
Introduced in QuickTime 4.1. Replaces NewMusicMIDISendProc
.
QuickTimeMusic.h
Allocates a Universal Procedure Pointer for the MusicOfflineDataProc callback. (Deprecated in Mac OS X v10.5.)
MusicOfflineDataUPP NewMusicOfflineDataUPP ( MusicOfflineDataProcPtr userRoutine );
A pointer to your application-defined function.
A new UPP; see Universal Procedure Pointers
.
This function is used with Macintosh PowerPC systems. See Inside Macintosh: PowerPC System Software.
Introduced in QuickTime 4.1. Replaces NewMusicOfflineDataProc
.
QuickTimeMusic.h
Allocates a Universal Procedure Pointer for the TuneCallBackProc callback. (Deprecated in Mac OS X v10.5.)
TuneCallBackUPP NewTuneCallBackUPP ( TuneCallBackProcPtr userRoutine );
A pointer to your application-defined function.
A new UPP; see Universal Procedure Pointers
.
This function is used with Macintosh PowerPC systems. See Inside Macintosh: PowerPC System Software.
Introduced in QuickTime 4.1. Replaces NewTuneCallBackProc
.
QuickTimeMusic.h
Allocates a Universal Procedure Pointer for the TunePlayCallBackProc callback. (Deprecated in Mac OS X v10.5.)
TunePlayCallBackUPP NewTunePlayCallBackUPP ( TunePlayCallBackProcPtr userRoutine );
A pointer to your application-defined function.
A new UPP; see Universal Procedure Pointers
.
This function is used with Macintosh PowerPC systems. See Inside Macintosh: PowerPC System Software.
Introduced in QuickTime 4.1. Replaces NewTunePlayCallBackProc
.
QuickTimeMusic.h
Returns two lists of MIDI ports supported by the specified MIDI component: a list of ports that can receive MIDI input and a list of ports that can send MIDI output. (Deprecated in Mac OS X v10.5.)
ComponentResult QTMIDIGetMIDIPorts ( QTMIDIComponent ci, QTMIDIPortListHandle *inputPorts, QTMIDIPortListHandle *outputPorts );
A MIDI component instance. Your software obtains this reference from OpenComponent
or OpenDefaultComponent
.
A list of the MIDI ports supported by the component that can receive MIDI input.
A list of the MIDI ports supported by the component that can send MIDI output.
See Error Codes
. Returns noErr
if there is no error.
The caller of this function must dispose of the inputPorts
and outputPorts
handles.
NAGetMIDIPorts
is the correct call for applications to make. They should not call this function.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Sends MIDI data to a MIDI port. (Deprecated in Mac OS X v10.5.)
ComponentResult QTMIDISendMIDI ( QTMIDIComponent ci, long portIndex, MusicMIDIPacket *mp );
A MIDI component instance. Your software obtains this reference from OpenComponent
or OpenDefaultComponent
.
The index of the MIDI port to use for this operation.
A pointer to the MIDI data packet to send.
See Error Codes
. Returns noErr
if there is no error.
This function can be called at interrupt time. However, the same interrupt level is used whenever MIDI data is sent by the specified MIDI component.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Allocates a MIDI port for output or to release the port. (Deprecated in Mac OS X v10.5.)
ComponentResult QTMIDIUseSendPort ( QTMIDIComponent ci, long portIndex, long inUse );
A MIDI component instance. Your software obtains this reference from OpenComponent
or OpenDefaultComponent
.
The index of the MIDI port for this operation.
Specifies whether to allocate the MIDI port for output (if the value is 1) or to release the port (if the value is 0).
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Determines how many parts a tune is playing and which instrument is assigned to those parts. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneGetIndexedNoteChannel ( TunePlayer tp, long i, NoteChannel *nc );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
Note channel index, or 0 to get the number of parts.
A pointer to an allocated initialized note channel.
See Error Codes
. Returns noErr
if there is no error.
The tune player allocates note channels that best satisfy the requested instrument in the tune header. The application can use this call to determine which instrument was actually used for each note channel. This function takes the tune player in the tp
parameter and returns the number of parts (1...n) allocated to the tune player. You can then pass the function a part index and it returns, in the nc
parameter, the note channel allocated for that part.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns the instance of the note allocator that the tune player is using. (Deprecated in Mac OS X v10.5.)
NoteAllocator TuneGetNoteAllocator ( TunePlayer tp );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
A note allocator or an error code. See Error Codes
.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Gets volume, balance, and mixing settings for a specified part of a tune. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneGetPartMix ( TunePlayer tp, unsigned long partNumber, long *volumeOut, long *balanceOut, long *mixFlagsOut );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
The part number for this request.
Returns the volume for the part.
Returns the balance for the part.
Returns flags (see below) that control part mixing. See these constants:
kTuneMixMute
kTuneMixSolo
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns an initialized structure describing the state of the tune player instance. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneGetStatus ( TunePlayer tp, TuneStatus *status );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
A pointer to an initialized TuneStatus
structure.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns the time base of the tune player. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneGetTimeBase ( TunePlayer tp, TimeBase *tb );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
A pointer to a time base identifier, such as that returned by NewTimeBase
. On return, the time base used to control the sequence timing.
See Error Codes
. Returns noErr
if there is no error.
The sequence can be controlled in several ways through its time base. The rate of playback can be changed, or the time base object can be slaved to a clock or time base different than real time.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns the current time scale for a specified tune player instance. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneGetTimeScale ( TunePlayer tp, TimeScale *scale );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
A pointer to an initialized TimeScale
variable that indicates the tune player's current time scale in units per second.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Returns the volume associated with an entire tune sequence. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneGetVolume ( TunePlayer tp );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
The volume as a value from 0.0 to 1.0, or a negative result code. See Error Codes
.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Plays a particular sequence of events active at a specified position. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneInstant ( TunePlayer tp, unsigned long *tune, unsigned long tunePosition );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
A pointer to tune sequence data.
The position within the tune sequence data in time units.
See Error Codes
. Returns noErr
if there is no error.
This function plays the notes that are "on" at the point specified by the tunePosition
parameter. The notes are started and then left playing on return. The notes can be silenced by calling TuneStop
. This call is useful for enabling user "scrubbing" on a sequence.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Prepares to play a tune player sequence data by attempting to reserve note channels for each part in the sequence. (Deprecated in Mac OS X v10.5.)
ComponentResult TunePreroll ( TunePlayer tp );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Places a sequence of music events into a queue to be played. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneQueue ( TunePlayer tp, unsigned long *tune, Fixed tuneRate, unsigned long tuneStartPosition, unsigned long tuneStopPosition, unsigned long queueFlags, TuneCallBackUPP callBackProc, long refCon );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
A pointer to an array of events, terminated by a marker event of subtype kMarkerEventEnd
. See QTMA Events
.
Speed at which to play the sequence. "Normal" speed is 0x00010000.
Sequence starting time.
Sequence stopping time. The tuneStartPosition
and tuneStopPosition
parameters specify, in time units numbered from 0 for the beginning of the sequence, which part of the queued sequence to play. To play all of it, pass 0 and 0xFFFFFFFF, respectively.
Flags (see below) with details about how to play the queued tunes. See these constants:
kTuneStartNow
kTuneDontClipNotes
kTuneExcludeEdgeNotes
kTuneQuickStart
kTuneLoopUntil
kTuneStartNewMaster
A pointer to a TuneCallBackProc
callback.
A reference constant to be passed to your TuneCallBackProc
callback. Use this parameter to point to a data structure containing any information your function needs.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Modifies the pan controller setting for a tune player. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneSetBalance ( TunePlayer tp, long balance );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
A new pan controller setting. Valid values are from -128 to 128 for left-to-right balance.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Prepares the tune player to accept subsequent music event sequences by defining one or more parts to be used by sequence Note events. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneSetHeader ( TunePlayer tp, unsigned long *header );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
A pointer to a list of instruments that will be used in subsequent calls to the TuneQueue
function. The list can include events with subtypes of kGeneralEventNoteRequest
, kGeneralEventPartKey
, kGeneralEventAtomicInstrument
, kGeneralEventMIDIChannel
, and kGeneralEventUsedNotes
. It can also include atomic instruments. The list is terminated by a marker event of subtype kMarkerEventEnd
. See QTMA Events
.
See Error Codes
. Returns noErr
if there is no error.
This function is the first QuickTime music architecture call to play a music sequence. The header parameter points to one or more initialized General events and atomic instruments. Only one call to this function is required. Each call to this function resets the tune player.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Similar to TuneSetHeader but lets you specify the header length. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneSetHeaderWithSize ( TunePlayer tp, unsigned long *header, unsigned long size );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
A pointer to a list of instruments that will be used in subsequent calls to the TuneQueue
function. The list can include events with subtypes of kGeneralEventNoteRequest
, kGeneralEventPartKey
, kGeneralEventAtomicInstrument
, kGeneralEventMIDIChannel
, and kGeneralEventUsedNotes
. It can also include atomic instruments. The list is terminated by a marker event of subtype kMarkerEventEnd
. See QTMA Events
.
The size of the header in bytes.
See Error Codes
. Returns noErr
if there is no error.
This function resembles TuneSetHeader
in that it prepares the tune player to accept subsequent music event sequences by defining one or more parts to be used by sequence Note events. But unlike TuneSetHeader
, it allows you to specify the header length in bytes. This prevents the call from parsing off the end if the music event sequence is missing an end marker.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Assigns note channels to a tune player. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneSetNoteChannels ( TunePlayer tp, unsigned long count, NoteChannel *noteChannelList, TunePlayCallBackUPP playCallBackProc, long refCon );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
The number of note channels to assign.
A pointer to the list of note channels to assign. The parts for the note channels you assign are numbered from 1 to the value of the count
parameter.
A pointer to a TunePlayCallBackProc
callback that is called for each event whose part number is greater than the value of the count
parameter. Events whose part numbers are less than or equal to the value of the count
parameter are passed to the note channel rather than the callback. This lets you to use the tune player as a general purpose timer/sequencer.
A reference constant to be passed to your callback. Use this parameter to point to a data structure containing any information your function needs.
See Error Codes
. Returns noErr
if there is no error.
When you call this function, any note channels that were previously assigned to the tune player are no longer used and are disposed of.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Sets volume, balance, and mixing settings for a specified part of a tune. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneSetPartMix ( TunePlayer tp, unsigned long partNumber, long volume, long balance, long mixFlags );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
The part number for this request.
The volume for the part.
The balance for the part.
Flags (see below) that control part mixing. See these constants:
kTuneMixMute
kTuneMixSolo
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Modifies the pitch and volume of every note of a tune. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneSetPartTranspose ( TunePlayer tp, unsigned long part, long transpose, long velocityShift );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
The part for which you want to change pitch and volume.
A value by which to modify the pitch of the note. The value is a small integer for semitones or an 8.8 fixed-point number for microtones.
A value to add to the velocity
parameter passed to NAPlayNote
.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Adjusts the volume a tune is played at to the softer volume produced by QuickTime 2.1. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneSetSofter ( TunePlayer tp, long softer );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
A value of 1 means play at the QuickTime 2.1 volume; a value of 0 means don't make the volume softer.
See Error Codes
. Returns noErr
if there is no error.
This function adjusts the volume a tune is played at to the softer volume produced by QuickTime 2.1. Files imported with QuickTime 2.1 automatically play softer. Files imported with QuickTime 2.5 or later play at the new, louder volume.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Passes sound localization data to a tune player. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneSetSoundLocalization ( TunePlayer tp, Handle data );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
The sound localization data to be passed.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Sets the time scale used by the specified tune player instance. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneSetTimeScale ( TunePlayer tp, TimeScale scale );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
The time scale value to be used, in units per second.
See Error Codes
. Returns noErr
if there is no error.
This function sets the time scale data used by the tune player's sequence data when interpreting time-based events.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Sets the volume for an entire sequence. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneSetVolume ( TunePlayer tp, Fixed volume );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
The volume to use for the sequence. The value is a fixed 16.16 number.
See Error Codes
. Returns noErr
if there is no error.
This function sets the volume level of the active sequence to the value of the volume
parameter, ranging from 0.0 to 1.0. Individual instruments within the sequence can maintain independent volume levels.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Stops a currently playing sequence. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneStop ( TunePlayer tp, long stopFlags );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
Set to 0.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Lets a tune player to perform tasks it must perform at foreground task time. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneTask ( TunePlayer tp );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
See Error Codes
. Returns noErr
if there is no error.
Call this function periodically to allow a tune player to perform certain operations it can performed only at foreground application task time. Specifically, the QuickTime music synthesizer cannot load instruments from disk at interrupt time. As a result, embedded program changes are not performed until this function is called.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
Releases any note channel resources that may have been locked down by previous calls to TunePreroll for this tune player. (Deprecated in Mac OS X v10.5.)
ComponentResult TuneUnroll ( TunePlayer tp );
A tune player identifier, obtained from OpenComponent
or OpenDefaultComponent
.
See Error Codes
. Returns noErr
if there is no error.
Introduced in QuickTime 3 or earlier.
QuickTimeMusic.h
© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)