Re: randomized white noise = white noise?
- From: acannell@xxxxxxx
- Date: 23 May 2006 13:47:26 -0700
There must be some way to generate the arbitrarily shaped noise spectra
using a simple algorithm and some pre-made tables or random numbers. I
generate it now using a program I wrote which takes the desired energy
at a given frequency, and creates a sine wave with that amplitude and
frequency and then sums it into the output array. Repeat this every 1hz
from 20hz to 20khz (my desired spectrum) and you get the custom made
noise spectra I need. I have this feeling there is a way to do this
without all the floating point math and very intensive cpu usage (about
1 hour to generate 1 second of audio on my pentium III 750mhz in
straight C). I visualize 20,000 oscillators whose output is all summed.
The output is 8 bits. So for every sample, cant we just say "well, it
can only be one of 256 possibilities", and narrow it down somehow?
There must be a faster simpler way to do this. I want to make a small
device which generates this custom noise, but I dont want to pay for 4
megabits of flash, plus, a digital sample of this noise cannot be
looped because you can hear the loop frequency. It needs to be
generated from scratch somehow. I dont think I can make a set of analog
filters to do it, because there are peaks and valleys and it would make
the design much less flexible to changes. Plus it would probably cost
as much or more as the flash since I would almost certainly need
inductors and or opamps.
Let me put it this way. Is there a way to "simplify" the output of
20,000 frequency generators? Lets say that 2000 of them all have the
same amplitude, can I group them together somehow so its faster to
generate their output?
.
- Follow-Ups:
- Re: randomized white noise = white noise?
- From: Tom Bruhns
- Re: randomized white noise = white noise?
- From: Kiviranta, Mikko
- Re: randomized white noise = white noise?
- References:
- randomized white noise = white noise?
- From: acannell
- Re: randomized white noise = white noise?
- From: Don Lancaster
- Re: randomized white noise = white noise?
- From: Tom Bruhns
- randomized white noise = white noise?
- Prev by Date: Re: Mechanical Virtual Theremin
- Next by Date: Re: Charge & Discharge waveforms of lead acid battery Vs Super Capacitor
- Previous by thread: Re: randomized white noise = white noise?
- Next by thread: Re: randomized white noise = white noise?
- Index(es):