|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectauditory.described.AbstractContent
auditory.described.Chord
public class Chord
A Chord is a collection of Note objects that are rendered simultaneously
Field Summary |
---|
Fields inherited from class auditory.described.AbstractContent |
---|
audible, dotted, playing, type |
Constructor Summary | |
---|---|
Chord()
Default Constructor |
|
Chord(int type,
boolean dotted)
Explicit Value Constructor |
Method Summary | |
---|---|
void |
addNote(Note note)
Add a Note to this Chord |
protected void |
startPlaying(javax.sound.midi.MidiChannel channel)
Start playing this Chord on the given MidiChannel |
protected void |
stopPlaying(javax.sound.midi.MidiChannel channel)
Start playing this Chord on the given MidiChannel |
Methods inherited from class auditory.described.AbstractContent |
---|
getType, isDotted, render, setAudible, setDotted, setType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Chord()
public Chord(int type, boolean dotted)
type
- 1 for whole notes, 2 for half notes, etc...dotted
- Whether the note is dottedMethod Detail |
---|
public void addNote(Note note)
note
- The Note to addprotected void startPlaying(javax.sound.midi.MidiChannel channel)
startPlaying
in class AbstractContent
channel
- The MIDI channel to useprotected void stopPlaying(javax.sound.midi.MidiChannel channel)
stopPlaying
in class AbstractContent
channel
- The MIDI channel to use
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |