All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.app.audio.MusicPartControl

java.lang.Object
   |
   +----quicktime.app.audio.MusicPartControl

public class MusicPartControl
extends Object
implements MusicPart
This class provides an implementation of the ExtendedAudioSpec interface for dealing with specific charactertics of the parts of the MusicMedia.

Currently any actions on the part do not reset the MusicMedia with which they are derived from - any changes that are made to a part are only active for an unpredicatable period of time as they do not interact on the Media object itself.


Constructor Index

 o MusicPartControl(MusicMediaHandler, int)
Create a new MusicPartControl from the given MusicMediaHandler.

Method Index

 o getBalance()
This method gets the balance of the this object.
 o getInstrumentName()
Returns the name of the current instrument for this part.
 o getNoteChannel()
This method gets the NoteChannel being controlled by this object.
 o getVolume()
This method will get the volume of this object.
 o isMuted()
Returns the current mute status
 o selectInstrument(String)
This method allows for the class to allow some selection process whereby the user would choose a particular instrument that will be consequently used by a MusicPart to produce the sounds that it plays.
 o setBalance(float)
This method sets the balance of this object.
 o setMuted(boolean)
Allows the muting of the specific channel.
 o setVolume(float)
This method will set the volume of this object.

Constructors

 o MusicPartControl
 public MusicPartControl(MusicMediaHandler mh,
                         int partNumber) throws QTException
Create a new MusicPartControl from the given MusicMediaHandler.

Parameters:
mh - the MusicMediaHandler to extract the part from
partNumber - the part number within the MusicMedia to control

Methods

 o isMuted
 public boolean isMuted()
Returns the current mute status

Returns:
the current mute status
 o setMuted
 public void setMuted(boolean flag) throws QTException
Allows the muting of the specific channel. When unmuted the AudioSpec object will return to its current volume setting.

Parameters:
flag - turn muting on - true or off - false.
 o setVolume
 public void setVolume(float volume) throws QTException
This method will set the volume of this object.

Parameters:
volume - the desired volume (range: 0.0F - 1.0F)
 o getVolume
 public float getVolume() throws QTException
This method will get the volume of this object. (range: 0.0 - 1.0)

Returns:
the current volume.
 o setBalance
 public void setBalance(float val) throws QTException
This method sets the balance of this object.

Parameters:
val - the desired balance (range: -1F -> 1F)
 o getBalance
 public float getBalance() throws QTException
This method gets the balance of the this object. (range: -1.0 -> 1.0)

Returns:
the balance
 o getInstrumentName
 public String getInstrumentName() throws QTException
Returns the name of the current instrument for this part.

Returns:
name of the current instrument for this part
 o selectInstrument
 public void selectInstrument(String prompt) throws QTException
This method allows for the class to allow some selection process whereby the user would choose a particular instrument that will be consequently used by a MusicPart to produce the sounds that it plays.

Parameters:
prompt - - any information that the program wants to display to the user to aid in the selection process.
 o getNoteChannel
 public final NoteChannel getNoteChannel() throws QTException
This method gets the NoteChannel being controlled by this object.

Returns:
the NoteChannel

All Packages  Class Hierarchy  This Package  Previous  Next  Index