# quantizer.lib

Faust Frequency Quantization Library. Its official prefix is qu.

## Functions Reference

### (qu.)quantize

Configurable frequency quantization tool. Outputs only the frenquencies that are part of the specified scale.

Doesn't work as intended for frequencies between -1 and 1.

#### Usage

_ : quantize(rf,nl) : _


Where :

• rf : frequency of the root note of the scale.
• nl : list of the ratio of the frequencies of each note in relation to the root frequency.

### (qu.)quantizeSmoothed

Configurable frequency quantization tool. Outputs frenquencies that are closer to the frequencies of the notes of the specified scale.

Doesn't work as intended for frequencies between -1 and 1.

#### Usage

_ : quantizeSmoothed(rf,nl) : _
nl = (1,1.2,1.4,1.7);


Where :

• rf : frequency of the root note of the scale.
• nl : list of the ratio of the frequencies of each note in relation to the root frequency.

### (qu.)ionian

List of the frequency ratios of the notes of the ionian mode.

#### Usage

_ : quantize(rf,ionian) : _


Where:

• rf: frequency of the root note of the scale.

### (qu.)pentanat

List of the frequency ratios of the notes of the pythagorean tuning for the minor pentatonic scale.

#### Usage

_ : quantize(rf,pentanat) : _


Where:

• rf: frequency of the root note of the scale.

### (qu.)kumoi

List of the frequency ratios of the notes of the kumoijoshi, the japanese pentatonic scale.

#### Usage

_ : quantize(rf,kumoi) : _


Where:

• rf: frequency of the root note of the scale.

### (qu.)natural

List of the frequency ratios of the notes of the natural major scale.

#### Usage

_ : quantize(rf,natural) : _


Where:

• rf: frequency of the root note of the scale.

### (qu.)dodeca

List of the frequency ratios of the notes of the dodecaphonic scale.

#### Usage

_ : quantize(rf,dodeca) : _


Where:

• rf: frequency of the root note of the scale.

### (qu.)dimin

List of the frequency ratios of the notes of the diminished scale.

#### Usage

_ : quantize(rf,dimin) : _


Where:

• rf: frequency of the root note of the scale.

### (qu.)penta

List of the frequency ratios of the notes of the minor pentatonic scale.

#### Usage

_ : quantize(rf,penta) : _


Where:

• rf: frequency of the root note of the scale.

### (qu.)dorian

List of the frequency ratios of the notes of the dorian mode.

#### Usage

_ : quantize(rf,dorian) : _


Where:

• rf: frequency of the root note of the scale.