```
d1 $ note ((scaleP scalePattern $ off 4 ((+ 2 ).slow 2) $ off 1 (inversion.slow 2) $ off 3 (inversion.slow 3) $ off 1.5 ((+ 2).rev.slow 2) $ generateMelodicSeed ))#s "[pe-gtr:10,midi]" #gain 1 #orbit 0 #midichan 1
```

```
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
```

```
d9 $ midicmd "start" # s "midi"
```

```
d9 $ midicmd "start" # s "midi"
```

# FIR filter

A Finite Impulse Response (FIR) filter is a kind of digital filter that is implemented by a difference equation that references only past values of the input. A general form for a FIR filter is as follows:

\[y[n] = \sum_{i=0}^p a_{i}x[n-i]\]The values of the coefficients and the number of terms will determine the character of the filter.

FIR filters are always stable and they will not distort the phase relationships of the signal. However, to achieve steep cutoffs, many terms are required or many FIR filters must be put in series.

### Notes mentioning this note

Digital filters

Digital Filter A digital filter is a process that takes some input signal and produces some (possibly modified) output signal....

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.