5 ms·
This function produces an audio signal that sounds like an organ. https://gist.github.com/improv32/8414717 https://gist.github.com/improv32/8414717 http://voc
by oakwhiz 12y ago
This function produces an audio signal that sounds like an organ.
https://gist.github.com/improv32/8414717 https://gist.github.com/improv32/8414717
http://vocaroo.com/i/s13ZO9QOMULL http://vocaroo.com/i/s13ZO9QOMULL
- mutagen 12y agoAll those lovely harmonics ... now dreaming of filter envelopes.
- Florin_Andrei 12y agoI am quite surprised it does not sound like white noise. Anyway, I played the output of that script through some filters, and this sounds nice: play -c 2 weierstrass.wav gain -12 loudness chorus 0.5 0.9 50 0.4 0.25 2 -t 60 0.32 0.4 2.3 -t 40 0.3 0.3 1.3 -s reverb gain 12
- CHY872 12y agoAh, it's easy to see why it won't sound like white noise. The standard function is a Fourier series - a sum of sine waves. It's a power series where the b parameter must be an odd positive integer value 7 or greater. If we want the n = 0 case to map to 20 Hz (minimum of human hearing), and the maximum frequency we can hear is 20kHz (valid for children) then the highest term we can hear is the solution to 20000/7^n = 20; 7^n = 1000, n = 3.55, which means that we'll only be able to hear the first three terms. This will sound quite interesting, but it's a really bad approximation of the Weierstrass function! http://www.wolframalpha.com/input/?i=sin%28x%29+%2B+0.9*sin%287*x%29+%2B0.9%5E2*sin%287*7*x%29 http://www.wolframalpha.com/input/?i=sin%28x%29+%2B+0.9*sin%...
- Florin_Andrei 12y agoMakes sense now, thanks.
- Sharlin 12y agoIn white noise the power spectral density (power per Hz) is flat, that is, every frequency contributes equally. A Weierstrass frequency distribution is very far from that.
- deleted 12y ago[deleted]