[@thi.ng/colored-noise] white() returns rnd.norm is not a function
See original GitHub issueIt’s pseudo code
import { blue, green, pink, red, violet, white } from '@thi.ng/colored-noise';
import { take } from '@thi.ng/transducers';
/**
* Noise source
*
* @param duration -
*/
function getNoise(duration: number): number[] {
return [
...take<number>(
duration,
white()
),
];
}
An error similar to the following is output.
white.js:11 Uncaught TypeError: rnd.norm is not a function
It did not reproduce with other noises (such as blue, green, pink, red, violet).
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Colors of noise
1.1 White noise · 1.2 Pink noise · 1.3 Brownian noise · 1.4 Blue noise · 1.5 Violet noise · 1.6 Grey noise....
Read more >About Colored Noise
In audio, the most common color encountered is 'pink noise': Realized as sound, white noise sounds like the hiss of an untuned FM...
Read more >LearnOpenGL - Basic Lighting
The object is quite dark, but not completely since ambient lighting is applied (note that the light cube is unaffected because we use...
Read more >Noise
White Noise; Stable Distributions; Dispersion does not imply variance (!); T Student; Colored Noise. Pink Noise; Brown Noise; Black Noise.
Read more >Generate colored noise signal - MATLAB
Create the dsp.ColoredNoise object and set its properties. Call the object with arguments, as if it were a function. To learn ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @logue - just wanted to let you know that this update is released now as v1.0.0
https://github.com/thi-ng/umbrella/blob/develop/packages/colored-noise/CHANGELOG.md#100-2022-11-23
Understood & if uniform args are required, then I’d propose to replace the current function args with a config object/interface, e.g.:
Then we can update the generators like so and you can get rid of your conditional: