Skip to main content

ArticulationKind

Enum ArticulationKind 

Source
pub enum ArticulationKind {
Show 52 variants Articulation, Caesura, DynamicArticulation, LengthArticulation, PitchArticulation, TechnicalIndication, TimbreArticulation, Accent, Bowing, BreathMark, DetachedLegato, Fingering, FretIndication, HandbellIndication, Harmonic, HarpIndication, IndeterminateSlide, OrganIndication, Staccato, Tenuto, Unstress, WindIndication, BrassIndication, Doit, DownBow, Falloff, FretBend, FretTap, HarpFingerNails, OpenString, OrganHeel, OrganToe, Pizzicato, Plop, Scoop, Staccatissimo, Stopped, Stress, StringIndication, StringThumbPosition, StrongAccent, TonguingIndication, UpBow, WoodwindIndication, DoubleTongue, FrettedPluck, NailPizzicato, SnapPizzicato, StringHarmonic, TripleTongue, Spiccato, StringFingering,
}
Expand description

One of music21’s articulation classes.

Variants§

§

Articulation

music21’s articulations.Articulation.

§

Caesura

music21’s articulations.Caesura.

§

DynamicArticulation

music21’s articulations.DynamicArticulation.

§

LengthArticulation

music21’s articulations.LengthArticulation.

§

PitchArticulation

music21’s articulations.PitchArticulation.

§

TechnicalIndication

music21’s articulations.TechnicalIndication.

§

TimbreArticulation

music21’s articulations.TimbreArticulation.

§

Accent

music21’s articulations.Accent.

§

Bowing

music21’s articulations.Bowing.

§

BreathMark

music21’s articulations.BreathMark.

§

DetachedLegato

music21’s articulations.DetachedLegato.

§

Fingering

music21’s articulations.Fingering.

§

FretIndication

music21’s articulations.FretIndication.

§

HandbellIndication

music21’s articulations.HandbellIndication.

§

Harmonic

music21’s articulations.Harmonic.

§

HarpIndication

music21’s articulations.HarpIndication.

§

IndeterminateSlide

music21’s articulations.IndeterminateSlide.

§

OrganIndication

music21’s articulations.OrganIndication.

§

Staccato

music21’s articulations.Staccato.

§

Tenuto

music21’s articulations.Tenuto.

§

Unstress

music21’s articulations.Unstress.

§

WindIndication

music21’s articulations.WindIndication.

§

BrassIndication

music21’s articulations.BrassIndication.

§

Doit

music21’s articulations.Doit.

§

DownBow

music21’s articulations.DownBow.

§

Falloff

music21’s articulations.Falloff.

§

FretBend

music21’s articulations.FretBend.

§

FretTap

music21’s articulations.FretTap.

§

HarpFingerNails

music21’s articulations.HarpFingerNails.

§

OpenString

music21’s articulations.OpenString.

§

OrganHeel

music21’s articulations.OrganHeel.

§

OrganToe

music21’s articulations.OrganToe.

§

Pizzicato

music21’s articulations.Pizzicato.

§

Plop

music21’s articulations.Plop.

§

Scoop

music21’s articulations.Scoop.

§

Staccatissimo

music21’s articulations.Staccatissimo.

§

Stopped

music21’s articulations.Stopped.

§

Stress

music21’s articulations.Stress.

§

StringIndication

music21’s articulations.StringIndication.

§

StringThumbPosition

music21’s articulations.StringThumbPosition.

§

StrongAccent

music21’s articulations.StrongAccent.

§

TonguingIndication

music21’s articulations.TonguingIndication.

§

UpBow

music21’s articulations.UpBow.

§

WoodwindIndication

music21’s articulations.WoodwindIndication.

§

DoubleTongue

music21’s articulations.DoubleTongue.

§

FrettedPluck

music21’s articulations.FrettedPluck.

§

NailPizzicato

music21’s articulations.NailPizzicato.

§

SnapPizzicato

music21’s articulations.SnapPizzicato.

§

StringHarmonic

music21’s articulations.StringHarmonic.

§

TripleTongue

music21’s articulations.TripleTongue.

§

Spiccato

music21’s articulations.Spiccato.

§

StringFingering

music21’s articulations.StringFingering.

Implementations§

Source§

impl ArticulationKind

Source

pub const ALL: [ArticulationKind; 52]

Every kind, parents before children.

Source§

impl ArticulationKind

Source

pub fn class_name(self) -> &'static str

music21’s class name for the kind: "StrongAccent".

Source

pub fn from_class_name(class: &str) -> Option<Self>

The kind music21 names by that class.

Source

pub fn parents(self) -> &'static [&'static str]

The classes above this one, in music21’s method resolution order, up to Articulation. A spiccato is a staccato and an accent both.

Source

pub fn has_field(self, field: &str) -> bool

Whether music21’s class for the kind carries the field music21 names field: "fingerNumber", "number", "bendAlter" and the rest.

Trait Implementations§

Source§

impl Clone for ArticulationKind

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ArticulationKind

Source§

impl Debug for ArticulationKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ArticulationKind

Available on crate feature serde only.
Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for ArticulationKind

Source§

impl Hash for ArticulationKind

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ArticulationKind

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for ArticulationKind

Available on crate feature serde only.
Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ArticulationKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.