Search found 1730 matches
- Sat Apr 20, 2013 9:48 pm
- Forum: Nyquist
- Topic: Questions about convolve
- Replies: 18
- Views: 5787
Re: Questions about convolve
It seems you've finally found the last sample from snd-inverse. The length of a convolution is normally ((n+m)-1). The last sample is meaningless. Beside this floor, the function is ordinary and does the right Kind of calculation (right order, right weighting). The Response is limited to 100000 samp...
- Sat Apr 20, 2013 9:10 am
- Forum: Nyquist
- Topic: Zero Crossing detection
- Replies: 26
- Views: 11466
Re: Zero Crossing detection
You know, I love list structures and dislike Arrays. Lists are much more flexibel and easier to handle. Arrays - in contrast - have a faster Access and use 4 Bytes less Memory (but still quite a lot about 14). Here's my Version of your nearest Zero crossing example. (defun nigh-zero (sig time &aux *...
- Sat Apr 20, 2013 6:57 am
- Forum: Nyquist
- Topic: Zero Crossing detection
- Replies: 26
- Views: 11466
Re: Zero Crossing detection
Thank you very much, Paul. It is maybe worth mentioning that your codelet Returns only negative-positive crossings, i.e. the beginning of a sine-wave-like cycle. You've used a lot snd-fetch-array. Wouldn't it be easier to use '(snd-samples snd ny:all)'? At least there where the Sound is copied. Anyw...
- Sat Apr 20, 2013 5:54 am
- Forum: Nyquist
- Topic: Uh oh! Off-by one error in snd-inverse!
- Replies: 11
- Views: 2898
Re: Uh oh! Off-by one error in snd-inverse!
It seems that you have to expand the Signal by one sample (as with integrate) The same is the case with the wave-shaping function shape. Roger himself was surprised that such was the case. I believe it's written in the Soft Distortion tutorial. Another example is pwl, where the last time index alway...
- Fri Apr 19, 2013 8:09 pm
- Forum: Nyquist
- Topic: Uh oh! Off-by one error in snd-inverse!
- Replies: 11
- Views: 2898
Re: Uh oh! Off-by one error in snd-inverse!
what do you think is the result from snd-inverse in general? The length of the Sound returned can vary, according to the Sound it is fed with. add 1 to your snd and you'll get 19 samples. The Sound is a Kind of frequency Modulation. in combination with snd-compose, it will tell which value will be t...
- Fri Apr 19, 2013 6:03 pm
- Forum: Nyquist
- Topic: Uh oh! Off-by one error in snd-inverse!
- Replies: 11
- Views: 2898
Re: Uh oh! Off-by one error in snd-inverse!
Ok, the Loop Counter is correct. But you should always use it with the actual length of the result of the inverse procedure. I do not see a wrong behaviour. The function does what it is supposed to do when applied in the intended Fashion. I am rather concerned about the Floating Point Errors, when d...
- Fri Apr 19, 2013 5:49 pm
- Forum: Nyquist
- Topic: Confusing documentation for sref
- Replies: 14
- Views: 3419
Re: Confusing documentation for sref
You an also reverse a Sound with 'fmos' and a negative frequency Modulation. Works with chunks of 100000 samples. By the way, local-to-global with negative time is used in get-duration to control if the Duration is negative. That causes an error of course. The question arises if negative Durations s...
- Fri Apr 19, 2013 8:03 am
- Forum: Nyquist
- Topic: Uh oh! Off-by one error in snd-inverse!
- Replies: 11
- Views: 2898
Re: Uh oh! Off-by one error in snd-inverse!
I overlooked your snd-inverse function. I wonder what you try to achieve with it in the end. Anyway, if you increase the Initial values by 0.1 (the first 0.0 included) you'll get the proper amount of numbers (if the stop value of dotimes is also increased). The purpose of snd-inverse is to create a ...
- Fri Apr 19, 2013 6:36 am
- Forum: Nyquist
- Topic: Confusing documentation for sref
- Replies: 14
- Views: 3419
Re: Confusing documentation for sref
By the way, Your '(local-to-global 1)' is not used properly. Your time in seconds is divided by the Output of this function - that's exact the same Output you get with '(get-duration 1)'. In other words you simply Stretch the time such that it is measured in absolute time Units (s) and not in multip...
- Fri Apr 19, 2013 5:33 am
- Forum: Nyquist
- Topic: Uh oh! Off-by one error in snd-inverse!
- Replies: 11
- Views: 2898
Re: Uh oh! Off-by one error in snd-inverse!
Your Loop goes not high enough.
it stops at ii < 10 = 9.
That's convenient for cases where you get the length of an Array, list or Sound because the indexing commences always with 0 and should therefore not Count up to the actual number of values contented.
it stops at ii < 10 = 9.
That's convenient for cases where you get the length of an Array, list or Sound because the indexing commences always with 0 and should therefore not Count up to the actual number of values contented.