pipo.peaks question
Hi, I have a very basic question about pipo.peaks. I've looked through the MuBu package examples and done some searching on the ircam forum, with no luck. The examples I've seen assume a pipo chain with peaks following fft; I just want to estimate the peaks in an arbitrary vector of float data.
I send a list into pipo.peaks, and it outputs a list that does include the peak values from the input. The output list appears to be a series of duples. That would make sense, and be useful for my application, if the first value in each duple was an index into the input list. But it's always 0!
As an example if I send {0 0 0 0 1 0 0 0 3 0 0 0} in, the output is {0. 3. 0. 1.} I was hoping for something like {8 3. 4 1.}
I assume I'm missing something simple here, any pointers? Thanks in advance.
Hi Alex, set framedomain to the size of the list and you'll get index/amp pairs. peaks kind of assumes a spectrum as input whose freq. range needs to be given.
NB: please ask questions like these on the Mubu group, as we don't monitor this forum here very often.
Hi Diemo, Thank you for your reply, I am getting index/amp pairs now that make sense. Also thanks for the link to the Mubu group.