To avoid conversions between midi and hz, 12*Math.log2(equave)
is effective.
Just stumbled on this, silly question perhaps, but is this rationalize method being used to get rational numbers?
Also, the equave is 2 - is that because an octave is 2:1 ?
And what’s an ‘equave’? Some equave blues - related?!
I’ve been studying these a while
Just Intonation Explained (kylegann.com)
A Plague of Ratios - Music (maa.org)
hoping to grasp enough to plug into SP to make some stuff ala mannfish, another recent discovery.
Highly recommend… apologies for going off-topic… bookmarking this, quite a lot to process!
Sorry for the slow reply. Rationalize takes a value and finds the closest rational approximation, within the given parameters.
An “equave” as I’m using it and as used by the xenharmonic/microtonal community is a generalized term for the interval (usually being divided). You are correct; 2 is used to specify an octave, 2:1. The tritave is the 3:1 ratio. The Bohlen Pierce scale is a popular tuning that doesn’t use octaves, but instead divides a tritave into 13 notes (usually equal tempered, but BP scales sometimes use just intervals instead). The tuning Jumble used is a system that divides 4:1. I would assume he said 4/1 equave because there isn’t a well known name like “quartave”. Octave is a confusing name for what should be called a bitave (is an “octave” the 8:1 ratio?). An equave can be on anything, even an irrational value like pi.
Note that while 12ed2 (12 tone equal temperament) is an exact subset of 24ed2 (quarter tones), the math isn’t as simple when you change the equave: 19 divisions of 2.5 (19ed2.5) does not generate the same notes as 38 divisions of 5 (38ed5).