Previous  Next          Package

Class MIDICompose.MasterVolume

java.lang.Object
   |
   +----MIDICompose.MIDIObject
           |
           +----MIDICompose.MIDIEvent
                   |
                   +----MIDICompose.SystemExclusive
                           |
                           +----MIDICompose.MasterVolume

public class MasterVolume
extends SystemExclusive
implements Amountable

Variable Index

 o MIN
Minimal amount (0).
 o MAX
Maximal amount (16383).
 o ZERO
Zero (=no effect) amount (16383).
 o DISREGARD
Takes effect to all SysExChannels (127 = 0x7f).

Constructor Index

 o MasterVolume(int)
Creates new MasterVolume with volume.
 o MasterVolume(int, int, int)
Creates new MasterVolume with deltaTime, SysExChannel and volume.

Method Index

All methods from interfaces are implemented, but not listed here!
 o setSysExChannel(int)
Set SysExChannel.
 o sysExChannel()
Returns current SysExChannel.

Constructors

 o MasterVolume
 public MasterVolume(int amount)
Creates a new MasterVolume.

Parameters:
amount - any int between MIN and MAX.
 o MasterVolume
 public MasterVolume(int deltaTime,
                     int sysExChannel,
                     int amount)
Creates a new MasterVolume.

Parameters:
deltaTime - any int (>= 0).
sysExChannel - any int between 0 and 126 or DISREGARD (=127).
amount - any int between MIN and MAX.

Methods

 o sysExChannel
 public int sysExChannel()
Returns the current SysExChannel.

Returns:
an int between 0 and 127.
 o setSysExChannel
 public void setSysExChannel(int sysExChannel)
Sets the SysExChannel.

Parameters:
sysExChannel - any int between 0 and 126 or DISREGARD (=127).

 Previous  Next          Package