Crate rust_music

source ·

Re-exports

Modules

Structs

  • Describes a set of notes played simultaneously
  • Represents a music note, with a pitch, a rhythm, and a dynamic (volume)
  • Describes a score’s part. A Part is played by a single instrument and can contain multiple phrases, played sequentially or simultaneously
  • Describes a single musical phrase. Multiple Phrases can be stored in a Part. Phrases can be played in parallel too

Enums

  • Represents a note accidental
  • Describes a MIDI instrument and stores valid standard MIDI instrument code
  • Represents a note by name without a specific octave or accidental Supports both letters from A to G and traditional Do Re Mi … names
  • Describes the entries contains in a Phrase

Functions

  • Returns a pitch value based on the given pitch name, octave, and accidental
  • Returns the note name, accidental, and octave of the given pitch

Type Aliases