PcSet

Type Alias PcSet 

Source
pub type PcSet = Vec<i8>;

Aliased Type§

pub struct PcSet { /* private fields */ }

Trait Implementations§

Source§

impl Fundamentals for PcSet

Source§

fn invert(&self) -> PcSet

Returns the inversion of the pitch-class set. Read more
Source§

fn transpose(&self, n: i8) -> PcSet

Returns the transposition of the pitch-class set by n semitones. Read more
Source§

fn i(&self) -> PcSet

Alias of invert(). Returns the inversion of the pitch-class set. Read more
Source§

fn t(&self, n: i8) -> PcSet

Alias of transpose(). Returns the transposition of the pitch-class set by n semitones. Read more
Source§

fn tni(&self, n: i8) -> PcSet

Inverts the pitch-class set, then returns the transposition by n semitones. Read more
Source§

fn ixy(&self, x: i8, y: i8) -> PcSet

Returns the transposition of the pitch-class set by y semitones around the axis x Read more
Source§

fn chroma(&self) -> u16

Returns the binary representation of the pitch-class chroma feature Read more
Source§

impl SetAnalysis for PcSet

Source§

fn icvec(&self) -> IcVec

Returns the interval-class vector of the pitch-class set Read more
Source§

fn ivec(&self) -> IVec

Returns the interval vector of the pitch-class set Read more
Source§

impl SetOperations for PcSet

Source§

fn complement(&self) -> PcSet

Returns the complement of the pitch-class set Read more
Source§

fn retrograde(&self) -> PcSet

Returns the retrograde of the pitch-class set Read more
Source§

fn sort(&self) -> PcSet

Returns the sorted pitch-class set in ascending order Read more
Source§

fn rotate(&self, n: usize) -> PcSet

Returns the rotation of the pitch-class set by n semitones Read more
Source§

fn zero(&self) -> PcSet

Examples Read more
Source§

fn normal(&self) -> PcSet

Returns the normal form of the pitch-class set Read more
Source§

fn reduced(&self) -> PcSet

Examples Read more
Source§

fn prime(&self) -> PcSet

Returns the prime form of the pitch-class set Read more
Source§

fn intervals(&self) -> Vec<i8>

Helper function that returns a vector containing the interval-classes for the first and n to last pitch-class in a pitch-class set Read more
Source§

fn transposition_number(&self, other: &PcSet) -> Option<i8>

Returns the transposition number of two pitch-class sets if they are related by transposition Read more
Source§

fn index_number(&self, other: &PcSet) -> Option<i8>

Returns the index number of two pitch-class sets if they are related by inversion Read more