News for hackers. Stuff that matters.
Re:Tonal.js: Functional music theory lib by cushpush on Wednesday April 03, 2024 @07:20PM (#39924628)
Can I set the tuning to A=432Hz ?
Re:Tonal.js: Functional music theory lib by ysofunny on Wednesday April 03, 2024 @08:07PM (#39924961)
yes, it doesn't really matter at all for this kind of system

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

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?
Re:Tonal.js: Functional music theory lib by altruios on Thursday April 04, 2024 @04:24PM (#39935400)
Would the delay vary by pitch? (or would i also have to increase for that to be the case)