Converts from Hz to semitones above C-5 (~0.5109875 Hz). This may not seem
very useful, but note that this gives us a nice logarithmic scale for
generating natural pitch transitions with the added benefit of getting
musical notation for free from
notesDict (see examples).
HzToSemitones(h, ref = 0.5109875)
vector or matrix of frequencies (Hz)
frequency of the reference value (defaults to C-5, 0.51 Hz)
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.