@ -336,18 +336,17 @@ void setup()
//sgtl5000_1.dacVolumeRampDisable();
//sgtl5000_1.dacVolumeRampDisable();
sgtl5000_1 . unmuteHeadphone ( ) ;
sgtl5000_1 . unmuteHeadphone ( ) ;
sgtl5000_1 . unmuteLineout ( ) ;
sgtl5000_1 . unmuteLineout ( ) ;
sgtl5000_1 . autoVolumeDisable ( ) ; // turn off AGC
sgtl5000_1 . volume ( 0.5 , 0.5 ) ; // Headphone volume
sgtl5000_1 . volume ( 0.5 , 0.5 ) ; // Headphone volume
sgtl5000_1 . audioPostProcessorEnable ( ) ;
//sgtl5000_1.audioPostProcessorEnable();
sgtl5000_1 . autoVolumeControl ( 1 , 1 , 1 , 0.9 , 0.01 , 0.05 ) ;
sgtl5000_1 . autoVolumeControl ( 1 , 1 , 1 , 0.9 , 0.01 , 0.05 ) ;
//sgtl5000_1.autoVolumeEnable();
//sgtl5000_1.autoVolumeEnable();
sgtl5000_1 . autoVolumeDisable ( ) ;
sgtl5000_1 . autoVolumeDisable ( ) ;
//sgtl5000_1.surroundSoundEnable();
//sgtl5000_1.surroundSoundEnable();
sgtl5000_1 . surroundSoundDisable ( ) ;
sgtl5000_1 . surroundSoundDisable ( ) ;
sgtl5000_1 . surroundSound ( 7 , 2 ) ; // Configures virtual surround width from 0 (mono) to 7 (widest). select may be set to 1 (disable), 2 (mono input) or 3 (stereo input).
//sgtl5000_1.surroundSound(7, 2); // Configures virtual surround width from 0 (mono) to 7 (widest). select may be set to 1 (disable), 2 (mono input) or 3 (stereo input).
//sgtl5000_1.enhanceBassEnable();
//sgtl5000_1.enhanceBassEnable();
sgtl5000_1 . enhanceBassDisable ( ) ;
sgtl5000_1 . enhanceBassDisable ( ) ;
sgtl5000_1 . enhanceBass ( 1.0 , 0.2 , 1 , 2 ) ; // Configures the bass enhancement by setting the levels of the original stereo signal and the bass-enhanced mono level which will be mixed together. The high-pass filter may be enabled (0) or bypassed (1).
//sgtl5000_1.enhanceBass(1.0, 0.2, 1, 2); // Configures the bass enhancement by setting the levels of the original stereo signal and the bass-enhanced mono level which will be mixed together. The high-pass filter may be enabled (0) or bypassed (1).
/* The cutoff frequency is specified as follows:
/* The cutoff frequency is specified as follows:
value frequency
value frequency
0 80 Hz
0 80 Hz
@ -697,7 +696,7 @@ void handleNoteOn(byte inChannel, byte inNumber, byte inVelocity)
if ( checkMidiChannel ( inChannel , instance_id ) )
if ( checkMidiChannel ( inChannel , instance_id ) )
{
{
if ( inNumber > = configuration . dexed [ instance_id ] . lowest_note & & inNumber < = configuration . dexed [ instance_id ] . highest_note )
if ( inNumber > = configuration . dexed [ instance_id ] . lowest_note & & inNumber < = configuration . dexed [ instance_id ] . highest_note )
MicroDexed [ instance_id ] - > keydown ( inNumber , inVelocity ) ;
MicroDexed [ instance_id ] - > keydown ( inNumber , uint8_t ( float ( configuration . dexed [ instance_id ] . velocity_level / 127.0 ) * inVelocity + 0.5 ) ) ;
}
}
}
}
}
}
@ -1346,7 +1345,6 @@ void initial_values_from_eeprom(bool init)
MicroDexed [ instance_id ] - > setATController ( configuration . dexed [ instance_id ] . at_range , configuration . dexed [ instance_id ] . at_assign ) ;
MicroDexed [ instance_id ] - > setATController ( configuration . dexed [ instance_id ] . at_range , configuration . dexed [ instance_id ] . at_assign ) ;
MicroDexed [ instance_id ] - > setOPs ( configuration . dexed [ instance_id ] . op_enabled ) ;
MicroDexed [ instance_id ] - > setOPs ( configuration . dexed [ instance_id ] . op_enabled ) ;
MicroDexed [ instance_id ] - > doRefreshVoice ( ) ;
MicroDexed [ instance_id ] - > doRefreshVoice ( ) ;
MicroDexed [ instance_id ] - > setVelocityLevel ( configuration . dexed [ instance_id ] . velocity_level ) ;
# if defined(USE_FX)
# if defined(USE_FX)
chorus_send_mixer_r . gain ( instance_id , configuration . dexed [ instance_id ] . chorus_send / 100.0 ) ;
chorus_send_mixer_r . gain ( instance_id , configuration . dexed [ instance_id ] . chorus_send / 100.0 ) ;
@ -1559,7 +1557,7 @@ uint32_t crc32(byte * calc_start, uint16_t calc_bytes) // base code from https:/
void generate_version_string ( char * buffer , uint8_t len )
void generate_version_string ( char * buffer , uint8_t len )
{
{
char tmp [ 3 ] ;
char tmp [ 3 ] ;
strncat ( & buffer [ 0 ] , VERSION , len ) ;
strncat ( buffer , VERSION , len ) ;
# if defined(TEENSY3_5)
# if defined(TEENSY3_5)
strncat ( buffer , " -3.5 " , 4 ) ;
strncat ( buffer , " -3.5 " , 4 ) ;
# elif defined(TEENSY3_6)
# elif defined(TEENSY3_6)