Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metadata help doc #22

Open
seunggookim opened this issue Sep 12, 2022 · 1 comment
Open

metadata help doc #22

seunggookim opened this issue Sep 12, 2022 · 1 comment

Comments

@seunggookim
Copy link

seunggookim commented Sep 12, 2022

metadata of a sequence (coded_vec) contains $keysig (a signed integer) and $mode (integer, mostly 0 or 9?) but their mappings are not explained anywhere. It would be useful if I can use $keysig to transpose pitch class chords with respect to a reference pitch class (e.g., C=0) but the relationship between the $keysig value and the actual key is unclear (e.g., 'bach-chor001', which seems to be Riemenschneider No.1 (BWV 269), has a $keysig=1 but is in G major. A clear explanation would be much appreciated.

@seunggookim
Copy link
Author

Now I think $keysig is the number of sharps in a positive integer or the number of flats in a negative integer (e.g., For F major, $keysig=-1, $mode=0). A very interesting notation! Is there a function to convert this into a pitch class code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant