|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectauditory.described.AbstractContent
auditory.described.Note
public class Note
An encapsulation of a single note in a song
| Field Summary |
|---|
| Fields inherited from class auditory.described.AbstractContent |
|---|
audible, dotted, playing, type |
| Constructor Summary | |
|---|---|
Note()
Default Constructor Constructs a whole note at middle C |
|
Note(char pitch,
boolean sharp,
int octave,
int type,
boolean dotted)
Explicit Value Constructor |
|
| Method Summary | |
|---|---|
int |
getMIDI()
Get the MIDI number associated with this Note |
protected void |
startPlaying(javax.sound.midi.MidiChannel channel)
Start playing this Note on the given MidiChannel |
protected void |
stopPlaying(javax.sound.midi.MidiChannel channel)
Start playing this Note 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 Note()
public Note(char pitch,
boolean sharp,
int octave,
int type,
boolean dotted)
pitch - The pitch ('A','B','C','D','E','F', 'G' or 'R')sharp - true for a sharp and false for a naturaloctave - The octave (relative to middle C)type - 1 for whole notes, 2 for half notes, etc...dotted - Whether the note is dotted| Method Detail |
|---|
public int getMIDI()
protected void startPlaying(javax.sound.midi.MidiChannel channel)
startPlaying in class AbstractContentchannel - The MIDI channel to useprotected void stopPlaying(javax.sound.midi.MidiChannel channel)
stopPlaying in class AbstractContentchannel - The MIDI channel to use
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||