Repository navigation
keyboard scales coding #44
|
I found #define NOTES_IONIAN 2741
#define NOTES_AEOLIAN 1453
#define NOTES_PHRYGIAN_DOMINANT 1459
#define NOTES_MINOR_BLUES 1257I'm trying to explore other modes, in particular chromatic |
Answered by
bangcorrupt
Oct 13, 2025
Replies: 1 comment 1 reply
|
I suspect this |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, it's a bitmask, LSB is the scale root and is always set. See Ian Ring's website for all the scales. I used a 32 bit mask so we can hopefully support micro-tunings later, but I only tested with 12 tone scales.
In
t_scale,notesis the bitmask of note positions, andtonesis the number of tones in the tuning system (i.e. 12 tone equal temperament). Int_keyboard,splitis the difference between the 2 rows of pads andrepeatis the number of degrees in the scale (set automatically when the keyboard map is generated).For a chromatic scale: