Re: [PD] noise floor: median in audio signals, for peak extraction

2011-12-25 Thread Thomas Grill
Hi Alexandre, maybe the libsms integration into Pd is of use for you - it calculates a model of sinusoidals + residual noise, the latter representing a kind of noise floor. Those components can then also be modified and resynthesized. http://mtg.upf.edu/static/libsms/ bests, gr~~~ 2011/12/21

Re: [PD] noise floor: median in audio signals, for peak extraction

2011-12-25 Thread Mathieu Bouchard
Le 2011-12-23 à 18:53:00, Alexandre Torres Porres a écrit : Hi there, I had no idea there was such a thing as the [pack~] [unpack~] objects. I was about to ask about something like this, or propose it, because it is very cool the idea of acting on audio blocks as if they were lists, Also,

Re: [PD] noise floor: median in audio signals, for peak extraction

2011-12-23 Thread Alexandre Torres Porres
Hi there, I had no idea there was such a thing as the [pack~] [unpack~] objects. I was about to ask about something like this, or propose it, because it is very cool the idea of acting on audio blocks as if they were lists, and do all sorts of operations we cant with audio objects. Anyway, now

Re: [PD] noise floor: median in audio signals, for peak extraction

2011-12-22 Thread Mathieu Bouchard
Le 2011-12-20 à 21:29:00, Alexandre Torres Porres a écrit : this would be kinda like using the [median] or [median_n] objects, but over audio blocks and not number lists. Ok, lots of heavy details below... The way [median] and [median_n] are built, they take a lot of time. Sorting each

Re: [PD] noise floor: median in audio signals, for peak extraction

2011-12-22 Thread Alexandre Torres Porres
So, why is a mean (average) not good enough, while a median would be good enough ? It's possible, but I'd like to hear an explanation. I'd need to test and compare, all I know is that I tested [avg~] and compared it to sethares' objects in MAX, that do this median filter, and they seem to sound

Re: [PD] noise floor: median in audio signals, for peak extraction

2011-12-22 Thread Charles Henry
On Wed, Dec 21, 2011 at 11:15 AM, Charles Henry czhe...@gmail.com wrote: 1.  How to handle the endpoints of the signal blocks? I've thought this over, and concluded that it really doesn't matter, for the case of the magnitude of power spectral density. Any high or low values of the spectrum at

Re: [PD] noise floor: median in audio signals, for peak extraction

2011-12-21 Thread Charles Henry
Hi Alex I've been reading all your posts lately. Very interesting--I will look forward to your new phase vocorder stuff, when I get free time and enough rest. Have you considered weighted median filtering? It's a non-linear filter structure that takes non-negative integers as arguments. At

Re: [PD] noise floor: median in audio signals, for peak extraction

2011-12-21 Thread Charles Henry
On Wed, Dec 21, 2011 at 11:15 AM, Charles Henry czhe...@gmail.com wrote: I had made a badly written external, and a cpu-hungry abstraction (with fexpr~ and a fixed number of weights) a while back.  I'd be happy to dig up the code and algorithm after work today. Here's the abstraction:

[PD] noise floor: median in audio signals, for peak extraction

2011-12-20 Thread Alexandre Torres Porres
Hi there, this is a technique for calculating the noise floor of a spectrum, and extracting the peaks. It'd be used pretty much like I04.Noie Gate Miller's example, that has the mask table with a constant multiplier. We'd have instead this noise-floor block of audio, also multiplied by a

Re: [PD] noise floor: median in audio signals, for peak extraction

2011-12-20 Thread Alexandre Torres Porres
here's my patch by the way. I can't attach files to the list, right? I'm sending the code in the body of the message. I guess one way would be to write an external that would give me back this block of audio with the median of each section. I'd replace it in the [avg~] object in the patch

Re: [PD] noise floor: median in audio signals, for peak extraction

2011-12-20 Thread Alexandre Torres Porres
stupid bug; dsp $1 instead of dsp 1 on loadbang now corrected: #N canvas 1374 303 359 446 12; #X obj 52 128 readsf~; #X obj 52 46 openpanel; #X obj 52 73 symbol; #X msg 52 101 open \$1 \, start; #X obj 52 26 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X