public abstract class AbstractContent extends java.lang.Object implements Content
Constructor and Description |
---|
AbstractContent()
Default Constructor.
|
AbstractContent(int type,
boolean dotted)
Explicit Value Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getType()
Get the type of this AbstractContent [i.e., 1 for whole notes,
2 for half notes, etc...]
(required by MidiSound).
|
boolean |
isDotted()
Is this AbstractContent dotted?
(required by MidiSound).
|
void |
render(javax.sound.midi.MidiChannel channel)
Render this AbstractContent on the given MidiChannel
(required by MidiSound).
|
void |
setAudible(boolean audible)
Set whether this AbstractContent is audible or note.
|
public AbstractContent()
public AbstractContent(int type, boolean dotted)
type
- 1 for whole notes, 2 for half notes, etc...dotted
- Whether the note is dottedpublic int getType()
public boolean isDotted()
public void render(javax.sound.midi.MidiChannel channel)
public void setAudible(boolean audible)
setAudible
in interface Content
audible
- true to make it audible; false otherwise