use crate;
use ;
pub const CHN_DAC: u4 = new;
pub const MIDI_NOTE_STEPS: u16 = 12;
//const PITCHWHEEL_SENSITIVITY = 64 //+/- n Semitones
//const PITCHWHEEL_STEPS_REAL = 8192 / PITCHWHEEL_SENSITIVITY
//const PITCHWHEEL_STEPS_DEFAULT = 4096 //16384 / 4
pub const PITCHWHEEL_SENSITIVITY_DEFAULT: u7 = new; //+/- n Semitones
pub const PITCHWHEEL_STEPS_DEFAULT: u14 = new; //16384 / 4
//const MIDI_NOTE_CURVE = 2 ^ (1 / MIDI_NOTE_STEPS)
//const PITCHWHEEL_CURVE = MIDI_NOTE_CURVE ^ (1 / PITCHWHEEL_STEPS)
// Timing
//FIXME: Ensure that floating point numbers are the correct representation.
pub const OSC1: f64 = 53693100.0;
pub const FM_YM2413_SN76489: f64 = OSC1 / 15.0;
pub const FSAM_YM2413_SN76489: f64 = FM_YM2413_SN76489 / 72.0;
pub const FM_YM2612: f64 = OSC1 / 14.0;
pub const FSAM_YM2612: f64 = FM_YM2612 / 72.0;
pub const OPL_TYPE_YM3526: u8 = 0x1;
pub const OPL_TYPE_YM3812: u8 = 0x2;
pub const OPL_TYPE_YMF262: u8 = 0x3;
pub const OPL_TYPE_Y8950: u8 = 0x8;
pub const OPN_TYPE_YM2203: u8 = 0x1;
pub const OPN_TYPE_YM2608: u8 = 0x2;
pub const OPN_TYPE_YM2610: u8 = 0x3;
pub const OPN_TYPE_YM2612: u8 = 0x4;