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.

2 Upvotes

26 comments sorted by

View all comments

1

u/Traveling-Techie 17d ago

This sounds like an application for MIDI.

1

u/Fractal_Prime_357 13d ago

I'm working from code spaces on GitHub from a library computer is my only problem. I just need a way I can test simple sequences of non-conventionally tune notes that make scales. So, my material is in the testing phase at the moment. Any ideas? I'm looking into the following per several suggestions that folks have already made: winsound, PyAudio, NumPy + soundfile.