Skip to content

Commit 0d3fe09

Browse files
initial repo load
1 parent 0f4c22e commit 0d3fe09

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Usage Example
6060
=============
6161

6262
``note_or_name(note)``
63+
6364
Bidirectionally translates a MIDI sequential note value to a note name or a note
6465
name to a MIDI sequential note value. Note values are of integer type in the
6566
range of 0 to 127 (inclusive). Note names are character strings expressed
@@ -75,6 +76,7 @@ of the note value or name range, the value of ``None`` is returned.
7576
'G5'
7677

7778
``note_to_name(note)`` and ``name_to_note(name)``
79+
7880
Translates a MIDI sequential note value to a note name or note name to a note
7981
value. Note values are of integer type in the range of 0 to 127 (inclusive).
8082
Note names are strings expressed in the NoteOctave format, such as 'C4' or
@@ -89,13 +91,13 @@ If the input value is outside the range, the value of ``None`` is returned.
8991
>>> name_to_note('A#4')
9092
70
9193

92-
9394
``note_to_frequency(note)`` and ``frequency_to_note(frequency)``
95+
9496
Translates a MIDI sequential note value to its corresponding frequency in
9597
Hertz (Hz) or a frequency to its nearest note value. Note values are of integer
9698
type in the range of 0 to 127 (inclusive). Frequency values are floating point.
9799
If the input is outside of the range, the value ``None`` is returned.
98-
Ref: MIDI Tuning Standard formula: https://en.wikipedia.org/wiki/ MIDI_tuning_standard
100+
Ref: MIDI Tuning Standard formula: https://en.wikipedia.org/wiki/MIDI_tuning_standard
99101

100102
.. code_block:: python
101103

@@ -106,6 +108,7 @@ Ref: MIDI Tuning Standard formula: https://en.wikipedia.org/wiki/ MIDI_tuning_st
106108
60
107109

108110
``cc_code_to_description(cc_code)``
111+
109112
Provides a controller description decoded from a Control Change controller code
110113
value.
111114
Ref: https://www.midi.org/specifications-old/item/table-3-control-change-messages-data-bytes-2

0 commit comments

Comments
 (0)