import torch


SAMPLE_RATE = 16000
HOP_LENGTH = SAMPLE_RATE * 32 // 1000
ONSET_LENGTH = SAMPLE_RATE * 32 // 1000
OFFSET_LENGTH = SAMPLE_RATE * 32 // 1000
HOPS_IN_ONSET = ONSET_LENGTH // HOP_LENGTH
HOPS_IN_OFFSET = OFFSET_LENGTH // HOP_LENGTH
MIN_MIDI = 21
MAX_MIDI = 108

N_BINS = 229 # Default using Mel spectrograms
MEL_FMIN = 30
MEL_FMAX = SAMPLE_RATE // 2

# New parameter for Guqin
# N_BINS = 400 # Default using Mel spectrograms
# MEL_FMIN = 20
# MEL_FMAX = SAMPLE_RATE // 2


WINDOW_LENGTH = 2048

#DEFAULT_DEVICE = 'cuda' if torch.cuda.is_available() else 'cpu'
