I want to make an image-to-sound converter. I saw that idea in the 3Blue1Brown video about Hilbert’s curve. So, what this program should do is take every pixel of the image and associate it with a unique frequency, and then, depending on the brightness of the pixel, it will make that frequency louder or quieter. After that, it will add up all the sine waves of specific frequencies and amplitudes and play it for the user.
I found a way to play a single frequency using pyaudio, but it’s not what I want. Ideally, I’d like to be able to somehow get a sine wave that is a sum of other sine waves and play it as a sound, but I haven’t found any library that would allow me to do that.
If you know some libraries that might help with that, or if you know how to do something like that by playing frequencies I need the specific way, please do tell me.