Hi, I'm struggling to build the follwing in designer :
- I need to take a snapshot of a 400ms audio buffer ( running window ) every 100ms and process the chunk of data. This means i'm processing at least 75% of the previous snapshot.
I can package the audio into 400ms blocks and process in one go but these are contigous and my application needs an overlapping window of data. I have tried different combinations of modules to tray and achieve this but no result yet. Can anyone help with a suggestion ?
thanks
Alan
11:44am
Checkout the "Rebuffer" module - that should do the trick!
7:47am
Hi Matt, thanks for the reply. appreciated. I have tried the rebuffer module but still can't achieve the results I am looking for ( or it is working and I don't understand the output ). All I am trying to do is take the RMS value of a moving window ( 400ms of audio data @ 48Khz) but I only need a result every 100ms ( 10Hz ). I used rebuffer to take 1 x 32@48Khz blocks of data in and package them as 1 x 4800 @ 48Khz ( 100ms block ). I then used another re-buffer to take in 1 x 4800 @ 48Khz and output 1 x 19200 @ 48Khz ( 400ms block ) if I use the RMS module I get a 1 x 2.5Hz output, not 10Hz. How can I achieve this.? Sorry if this is very basic. I'm just starting out.
6:11pm
Hi Allen,
The attached design should achieve your requirements. The BufferUp module gives you 100 ms blocks with no overlap, and the ReBuffer module gives you new 400 ms blocks every 100 ms, with 75% overlap.
Note that the output frequency of the BlockStatistics module is not correctly calculated when there is a Rebuffer module upstream (Bug #: AWE-1324). This is the reason for using the SetWireProperties module to explicitly change the output frequency of the wire in case anything downstream needs the sample rate. In future releases, Designer will function as you expected, with the frequency output of the BlockStatistics module in this design at 10 Hz.
Good luck, hope this helps!
-Axel
7:00am
Awesome. Thanyou very much for the instruction. I almost arrived at this yesterday and it was the block frequency that was throwing me off.
much appreciated. Regards
Alan