Deriving notes from given (fundamental) frequencies.

1 | ```
noteFromFF(x, diapason = 440, roundshift = 0)
``` |

`x` |
Fundamental frequency. |

`diapason` |
Frequency of diapason a, default is 440 (Hertz). |

`roundshift` |
Shift that indicates from here to round to the next integer (note).
The default (0) is “classical” rounding as described in Example: if |

The formula used is simply `round(12 * log(x / diapason, 2) + roundshift)`

.

An integer representing the (rounded) difference in halftones from diapason a,
i.e. indicating the note that corresponds to fundamental frequency `x`

given the value of `diapason`

.
For example: 0 indicates diapason a, 3: c', 12: a', ...

Uwe Ligges ligges@statistik.tu-dortmund.de

`FF`

, `periodogram`

, and tuneR for a very complete example.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.