| Crates.io | resonata |
| lib.rs | resonata |
| version | 0.3.0 |
| created_at | 2023-08-28 17:43:43.799584+00 |
| updated_at | 2023-08-30 20:47:50.744527+00 |
| description | A music theory library for Rust. |
| homepage | |
| repository | https://github.com/jacksongriggs/resonata |
| max_upload_size | |
| id | 957203 |
| size | 62,346 |
A music theory library for Rust
Add this to your Cargo.toml:
[dependencies]
resonata = "0.1.0"
use resonata::note::Note;
use resonata::scale::Scale;
let note = note!("C").unwrap();
let scale = Scale::major(¬e);
assert_eq!(scale.to_notes(), vec![
note!("C").unwrap(),
note!("D").unwrap(),
note!("E").unwrap(),
note!("F").unwrap(),
note!("G").unwrap(),
note!("A").unwrap(),
note!("B").unwrap(),
]);
Documentation is available here.
Contributions are welcome! Please open an issue if you have any questions or suggestions. Pull requests are welcome too. I also have no idea what I'm doing, so if you see something that could be done better, please let me know!
MIT