convert notes to freq and vise verse
Project description
freq_note_converter
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.convert(freq=449)
print(val.note)
output:
'A'
input:
print(val)
output:
freq : 449
note_number : 49
note : A
octave : 4
offset_from_note : 0.351
--------------------------------------------------
input:
freq_note_converter.convert(note_number=49).print_me()
output:
freq : 440.0
note_number : 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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for freq_note_converter-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52b44afc2d91fc31a49c8500bb5ea83b63699d1fd09d50a029c2b55d81b4e4a2 |
|
MD5 | 4f4f9f9b59dbbe22da65d67c17009d4a |
|
BLAKE2b-256 | 45f1f41691742b30ac7fa331bcccf62fc37e0805016975e9af1f1e3befbe2ffc |