Previous  Next          Package

Class MIDICompose.GMSystem

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

public class GMSystem
extends SystemExclusive

Use GMSystem if you want to enable or disable GeneralMIDI.

Variable Index

 o DISREGARD
Takes effect to all SysExChannels (127 = 0x7f).

Constructor Index

 o GMSystem(boolean)
Creates new GMSystem.
 o GMSystem(int, int, boolean)
Creates new GMSystem with deltaTime and SysExChannel.

Method Index

 o enabled()
Returns whether GeneralMIDI is enabled or not.
 o setEnabled(boolean)
Enables or disables GeneralMIDI.
 o sysExChannel()
Returns current SysExChannel.
 o setSysExChannel(int)
Set SysExChannel.

Constructors

 o GMSystem
 public GMSystem(boolean enable)
Creates a new GMSystem.

Parameters:
enable - a boolean.
 o GMSystem
 public GMSystem(int deltaTime,
                 int sysExChannel,
                 boolean enable)
Creates a new GMSystem.

Parameters:
deltaTime - any int (>= 0).
sysExChannel - any int between 0 and 126 or DISREGARD (=127).
enable - a boolean.

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).
 o enabled
 public boolean enabled()
Returns whether GeneralMIDI is enabled or not.

Returns:
true if enabled, false if disabled.
 o setEnabled
 public void setEnabled(boolean enable)
Enables or disables GeneralMIDI.

Parameters:
enable - true for enable, false for disable.

 Previous  Next          Package