Previous  Next          Package

Class MIDICompose.MasterTuning

java.lang.Object
   |
   +----MIDICompose.MIDIObject
           |
           +----MIDICompose.MasterTuning

public class MasterTuning
extends MIDIObject
implements Channelable

Variable Index

 o CENTS_A440
Value for 440Hz (8192).
 o SEMITONES_A440
Value for 440Hz (64).

Constructor Index

 o MasterTuning(int)
Creates new MasterTuning with cents.
 o MasterTuning(int, int, int, int)
Creates new MasterTuning with deltaTime, channel, semitones and cents.
 o MasterTuning(int, int, int, int, int, int)
Creates new MasterTuning with deltaTime, channel, semitones, cents, coarse and fine controller.

Method Index

All methods from interfaces are implemented, but not listed here!
 o cents()
Returns current cent-value.
 o coarse()
Returns currect coarse controller-number.
 o fine()
Returns currect fine controller-number.
 o semitones()
Returns current semitones-value.
 o setCents(int)
Sets cent-value.
 o setCoarse(int)
Sets coarse controller.
 o setFine(int)
Sets fine controller.
 o setSemitones(int)
Sets semitone-value.

Constructors

 o MasterTuning
 public MasterTuning(int cents)
Creates a new MasterTuning with semitones set to 440Hz.

Parameters:
cents - any int between 0 and 16383.
 o MasterTuning
 public MasterTuning(int deltaTime,
                     int channel,
                     int semitones,
                     int cents)
Creates a new MasterTuning edited by DATA_ENTRY.

Parameters:
deltaTime - any int (>= 0).
channel - any int between 0 and 15 (CHAN_1...CHAN_16).
semitones - any int between 0 and 127.
cents - any int between 0 and 16383.
 o MasterTuning
 public MasterTuning(int deltaTime,
                     int channel,
                     int semitones,
                     int cents,
                     int coarse,
                     int fine)
Creates a new MasterTuning.

Parameters:
deltaTime - any int (>= 0).
channel - any int between 0 and 15 (CHAN_1..CHAN_16).
semitones - any int between 0 and 127.
cents - any int between 0 and 16383.
coarse - any controller-number between 0 and 127.
fine - any controller-number between 0 and 127.

Methods

 o cents
 public int cents()
Returns the current cent-value.

Returns:
an int between 0 and 16383.
 o setCents
 public void setCents(int cents)
Sets the cent-value.

Parameters:
cents - any int between 0 and 16383.
 o semitones
 public int semitones()
Returns the current semitone-value.

Returns:
an int between 0 and 127.
 o setSemitones
 public void setSemitones(int semitones)
Sets the semitone-value.

Parameters:
semitones - any int between 0 and 127.
 o coarse
 public int coarse()
Returns the current coarse-controller.

Returns:
an int between 0 and 127.
 o setCoarse
 public void setCoarse(int controller)
Sets the coarse-controller.

Parameters:
controller - any controller-number between 0 and 127.
 o fine
 public int fine()
Returns the current fine-controller.

Returns:
an int between 0 and 127.
 o setFine
 public void setFine(int controller)
Sets the fine-controller.

Parameters:
controller - any controller-number between 0 and 127.

 Previous  Next          Package