SuperCollider CLASSES (extension)

Extension

Demand rate implementation of a Wiard noise ring

Demand rate implementation of a Wiard noise ring.

*In latter model synthesizers, digital noise sources began to appear in place of analog ones. Traditionally, a psuedo-random shift register set up for optimal length. By optimal length, it is meant that every state of all available bits will appear at some time, but the order is unknown. Essentially a counter that counts in an unknown order. This represents the maximum state of information "entropy" available for that number of bits. But music has close self-similarity over short periods of time. That is, it repeats itself with changes appearing slowly. This shift register generator is designed to give control of the rate of appearance of new information. It has a tight set of controls over how random it actually is and how fast change occurs.*(text from http://mamonu.weebly.com/wiard-noisering.html)

Developed as part of the DEIND project.

change = 0.5, chance = 0.5, shift = 1, numBits = 8, resetval = 0;

change |
The higher change, the greater the chance for a new value |

chance |
The higher chance, the greater the chance the new value is HIGH |

shift |
not yet implemented. |

numBits |
not yet implemented. |

resetval |
Initial value |

A Demand rate UGen.

Plot

{ Demand.ar(Impulse.ar(1000), 0, DNoiseRing(change: 0.1, numBits: 32)) * (2**32).reciprocal }.plot(1)

Plain 32bit value scaled to 0..1 and out of the speaker

{Demand.ar(Impulse.ar(10000), 0, DNoiseRing(change: MouseX.kr(0, 1), chance: 0.51, numBits: 32)) * (2**32).reciprocal}.play

As a sequencer

{ var freq = (Demand.ar(Impulse.ar(10), 0, DNoiseRing(change: MouseX.kr(0, 1), chance: MouseY.kr(0, 1), numBits: 32))).linlin(0, 2**32, 40, 40+48).midicps.poll; SinOsc.ar(freq)!2 }.play

helpfile source: /usr/local/share/SuperCollider/Extensions/SC3plugins/DEINDUGens/HelpSource/Classes/DNoiseRing.schelp

link::Classes/DNoiseRing::

sc version: 3.9dev

link::Classes/DNoiseRing::

sc version: 3.9dev