Variables
Const FRAME_LENGTH_SECONDS
FRAME_LENGTH_SECONDS: number = SPEC_HOP_LENGTH / SAMPLE_RATE
Const MAX_MIDI_PITCH
MAX_MIDI_PITCH: 108 = 108
Const MEL_SPEC_BINS
MEL_SPEC_BINS: 229 = 229
Const MIDI_PITCHES
MIDI_PITCHES: number = MAX_MIDI_PITCH - MIN_MIDI_PITCH + 1
Const MIN_MIDI_PITCH
MIN_MIDI_PITCH: 21 = 21
Const SAMPLE_RATE
SAMPLE_RATE: 16000 = 16000
Const SPEC_HOP_LENGTH
SPEC_HOP_LENGTH: 512 = 512
Constants for transcription.
Copyright 2018 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.