Returns a FoscNote.
A note
| isPitched | |
| noteHead | Gets note-head of note. |
| noteHead_ | Sets note-head of note. |
| writtenDuration | Gets and sets written duration of note. |
| writtenDuration_ | Sets written duration of note. |
| writtenPitch | |
| writtenPitch_ | Sets written pitch of note. |
| asCompileString | |
| storeArgs | Gets new arguments. |
| str |
FIXME: Error: Message pitch not understood.
FoscNote().pitch.str;Example
FoscNote().writtenDuration.str;1/4
FoscNote().str;c'4FIXME: ERROR: Message isLilypondPitchName not understood.
FoscNote("g'", 1/4).str;Example
FoscNote("Gb5", 1/4).str;gf''4
FoscNote(60, 1/4).str;c'4
a = FoscNote(60, 1/4);
a.show;
Implicit conversion of type when another leaf is passed as initialization argument; indicators are preserved
m = FoscNote(60, 1/4);
m.attach(FoscArticulation('>'));
m.attach(FoscDynamic('p'));
a = FoscNote(m);
a.show;
Implicit conversion of type when another leaf is passed as initialization argument; indicators are preserved
m = FoscChord(#[60,64,67], 1/4);
m.attach(FoscArticulation('>'));
m.attach(FoscDynamic('p'));
a = FoscNote(m);
a.show;
Gets note-head of note.
Returns note-head.
Example
a = FoscNote(60, 1/4);
a.noteHead.str;c'Sets note-head of note.
Example
a = FoscNote(60, 1/4);
a.noteHead_(61);
a.noteHead.str;cs'Gets and sets written duration of note.
Returns duration
Example
a = FoscNote(60, 1/4);
a.writtenDuration.str;1/4Sets written duration of note.
Example
a = FoscNote(60, 1/4);
a.writtenDuration.str;1/4
a.writtenDuration_(3/4);
a.writtenDuration.str;3/4
a.writtenDuration_(5/4); // throws non-assignable duration errorERROR: Message 'writtenDuration_' not understood.Example
a = FoscNote(60, 1/4);
a.writtenPitch.str;c'Sets written pitch of note.
Example
a = FoscNote(60, 1/4);
a.writtenPitch.str;c'Example
a = FoscNote(60, 1/4);
a.writtenPitch_("F#4");
a.writtenPitch.str;fs'
a.noteHead.writtenPitch.str;fs'Example
FoscNote(60, 1/4).cs;FoscNote('C4', 1/4)Gets new arguments.
Returns array.
Example
FoscNote(60, 1/4).storeArgs;[ FoscPitch("C4"), FoscDuration(1, 4) ]Example
FoscNote(60, 1/4).str;c'4