06-16-2015 03:42 AM
HI everybody,
I have been creating random numbers that I'm using within a system, the system is working fine, but now I have realised that the random numbers must be outputted to speakers in such a way as to filter out all but a low frequency range.
I was thinking about generating a dither signal with a bandpass filter, but could not get it to give me out a full array of 5001 values which I could then manipulate.
The sampling frequency of the output is 2000Hz and the 5001 data points must fall within the 10- 200Hz range.
I have try this :
But i loose the main part of my Amp... ( 0.8 -> 0.2 ) . With my filter i want to keep the amplitude of my signal
Thanks for the help,
06-16-2015 06:20 AM
Random numbers have a lot of high frequency, so you are going to loose a lot of amplitude. You could just multiply some value to your output waveform to get the amplitude you want. I'm thinking you will want to multiply by the amplitude you want divided by the max value of your waveform.
06-16-2015 06:46 AM
Have you any other solutions? my system is an enslavement I Throws An noise amplitude and different frequencies depending on what is desired
06-16-2015 07:01 AM
Hi, Geoff. I was beginning to think that this is what you really wanted ... A very easy way to generate a random-appearing signal at 2000Hz having frequencies within the 10-200Hz range is to generate a sum of sinusoids. If you want to make it "unpredictable", you could do the following:
Bob Schor
06-16-2015 07:06 AM
for example, i define this profile :
When i generate it look like this :
As you can see i generate a signal between 0 and 1000 Hz, but when frequency aren't in the range 10-200 ( my profile ) amp must be 0g
06-16-2015 07:13 AM - edited 06-16-2015 07:40 AM
Thank you BOB.
I think really you have My solution ! If you have open my project you know that "RDM" block provide random amp but where can i introduce sine generation with frequency range ?