[Audacity-nyquist] Balmer series

 [Audacity-nyquist] Balmer series From: paul beach - 2009-01-10 17:00:25 ```Hi Everybody, For those who are still looking for the Higg's particle, you can listen to the Balmer series. The five numbers are: 1 9/5 4/3 25/21 9/8 and the sound is here. http://climatehoax.ca/music/balmer.mp3 The integers are similar to Ptolemy's scale, but I haven't made any sense of it. The formal series begins with m = 3, and starting note f = 220 [ m^2 / ( m^2 - 4) ] * 220 I pasted this into the Nyquist prompt, then faded in and out so that it doesn't click. (mult 0.1 (sim (hzosc 220)) (hzosc (* (/ 9.0 5 ) 220) ) (hzosc (* (/ 4.0 3 ) 220) ) (hzosc (* (/ 21.0 25 ) 220) ) (hzosc (* (/ 9.0 8 ) 220) ) )) -- paul beach sniffyraven@... ```

Thread view

 [Audacity-nyquist] (recip sound) has a bug From: Igor Chernenko - 2009-01-07 03:07:13 Attachments: Message as HTML ```(recip sound) has a bug The command "recip" is defined as follows: (recip sound) A generalized reciprocal function. If sound is a SOUND, compute 1/x for each sample x. If sound is a number x, just compute 1/x. If sound is a multichannel sound, return a multichannel sound with recip applied to each element. The result has the type, sample rate, starting time, etc. of sound. Note that the reciprocal of 0 is undefined (some implementations return infinity), so use this function with care on sounds. Division of sounds is accomplished by multiplying by the reciprocal. Again, be careful not to divide by zero. http://www.audacity-forum.de/download/edgar/nyquist/nyquist-doc/manual/part6.html#index38 Test for (recipe sound): 1. Create a sine wave with Audacity. 2. Apply the Nyquist command: (sum (mult s 0.05) 0.95) The result is a sine wave between +0.9 and +1.0 3. Apply the Nyquist command: (recip (mult s 2.0)) The result should be a wave between +0.5 and +0.55 But the result is a thin line at +1.0 It seems that "recip" produces wrong results, if the amplitude of the sound is bigger than 1. This means that you cannot create tanh(x) with "recip" tanh(x) = sinh(x)/cosh(x) cosh(1) = 1.543080634815244 CONCLUSION: Instead of "recip", one may better use this function: (defun s-hyperbolic (mysound) (s-exp (mult (s-log mysound) -1.0)) ) ```
 [Audacity-nyquist] (recip sound) has a bug From: Roger Dannenberg - 2009-01-07 05:55:34 ``` > (recip sound) has a bug That's very surprising to me, but seems to be correct even in the latest version of Nyquist. Another fix seems to be adding a (const 0) to the the term before applying RECIP. I'll report back with more info when I track it down. Thanks, Roger ```
 [Audacity-nyquist] Balmer series From: paul beach - 2009-01-10 17:00:25 ```Hi Everybody, For those who are still looking for the Higg's particle, you can listen to the Balmer series. The five numbers are: 1 9/5 4/3 25/21 9/8 and the sound is here. http://climatehoax.ca/music/balmer.mp3 The integers are similar to Ptolemy's scale, but I haven't made any sense of it. The formal series begins with m = 3, and starting note f = 220 [ m^2 / ( m^2 - 4) ] * 220 I pasted this into the Nyquist prompt, then faded in and out so that it doesn't click. (mult 0.1 (sim (hzosc 220)) (hzosc (* (/ 9.0 5 ) 220) ) (hzosc (* (/ 4.0 3 ) 220) ) (hzosc (* (/ 21.0 25 ) 220) ) (hzosc (* (/ 9.0 8 ) 220) ) )) -- paul beach sniffyraven@... ```

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks