public class Note extends AbstractContent
| Constructor and Description |
|---|
Note()
Default Constructor.
|
Note(char pitch,
boolean sharp,
int octave,
int type,
boolean dotted)
Explicit Value Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMIDI()
Get the MIDI number associated with this Note.
|
char |
getPitch()
Get the pitch of this Note.
|
boolean |
getSharp()
Is this Note a sharp?
|
getType, isDotted, render, setAudiblepublic 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