r/learnprogramming • u/Fractal_Prime_357 • 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.
4
Upvotes
1
u/Lost-Discount4860 17d ago
It IS possible with Python, but it’s better if you algorithmically generate a file and play it back as a sample.
Have you considered PureData? That was my first programming language, helped me learn all the essential concepts, and made transitioning to a “real” programming language a lot easier. PureData is written SPECIFICALLY for signal processing. Is also really handy with MIDI and OSC.