Search found 884 matches
- Sat Apr 13, 2013 1:15 pm
- Forum: Nyquist
- Topic: elementary snd-fft question
- Replies: 21
- Views: 6632
Re: elementary snd-fft question
Update -- I fixed one stupid bug where I computed 2/x when I wanted x/2. So here's a little screenful of code. As explained I want to attach labels to the "hot spots" at a certain frequency. It's doing something approximately like that. I don't yet know the intelligent things to do with the window s...
- Sat Apr 13, 2013 5:36 am
- Forum: Nyquist
- Topic: elementary snd-fft question
- Replies: 21
- Views: 6632
Re: elementary snd-fft question
I hadn't heard about the number 1020.
Should snd-fft be given only window sizes of 2^n samples?
So the first coefficient is dc offset, then there are pairs of coefficients for multiplies of sample rate / window. I got that.
Should snd-fft be given only window sizes of 2^n samples?
So the first coefficient is dc offset, then there are pairs of coefficients for multiplies of sample rate / window. I got that.
- Sat Apr 13, 2013 3:16 am
- Forum: Nyquist
- Topic: elementary snd-fft question
- Replies: 21
- Views: 6632
Re: elementary snd-fft question
sqrt (a * a + b * b) is not the rms of a and b, but sqrt(2) times that, duh I misspoke. Are we talking about the same code? I thought you meant Steve's fft-modulator-class example on this page. http://www.audacity-forum.de/download/edgar/nyquist/nyquist-doc/examples/rbd/03-fft-tutorial.htm Samples f...
- Sat Apr 13, 2013 1:57 am
- Forum: Nyquist
- Topic: elementary snd-fft question
- Replies: 21
- Views: 6632
Re: elementary snd-fft question
No, that doesn't answer my question. That shows how you combine corresponding entries of two corresponding frames. Scale the coefficients of one by the rms's of pairs of coefficients of the other. That doesn't tell me how I compare coefficients with a scalar dB value. The simple exercise I'm trying,...
- Fri Apr 12, 2013 10:51 pm
- Forum: Nyquist
- Topic: elementary snd-fft question
- Replies: 21
- Views: 6632
Re: elementary snd-fft question
Okay! I wrote and debugged some simple code (maddening, make stupid errors and Nyquist just chokes with no clue, but anyway). I've got something that iterates over frames. But, now what? How do I interpret the numbers in the frames? What are their units? If I make a control for my analyzer with a -d...
- Fri Apr 12, 2013 7:43 pm
- Forum: Nyquist
- Topic: Zero crossings -- Help me, Robert (or steve)
- Replies: 11
- Views: 3720
Re: Zero crossings -- Help me, Robert (or steve)
To clarify, the questions, about how snd-inverse is implemented under the hood, are these: (1) if you call snd-inverse repeatedly on the same sound, are the later calls constant-time, because the first call precomputes and remembers an inverse lookup for the whole sound? Or, (2) does snd-inverse res...
- Fri Apr 12, 2013 7:14 pm
- Forum: Nyquist
- Topic: elementary snd-fft question
- Replies: 21
- Views: 6632
Re: elementary snd-fft question
Okay, let me see if I'm getting this. The page I first linked to says: "Instead, Nyquist violates its "pure" functional model and resorts to objects for FFT processing. A sequence of frames is represented by an XLISP object. Whenever you send the selector :next to the object, you get back either NIL...
- Fri Apr 12, 2013 6:36 pm
- Forum: Nyquist
- Topic: Zero crossings -- Help me, Robert (or steve)
- Replies: 11
- Views: 3720
Re: Zero crossings -- Help me, Robert (or steve)
Original discussion here http://forum.audacityteam.org/viewtopic ... ng#p191079
- Fri Apr 12, 2013 6:03 pm
- Forum: Nyquist
- Topic: Zero crossings -- Help me, Robert (or steve)
- Replies: 11
- Views: 3720
Zero crossings -- Help me, Robert (or steve)
Robert J H referred me to this piece of code for finding zero crossings efficiently. I think I get what it's doing, but I don't understand some things. What is the unused variable "zero" for? Is the loop calling sref-inverse really efficient (the builtin function doing some one time caching) or it t...
- Fri Apr 12, 2013 5:17 pm
- Forum: Nyquist
- Topic: Elementary question, include files
- Replies: 12
- Views: 4211
Re: Elementary question, include files
I will likely put the tricks for finding zero crossings that others have suggested, in there.