What's faster as a workaround is to call snd-xform with block size equal to step size and again for snd-xforms of the sound that remove a multiple of step-size samples. Then use snd-fromobject to interleave the samples of the several snd-avgs.
That fixes the trouble... sometimes.
Search found 884 matches
- Tue Nov 12, 2013 12:52 pm
- Forum: Nyquist
- Topic: Nyquist crash with snd-avg
- Replies: 11
- Views: 2671
- Tue Nov 12, 2013 10:21 am
- Forum: Nyquist
- Topic: Nyquist crash with snd-avg
- Replies: 11
- Views: 2671
Re: Nyquist crash with snd-avg
Another detail worth mentioning. It appears, from the time it takes to crash, that something is wrong at the end of the sound returned from snd-avg. The crash happens later if the bad sound is longer. The progress indicator for my plug-in advances almost to the end before crashing.
- Tue Nov 12, 2013 1:51 am
- Forum: Nyquist
- Topic: Nyquist crash with snd-avg
- Replies: 11
- Views: 2671
Re: Nyquist crash with snd-avg
That workaround works! (defmacro update-op (op x val) (let ((temp1 (gensym)) (temp2 (gensym))) `(let ((,temp1 ,val) (,temp2 ,x)) (setf ,x (if ,temp2 (,op ,temp2 ,temp1) ,temp1))))) (defmacro update-max (x val) `(update-op max ,x ,val)) (defmacro update-min (x val) `(update-op min ,x ,val)) ;;;;;;;;;...
- Mon Nov 11, 2013 10:10 pm
- Forum: Nyquist
- Topic: Nyquist crash with snd-avg
- Replies: 11
- Views: 2671
Re: Nyquist crash with snd-avg
Something about the intermediate result is foiling snd-avg, for sure. Strangely it remains so even though snd-flatten is first done to the result of convolve.
This bug makes me unhappy enough that I will trywriting my own snd-avg using snd-fromobject
This bug makes me unhappy enough that I will trywriting my own snd-avg using snd-fromobject
- Mon Nov 11, 2013 5:25 pm
- Forum: Nyquist
- Topic: Nyquist crash with snd-avg
- Replies: 11
- Views: 2671
Re: Nyquist crash with snd-avg
You refer to the third of my four messages above. I said any positive value for the HALF-step, which means an even value of the step. I just reconfirmed that there is a crash with half-step of 109.
- Mon Nov 11, 2013 6:49 am
- Forum: Nyquist
- Topic: Nyquist crash with snd-avg
- Replies: 11
- Views: 2671
Re: Nyquist crash with snd-avg
Now take this version, and just vary multiplier. 5 is the least value causing a crash, but there is no crash with 6 or 8. I did try up to 11 and got crashes for 7, 9, 10, 11. That's enough for tonight. (setf srate 44100.0) (defun make-sound (length) (let ((arr (make-array length))) (dotimes (ii leng...
- Mon Nov 11, 2013 6:35 am
- Forum: Nyquist
- Topic: Nyquist crash with snd-avg
- Replies: 11
- Views: 2671
Re: Nyquist crash with snd-avg
I explored the boundaries of the problem a little more. (setf srate 44100.0) (defun make-sound (length) (let ((arr (make-array length))) (dotimes (ii length) (setf (aref arr ii) 0)) (snd-from-array 0 srate arr))) (setf use-convolve t) (let ((multiplier 5) (half-step 110)) (let* ((mm (* multiplier ha...
- Mon Nov 11, 2013 6:12 am
- Forum: Nyquist
- Topic: Nyquist crash with snd-avg
- Replies: 11
- Views: 2671
Re: Nyquist crash with snd-avg
Here is a simpler way to demonstrate the crash. As written it does not crash. Change the definition of nn as commented and it does crash, and apparently for any larger value. Is it significant that this least value of nn that causes a crash is one half of the step size? If I fix nn at 110 and vary m...
- Mon Nov 11, 2013 2:11 am
- Forum: Nyquist
- Topic: Nyquist crash with snd-avg
- Replies: 11
- Views: 2671
Nyquist crash with snd-avg
I am still using 2.0.3. This is a bug in the library, for real this time. Audacity crashes when snd-avg is given certain inputs and the resulting sound is evaluated. The problem depends only on the lengths of the sounds involved, not the values of the samples. Do this in the Nyquist prompt. (setf sr...
- Sat Nov 09, 2013 11:00 pm
- Forum: Nyquist
- Topic: Should I use flat-top windows?
- Replies: 7
- Views: 2705
Re: Should I use flat-top windows?
That's really clever. Sadly my mathematical knowledge does not extend to such things, though I can see in practical terms how it is working, and it's :ugeek: You seem better acquainted with the stuff than I am yet, I've just learned enough to be dangerous cobbling the right pieces together, and som...