Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
markmarijnissen committed Feb 26, 2015
1 parent 95d0830 commit 39dc413
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ See demo at http://lab.madebymark.nl/pitch-detector/example/.

## Examples

The **Y-Axis** is the auto-correlation score. The **X-Axis** is the frequency range, from high (22
* The **Y-Axis** is the auto-correlation score.
* The **X-Axis** is the frequency range, from high (22
Khz) to low (83 Hz).
* The **Red bar** is the signal strength (RMS). The little dark red line is the minimal RMS.

Detect best auto-correlation of all frequencies:

Expand Down Expand Up @@ -152,6 +154,12 @@ If you know what you're looking or, set a frequency range.

**Warning:** `minCorrelationIncrease` needs a large frequency range to detect a difference. The frequency range must be large enough to include both a low and high auto-correlation.

## Ideas to improve algorithm:

* Draw an "optimal" auto-correlation shape, and calculate mean squared error (MSE) from measured auto-correlation score. When MSE is low enough, a pitch is detected. (or a combination of pitches!)
* Implement DTMF demodulation as example
* Learn a shape by recording auto-correlation scores of the perfect example. The resulting shape is the average of all recordes samples. Calculate standard deviation to see if the signal can be detected reliably.

## Changelog

### 0.2.0 (26/02/2015)
Expand Down

0 comments on commit 39dc413

Please sign in to comment.