Follow

Does anyone know if there's a mature Python or Rust or something version of this? tonejs.github.io/

I mainly want the feature where you can take samples and turn them into a synthesizer so that I can give it a bunch of recorded piano notes, then feed it something like `(["C4", "F4", "A4"], 2)` and have it play that chord for 2 seconds (then presumably output that to a file).

Right now Tone.js is working really well for me in most cases, but I'm getting inconsistent results depending on the browser and whether or not you've got headphones plugged in, which is... not great.

My needs are pretty limited, so I think I can just generate all the sounds I'm going to want ahead of time and serve static files to improve consistency and quality.

Though TBH I am kind of shocked that there are quality variations (sometimes the sound comes out tinny, sometimes it crackles, etc). I would think that it would basically just be doing the exact same math and outputting the same waveforms, so I don't really get why it' varies at all.

Maybe it uses some sort of compression or heuristics based on the output, and I can tell Tone.js "Take your time and give me the highest quality version of this" (possibly I could even write this to a cache...)

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.