pub enum TransformationConvention {
ZeroCentered,
OriginalCentered,
}Expand description
What the index of a transformation refers to.
Variants§
ZeroCentered
P(n) and I(n) start on pitch class n; R(n) and RI(n) end on
it. This is the common convention and music21’s default.
OriginalCentered
T(n) transposes the original row up n semitones, and I(n),
R(n) and RI(n) transform the row in place and then transpose the
result by n.
Implementations§
Trait Implementations§
Source§impl Clone for TransformationConvention
impl Clone for TransformationConvention
Source§fn clone(&self) -> TransformationConvention
fn clone(&self) -> TransformationConvention
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransformationConvention
Source§impl Debug for TransformationConvention
impl Debug for TransformationConvention
Source§impl<'de> Deserialize<'de> for TransformationConvention
Available on crate feature serde only.
impl<'de> Deserialize<'de> for TransformationConvention
Available on crate feature
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TransformationConvention
Source§impl Hash for TransformationConvention
impl Hash for TransformationConvention
Source§impl PartialEq for TransformationConvention
impl PartialEq for TransformationConvention
Source§impl Serialize for TransformationConvention
Available on crate feature serde only.
impl Serialize for TransformationConvention
Available on crate feature
serde only.impl StructuralPartialEq for TransformationConvention
Auto Trait Implementations§
impl Freeze for TransformationConvention
impl RefUnwindSafe for TransformationConvention
impl Send for TransformationConvention
impl Sync for TransformationConvention
impl Unpin for TransformationConvention
impl UnsafeUnpin for TransformationConvention
impl UnwindSafe for TransformationConvention
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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