pub struct NoteGroupingTranscriber {
pub show_leading_octave: bool,
/* private fields */
}Expand description
Writes the elements of a grouping one after another, octaves where
needed: music21’s NoteGroupingTranscriber.
Fields§
§show_leading_octave: boolWhether the first note shows its octave.
Implementations§
Source§impl NoteGroupingTranscriber
impl NoteGroupingTranscriber
Sourcepub fn transcribe_group(
&mut self,
grouping: &mut BrailleElementGrouping,
) -> String
pub fn transcribe_group( &mut self, grouping: &mut BrailleElementGrouping, ) -> String
A grouping in braille, its elements’ English written onto them, and
a music hyphen where it ends with one: music21’s transcribeGroup.
Sourcepub fn transcribed(&self) -> &[String]
pub fn transcribed(&self) -> &[String]
The braille written so far, a sign at a time: music21’s trans,
which its own examples join and print.
Sourcepub fn transcribe_element(
&mut self,
grouping: &mut BrailleElementGrouping,
index: usize,
)
pub fn transcribe_element( &mut self, grouping: &mut BrailleElementGrouping, index: usize, )
One element of a grouping written, the signs appended to what the
transcriber has written already and its English onto the element:
music21’s transcribeOneElement, which it calls one at a time and
its own examples do too.
The element is named by its place in the grouping, since what is written depends on what the grouping says – the chords’ direction, whether clefs are shown, which way a fingering is read – and on the element before it.
Trait Implementations§
Source§impl Clone for NoteGroupingTranscriber
impl Clone for NoteGroupingTranscriber
Source§impl Debug for NoteGroupingTranscriber
impl Debug for NoteGroupingTranscriber
Auto Trait Implementations§
impl Forget for NoteGroupingTranscriber
impl Freeze for NoteGroupingTranscriber
impl RefUnwindSafe for NoteGroupingTranscriber
impl Send for NoteGroupingTranscriber
impl Sync for NoteGroupingTranscriber
impl Unpin for NoteGroupingTranscriber
impl UnsafeUnpin for NoteGroupingTranscriber
impl UnwindSafe for NoteGroupingTranscriber
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