|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.util.QTByteObject | +--quicktime.std.music.ToneDescription
Provides the information needed to produce a specific musical sound.
Field Summary | |
static int |
kNativeSize
This is the size (the number of bytes) that are required for this class |
Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
Constructor Summary | |
ToneDescription()
Creates a ToneDescription object with no initial settings. |
|
ToneDescription(int gmNumber)
Initializes the ToneDescription instance with the appropriate instrument based on the specified gmNumber. |
|
ToneDescription(NoteAllocator na,
int gmNumber)
Initializes the ToneDescription instance with the appropriate instrument based on the specified gmNumber. |
Method Summary | |
java.lang.Object |
clone()
Makes a copy of a ToneDescription object. |
int |
getGMNumber()
Returns the current gm Number of the described instrument's synthesiser. |
java.lang.String |
getInstrumentName()
Returns the current name of the described instrument. |
int |
getInstrumentNumber()
Returns the current number of the described instrument. |
java.lang.String |
getSynthesizerName()
Returns the current name of the described instrument's synthesiser. |
int |
getSynthesizerType()
Returns the current OSType of the described instrument's synthesiser. |
void |
pickInstrument(NoteAllocator na,
java.lang.String prompt,
int flags)
Initialises the tone description structure through providing the user with a dialog that allows the user to choose the instrument. |
void |
setGMNumber(int gmNumber)
Sets the current gm Number of the described instrument's synthesiser. |
void |
setInstrumentName(java.lang.String name)
Sets the current name of the described instrument. |
void |
setInstrumentNumber(int num)
Sets the current number of the described instrument. |
void |
setSynthesizerName(java.lang.String name)
Sets the current name of the described instrument's synthesiser. |
void |
setSynthesizerType(int type)
Sets the current OSType of the described instrument's synthesiser. |
void |
stuff(NoteAllocator na,
int gmNumber)
Initializes the calling ToneDescription instance with the details of the note channel specified by the gmNumber. |
java.lang.String |
toString()
Returns a string representation of this object |
Methods inherited from class quicktime.util.QTByteObject |
equals, fromArray, getBytes, getSize |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int kNativeSize
Constructor Detail |
public ToneDescription()
public ToneDescription(int gmNumber) throws QTException
gmNumber
- instrument numberpublic ToneDescription(NoteAllocator na, int gmNumber) throws StdQTException
na
- the NoteAllocator component instance to usegmNumber
- instrument numberMethod Detail |
public final int getSynthesizerType()
public final void setSynthesizerType(int type)
type
- the OSTypepublic final java.lang.String getSynthesizerName() throws UtilException
public final void setSynthesizerName(java.lang.String name) throws UtilException
name
- the Synthesizer namepublic final java.lang.String getInstrumentName() throws UtilException
public final void setInstrumentName(java.lang.String name) throws UtilException
name
- the instrumentNamepublic final int getInstrumentNumber()
public final void setInstrumentNumber(int num)
num
- the instrumentNumberpublic final int getGMNumber()
public final void setGMNumber(int gmNumber)
gmNumber
- the gm Numberpublic final void stuff(NoteAllocator na, int gmNumber) throws StdQTException
na
- the Note Allocator component to usegmNumber
- instrument numberpublic final void pickInstrument(NoteAllocator na, java.lang.String prompt, int flags) throws StdQTException
na
- the Note Allocator component to useprompt
- Dialog box prompt "New Instrument..."flags
- flags to limit user optionspublic java.lang.String toString()
QTByteObject
toString
in class QTByteObject
public java.lang.Object clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |