8 releases (5 stable)

1.1.1 May 23, 2024
1.1.0 Jun 18, 2023
0.2.3 Jan 10, 2023
0.2.2 Nov 18, 2022
0.1.13 Feb 13, 2021

#82 in Audio

Download history 2/week @ 2024-07-18 54/week @ 2024-07-25 11/week @ 2024-09-19 3/week @ 2024-09-26

1,554 downloads per month

GPL-3.0 license

235KB
5K SLoC

Music Theory

Rust library for music theory objects and queries. provides:

  • music theory objects such as notes, enharmonic notes, pitchclasses, intervals, scales and chords
  • conversions between these objects
  • ways to print and format these objects
  • queries such as:
    • finding scale chords
    • finding scales
    • finding super strings and super sets
    • finding chord scales
    • finding sub chords

I maintain a test coverage of 100%. This does not mean no bugs exist, but trying to write good tests is a priority.

The theory frog web app is made using this library. It shows some the things it can do.

License

Copyright (C) 2024 Cody Bloemhard

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

Dependencies

~530KB