scalePattern = slow 16 ""   d2 $note ((scaleP scalePattern$ (rotR 3.5) -- $inversion \n$ (+ slow 8 "x" <~> ((0.5 ~>) generateMelodicSeed)) -- $slow 2 \n$ generateMelodicSeed ) - 12)#s "[pe-gtr:9,midi]" #gain 1.2 #orbit 1 #midichan 2   scalePattern = slow 12 ""   generateMelodicSeed = slow 4 $linger 0.5$ repeatCycles 3 -- $palindrome \n$ (+ (slow (irand (4)+1) (sometimes (inversion) (run (irand (4)+1))))) $slow ((irand 3) + 1)$ e ("x"<~>(irand 8)) 8 \$ "x*16"<~>(irand 5) 

# Sample Rate Reduction

Sample rate reduction is an audio effect where the audio signal is deliberately under-sampled so as to produce in-harmonic aliasing distortion and limit the maximum frequency.

It is sometimes implemented as a kind of sample and hold operation on a digital signal. Imagine an audio processing block with 2 inputs. The first is the signal and the second is the trigger. A trigger signal will either cause the block to pass the first signal along or continue outputting the signal value from the last time the trigger signal was high. If the trigger signal repeats at some frequency lower than the sampling rate, the result will be that the audio is resampled at that frequency. If the source audio contains frequency components higher than 1/2 the trigger signal’s frequency then those components will alias and show up in the output as in-harmonic side-bands.

It also has the effect of lowpass filtering the signal as frequencies higher than 1/2 the trigger signal’s frequency cannot be represented in the resampled output.

TODO: implement this in algae and show the implementation here.

### Notes mentioning this note

There are no notes linking to this note.