Skip to content

Commit

Permalink
Add constant for number of midi pitches.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 373032243
  • Loading branch information
cghawthorne authored and Magenta Team committed May 10, 2021
1 parent fba5e86 commit 7549b1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions note_seq/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
MAX_MELODY_EVENT = 127
MIN_MIDI_PITCH = 0 # Inclusive.
MAX_MIDI_PITCH = 127 # Inclusive.
NUM_MIDI_PITCHES = MAX_MIDI_PITCH - MIN_MIDI_PITCH + 1
NOTES_PER_OCTAVE = 12

# Velocity-related constants.
Expand Down

0 comments on commit 7549b1f

Please sign in to comment.