convert notes to freq and vise verse
Project description
freq note converter
** recently I ran into a great package, that also supports note frequency conversion**
import librosa
librosa.hz_to_note(440.0)
['A5']
librosa.note_to_hz(['A3', 'A4', 'A5'])
array([ 220., 440., 880.])
I like this librosa package, thus I will not continue with my package...
but if you still want to use this package, here's the documentation:
convert frequency to note and note to frequency.
currently, can only input frequency and note index, and not supporting note name and octave as input
usage example:
input:
import freq_note_converter
val = freq_note_converter.from_freq(449)
print(val.note)
output:
'A'
input:
print(val)
output:
freq : 449
note_index : 49
note : A
octave : 4
offset_from_note : 0.351
--------------------------------------------------
input:
freq_note_converter.from_note_index(49).print_me()
output:
freq : 440.0
note_index : 49
note : A
octave : 4
offset_from_note : 0
--------------------------------------------------
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for freq_note_converter-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 813dab638a653854c79af8e1b54c5d9ac4485ba848ed97215a11499b70c21548 |
|
MD5 | b3706c5c64659f82797ee291f5b87319 |
|
BLAKE2b-256 | 998d995f132e6ec5e8ad7dd4aad4a819472c70f6f1b74b84b216a4ba2ea5984c |
Close
Hashes for freq_note_converter-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf1d7974986a05f24e1477a960b4e72bde6a094d002dd648cfaf15ab9ccfd823 |
|
MD5 | 0b22fd0c3cd50dcffd18a65939fdd0d6 |
|
BLAKE2b-256 | 904ce0b7c401861381dddd64206644cb61db2e2f22f0d17a0c46bb07659970a3 |