Skip to content
Permalink
Browse files

Adds PinkNoise module (#7)

* adds PinkNoise module

* adds PinkNoise to the docs

* adds PinkNoise

* PinkNoise -> PNoise

* PinkNoise -> PNoise

* PinkNoise -> PNoise
  • Loading branch information
justmat committed Apr 17, 2020
1 parent 17c58a7 commit 132077f606b8ac3f730869cca23a267152218bc5
Showing with 30 additions and 0 deletions.
  1. +9 −0 README.md
  2. +18 −0 lib/R.sc
  3. +3 −0 lib/r.lua
@@ -419,6 +419,15 @@ White noise generator.
- `Gain`: Attenuation control. -inf ... +12 dB
- `Mute`: If 1 signal is muted, otherwise not

### PNoise

Pink noise generator.

- Inputs: None
- Outputs:
- `Out`: Pink noise output
- Parameters: None

### PShift

Pitch shifter.
@@ -2591,6 +2591,24 @@ RNoiseModule : RModule {
}
}

// Status: tested
RPinkNoiseModule : RModule {
*shortName { ^'PNoise' }

*ugenGraphFunc {
^{
|
out_Out
|

Out.ar(
out_Out,
PinkNoise.ar
);
}
}
}

// Status: partly tested. TODO: what modulation input range should be used?
RDelayModule : RModule {
*shortName { ^'Delay' }
@@ -264,6 +264,9 @@ specs['OGain'] = {
Mute = ControlSpec.new(0, 1, "linear", 1, 0, "")
}

specs['PNoise'] = {
}

specs['PShift'] = {
PitchRatio = ControlSpec.new(0, 4, "linear", 0, 1, ""),
PitchDispersion = ControlSpec.new(0, 4, "linear", 0, 0, ""),

0 comments on commit 132077f

Please sign in to comment.