Expand description
Modules§
- consts
- this module implements various constants used throughout the library.
- error
- this module defines the
Errortype and provides a type alias for aResultwith anError. - freq
- The
freqmodule defines theFrequencytype and its associated traits and implementations. - intervals
- this module implements intervallic relationships in music theory
- notes
- this modules implements the various representations of musical notes, octaves, and pitches.
- octave
- this module implements the
Octavetype, repsenting a particular octave in music. - pitch
- this module implements the
Pitchtype and its associated traits and types. - traits
- this module implements the core traits used throughout the library.
- types
- this module imimplements various types and other primitives used throughout the library
Structs§
- Aspn
- An american scientific pitch notation (
Aspn) representation of a musical note; this standard is used to represent notes in a way that is consistent with the American scientific pitch notation system, which uses a combination of a pitch class (represented as an integer) and an octave (represented as anOctave) to uniquely identify a musical note. The pitch class is the note’s position in the chromatic scale, while the octave indicates the note’s position in the musical range. - Frequency
- The
Frequencytype is a generic wrapper around typeTthat implements theRawFrequencytrait. This implementation is designed to provide a consistent interface for dealing with frequencies within the crate, enabling conversion, arithmetic operations, and other utilities that are common to frequency values. - Harmonic
Function Iter - An iterator over the variants of HarmonicFunction
- Note
Base - The
NoteBaseis a generic representation of a musical note - Octave
- A type defining an octave
- Pitch
- A discrete pitch with a class and frequency.
Enums§
- Error
- The
Errorenum represents various errors that can occur in the application. - Harmonic
Function - Harmonic functions in tonal music
Constants§
- C_
MAJOR_ SCALE - The C Major scale represented as an array of pitch class indices.
Traits§
- AsAspn
- The
AsAspntrait is used to convert a reference into aAspn - AsOctave
- A trait for converting a reference into an
Octave. - AsPitch
- A trait for converting a reference into a
Pitch. - Chroma
Chromadefines a trait for establishing a chromatic relationship between pitches.- Into
Aspn - A trait for converting a type into a
Aspn - Into
Octave - A trait for converting a type into an
Octave. - Into
Pitch - A trait for converting a type into a
Pitch. - Pitch
Class - The
PitchClasstrait establishes an interface to defining pitch classes. - Pitch
Mod - this trait relies on a python modulo operator with a divisor of 12
- PyMod
- The
PyModtrait defines a pythonic modulo operator that can be used to perform modulo operations similar to Python’s%operator, which behaves differently than Rust’s%operator when dealing with negative numbers. - RawFrequency
RawFrequencydefines an interface for all raw Frequency types.- RawPitch
RawPitchdefines an interface for all raw pitch types.