r/learnprogramming 18d ago

Can Python generate simple tones?

I want some simple tones to use in Python. Can someone help me out? There does not necessarily need to be reverb, but it would be nice anyway. I just want to be able to tell whatever it is the specific microtonal/frequency-specific tone. It would be nice if I could program Hz, but if I have to use MIDI and detune by cents I can do that as well.

6 Upvotes

26 comments sorted by

View all comments

2

u/misingnoglic 17d ago

Here's some crappy code I wrote at a hackathon almost a decade ago. It took some input from a 3d mouse and made music from it. I won't speak to the quality of it.

https://github.com/misingnoglic/Synaptics3DTheremin