Returns a FoscChord.
A chord.
| isPitched | |
| noteHeads | Gets note-heads in chord. |
| noteHeads_ | Sets note-heads in chord. |
| writtenDuration | Gets written duration of chord. |
| writtenDuration_ | Sets written duration of chord. |
| writtenPitches | Gets written pitches in chord. |
| writtenPitches_ | Sets written pitches in chord. |
| asCompileString | |
| storeArgs | Gets new arguments. |
Example
a = FoscChord("C4 E4 G4", 1/4);
a.show;
Tweak individual noteheads 1
a = FoscChord(#[65, 70], 1/4);
a.noteHeads[1].isCautionary_(true);
a.show;
Tweak individual noteheads 2
a = FoscChord(#[65, 70], 1/4);
tweak(a.noteHeads[1]).style = 'harmonic';
a.show;
Initialize from a FoscNote.
a = FoscNote(60, 1/4);
a.attach(FoscArticulation('>'));
b = FoscChord(a);
b.show;
Initialize from a FoscChord.
a = FoscChord(#[60,64,67], 1/4);
a.attach(FoscArticulation('>'));
b = FoscChord(a);
b.show;
Gets note-heads in chord.
Returns note-head list.
Example
a = FoscChord("C4 E4 G4", 1/4);
a.noteHeads.items.collect { |each| each.writtenPitch.ps }[ "\"C4\"", "\"E4\"", "\"G4\"" ]Sets note-heads in chord.
Example
a = FoscChord("C4 E4 G4", [1, 4]);
a.noteHeads.items.collect { |each| each.writtenPitch.ps };[ "\"C4\"", "\"E4\"", "\"G4\"" ]
a.noteHeads_("F#4 B4 D#5 E5");
a.noteHeads.items.collect { |each| each.writtenPitch.ps };[ "\"F#4\"", "\"B4\"", "\"D#5\"", "\"E5\"" ]Gets written duration of chord.
Set duration.
Returns duration.
Example
a = FoscChord("C4 E4 G4", 1/4);
a.writtenDuration.str;1/4Sets written duration of chord.
Example
a = FoscChord("C4 E4 G4", 1/4);
a.writtenDuration.str;1/4
a.writtenDuration_(1/16);
a.writtenDuration.str;1/16Gets written pitches in chord.
Returns a FoscPitchSegment.
Sets written pitches in chord.
Example
a = FoscChord("C4 E4 G4", [1, 4]);
a.writtenPitches.ps;"C4 E4 G4"
a.writtenPitches_("F#4 B4 D#5 E5");
a.writtenPitches.ps;"F#4 B4 D#5 E5"Example
a = FoscChord(#[60, 64, 67], 1/4);
a.cs;FoscChord("C4 E4 G4", 1/4)Gets new arguments.
Returns array.
Example
a = FoscChord(#[60, 64, 67], 1/4);
a.storeArgs;[ FoscPitchSegment([ FoscPitch("C4"), FoscPitch("E4"), FoscPitch("G4") ]), FoscDuration(1, 4) ]