com.confusionists.mjdjApi.midi
Class ChannelCc

java.lang.Object
  extended by com.confusionists.mjdjApi.midi.ChannelCc

public class ChannelCc
extends java.lang.Object

ChannelCc is a simple aggregate, since these two always go together in command messages. In more formal terms, they refer to "channel" and "data1".

Author:
DanielRosenstark [at_sign] confusionists.com

Field Summary
 int cc
           
 int channel
           
 
Constructor Summary
ChannelCc(int channel, int cc)
           
ChannelCc(javax.sound.midi.ShortMessage message)
           
 
Method Summary
 ChannelCc clone(int newCc)
           
 ChannelCc clonePlus(int toAdd)
           
 boolean equals(java.lang.Object object)
           
 javax.swing.JButton getButton(MjdjService service, java.lang.String title)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

channel

public int channel

cc

public int cc
Constructor Detail

ChannelCc

public ChannelCc(int channel,
                 int cc)

ChannelCc

public ChannelCc(javax.sound.midi.ShortMessage message)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

clone

public ChannelCc clone(int newCc)

clonePlus

public ChannelCc clonePlus(int toAdd)

getButton

public javax.swing.JButton getButton(MjdjService service,
                                     java.lang.String title)
Parameters:
service - - an MjdjService instance.
title -
Returns:
a JButton for testing which sends a 127 on the present channelCc

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object