pub struct ReductiveParameters {
pub pitch: Option<String>,
pub octave: Option<String>,
pub notehead_fill: Option<String>,
pub stem_direction: Option<String>,
pub group: Option<String>,
pub voice: Option<String>,
pub text_above: Option<String>,
pub text_below: Option<String>,
}Expand description
How a lyric marks its note for a reduction: music21’s ReductiveNote
parameters, each as the lyric writes it. The keys are p for the pitch
taken from a chord, o the octave, nf the notehead fill, sd the stem
direction, g the group, v the voice, ta text above and tb text
below.
Fields§
§pitch: Option<String>The pitch name taken from a chord: p.
octave: Option<String>The octave the note is written in: o.
notehead_fill: Option<String>Whether the notehead is filled: nf, yes or no or a fill
music21 names.
stem_direction: Option<String>Which way the stem points: sd, no stem unless said.
group: Option<String>The group whose part the note goes in: g.
voice: Option<String>The voice the note goes in: v.
text_above: Option<String>Text written above the note: ta.
text_below: Option<String>Text written below the note, as a lyric: tb.
Implementations§
Source§impl ReductiveParameters
impl ReductiveParameters
Sourcepub fn parse(spec: &str) -> Result<Option<Self>>
pub fn parse(spec: &str) -> Result<Option<Self>>
The parameters a lyric says, or nothing for a lyric that does not
start ::. Each /-separated key:value after the first sets the
parameter the key names; one naming none is passed over, as is
anything without a :. The stem direction is noStem unless said.
§Errors
A key written in capitals, which music21 recognizes but cannot look
up, or an argument with more than one :.
Trait Implementations§
Source§impl Clone for ReductiveParameters
impl Clone for ReductiveParameters
Source§impl Debug for ReductiveParameters
impl Debug for ReductiveParameters
Source§impl Default for ReductiveParameters
impl Default for ReductiveParameters
Source§impl<'de> Deserialize<'de> for ReductiveParameters
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ReductiveParameters
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ReductiveParameters
Source§impl PartialEq for ReductiveParameters
impl PartialEq for ReductiveParameters
Source§impl Serialize for ReductiveParameters
Available on crate feature serde only.
impl Serialize for ReductiveParameters
serde only.impl StructuralPartialEq for ReductiveParameters
Auto Trait Implementations§
impl Freeze for ReductiveParameters
impl RefUnwindSafe for ReductiveParameters
impl Send for ReductiveParameters
impl Sync for ReductiveParameters
impl Unpin for ReductiveParameters
impl UnsafeUnpin for ReductiveParameters
impl UnwindSafe for ReductiveParameters
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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