Crates.io | libkeynotation |
lib.rs | libkeynotation |
version | 0.2.0 |
source | src |
created_at | 2023-11-30 14:35:59.299291 |
updated_at | 2024-01-26 03:06:18.453302 |
description | A (musical) key notation parser and transposer |
homepage | |
repository | https://codeberg.org/obsoleszenz/libkeynotation |
max_upload_size | |
id | 1054199 |
size | 76,871 |
This library supports parsing musical keys notated in different formats and transposing the key. You can freely convert between the different formats and also transpose the key if the track is being played faster/slower.
use libkeynotation::Key;
let key = Key::from_string("F#m").unwrap();
assert_eq!(key.lancelot(), "11A");
assert_eq!(key.open_key(), "4m");
assert_eq!(key.transpose_bpm(135.0, 140.4).lancelot(), "6A");