Skip to content

Commit

Permalink
Update basic_pitch/constants.py
Browse files Browse the repository at this point in the history
Co-authored-by: David Rubinstein <[email protected]>
  • Loading branch information
bgenchel and drubinstein authored Aug 16, 2024
1 parent 1a2dfa6 commit cebd1d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion basic_pitch/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,7 @@ def _freq_bins(bins_per_semitone: int, base_frequency: float, n_semitones: int)
FREQ_BINS_NOTES = _freq_bins(NOTES_BINS_PER_SEMITONE, ANNOTATIONS_BASE_FREQUENCY, ANNOTATIONS_N_SEMITONES)
FREQ_BINS_CONTOURS = _freq_bins(CONTOURS_BINS_PER_SEMITONE, ANNOTATIONS_BASE_FREQUENCY, ANNOTATIONS_N_SEMITONES)

Split = Enum("Split", ["train", "validation", "test"])
class Split(Enum):
train = "train"
validation = "validation"
test = "test"

0 comments on commit cebd1d6

Please sign in to comment.