1

I have an effect I have to make where two sounds alternate, starting with large pauses between them, and then get faster and faster until they alternate on a sample-basis. I am using the roots of sin(x(-24/(24-x))), xe[0,24) to model when I want these sounds to play. I wrote a program that generates a list of timestamps (in samples) to simulate this (eventually a sound should play for each sample, 48000 times per second let's say, generating a pure frequency).

How should I go about turning this list of times into a sound effect? Or in other words, how can I automate this so that it is mathematically exact?

Thanks in advance!

  • As you are a programmer, why not find an audio library that allows you to read and write audio files, and just write another bit of your program that renders the sound you want to a new audio file? – topo Reinstate Monica Jan 16 at 23:06
  • 1
    For this kind of stuff you might want to look into SuperCollider or PureData. It's trivial to do stuff like that in those (or similar) synthesis environments that already provide you with both sound synthesis engines and a programming language. SuperCollider is based on C-like syntax, so programmers can normally jump right into it. Both are free and open source. – Von Huffman Jan 16 at 23:35
  • Agreed with Huffman, I can do this in a couple minutes with MAX – jjmusicnotes Jan 17 at 4:13
  • That's awesome. I'll give that a go, thanks a ton. – Harry Ashley Jan 17 at 5:06
  • @jjmusicnotes - Turn your mention of using MAX for that purpose into an answer, then. – Dekkadeci Jan 17 at 11:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.