freq-note-converter

convert notes to freq and vise verse


License
MIT
Install
pip install freq-note-converter==0.2.0

Documentation

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
        --------------------------------------------------