pub struct Notefinder { /* private fields */ }

Implementations

Create a new instance of the Notefinder with the desired samplerate.

Samplerate can only be set during creation.

Run the notefinder over the provided buffer

Get the discovered notes

Use this to change the Discrete Fourier transform algorithm.

Options defined in DFTAlgorithm

Sets the span of octaves Defaults to 8

Defines the number of frequency bins Defaults to 24

Set the base Hz for the notefinder to start at Defaults to 0

Controls the strength of the filter Defaults to 0.5

Set filter iterations, the higher the better but does cost CPU Defaults to 1.

Set decompose iterations, defaults to 1000

Amplify input across the board

How much to compress the sound by before putting it into the compressor.

Exponent of the compressor lower = make more uniform.

At 300, there is still some minimal aliasing at higher frequencies. Increase this for less low-end distortion Defaults to 300

The “tightness” of the curve, or how many samples back to look? Defaults to 16

This controls the expected shape of the normal distributions. Defaults to 1.4

Author of Colorchord notes “I am not sure how to calculate this from samplerate, Q and bins.”

How far established notes are allowed to “jump” in order to attach themselves to a new “peak” Default 0.5

How close established notes need to be to each other before they can be “combined” into a single note. Defaults to 0.5

A distribution must be /this/ big otherwise, it will be discarded. Defaults to 0.02

How much to decimate the output notes to reduce spurious noise

IIR (infinite impulse response) to impose the output of the IIR.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Convert the source color to the destination color using the specified method Read more

Convert the source color to the destination color using the bradford method by default Read more

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Convert into T with values clamped to the color defined bounds Read more

Convert into T. The resulting color might be invalid in its color space Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more