pub struct BrailleSegment {
pub groupings: BTreeMap<SegmentKey, BrailleElementGrouping>,
pub options: SegmentOptions,
pub descending_chords: Option<bool>,
pub end_hyphen: bool,
pub begins_mid_measure: bool,
pub contexts: Vec<NoteContext>,
}Expand description
A part cut into segments of groupings, ready to transcribe: music21’s
BrailleSegment.
Fields§
§groupings: BTreeMap<SegmentKey, BrailleElementGrouping>The groupings, by key.
options: SegmentOptionsThe options it is written with.
descending_chords: Option<bool>Whether chords are written from the top down, as the clefs met so far say.
end_hyphen: boolWhether the segment ends in the middle of a measure.
begins_mid_measure: boolWhether it begins in the middle of a measure.
contexts: Vec<NoteContext>What music21 marked on each of the part’s leaves.
Implementations§
Source§impl BrailleSegment
impl BrailleSegment
Sourcepub fn add_grouping_attributes(&mut self)
pub fn add_grouping_attributes(&mut self)
Repeated measures counted, key signatures given their predecessors,
full measures’ rests marked and each grouping told the signatures
and options in force: music21’s addGroupingAttributes.
Sourcepub fn fix_articulations(&mut self)
pub fn fix_articulations(&mut self)
Runs of three or more notes with one articulation written with it
doubled on the first and once on the last, and a staccato or tenuto
over a tie written as a short slur: music21’s fixArticulations.
Source§impl BrailleSegment
impl BrailleSegment
Sourcepub fn transcribe(&mut self) -> Result<String>
pub fn transcribe(&mut self) -> Result<String>
The segment in braille: its heading and first measure number, then
each grouping in turn: music21’s transcribe.
§Errors
Something too wide for a line, or that music21 cannot write.
Trait Implementations§
Source§impl Clone for BrailleSegment
impl Clone for BrailleSegment
Auto Trait Implementations§
impl Freeze for BrailleSegment
impl RefUnwindSafe for BrailleSegment
impl Send for BrailleSegment
impl Sync for BrailleSegment
impl Unpin for BrailleSegment
impl UnsafeUnpin for BrailleSegment
impl UnwindSafe for BrailleSegment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more