Re:Tonal.js: Functional music theory lib
by hunter2_ on Thursday April 04, 2024 @01:46AM
(#39926960)
I don't mean to lose my 'temper' here, but I think gp is hoping Note.freq(), Note.fromFreq(), etc. aren't locked into A440 as the examples imply. While >99% of the library doesn't deal with this at all, it would be handy nonetheless. Unfortunately, it's currently hard coded:
https://github.com/tonaljs/tonal/blob/main/packages%2Fpitch-...
https://github.com/tonaljs/tonal/blob/main/packages%2Fmidi%2...
Re:Tonal.js: Functional music theory lib
by altruios on Thursday April 04, 2024 @10:44AM
(#39931073)
Imaginary constant... complex tuning here we come!
The ideal tuning isn't 440hz, it's (440+42i)hz /s
Re:Tonal.js: Functional music theory lib
by ysofunny on Thursday April 04, 2024 @11:18AM
(#39931507)
up there with negative probability frequencies
Re:Tonal.js: Functional music theory lib
by selenography on Thursday April 04, 2024 @01:09PM
(#39933160)
Isn't that just 442Hz, except about 34.3μs early?
you can set it to zero, to negative one... possibly to the imaginary constant
because this library does not actually make any sound. it's (to me) an implementation of 12tet, the standard western scale system which includes a bunch of scales and approximates the rest 'well' enough