|
|
@ -1092,27 +1092,44 @@ void initial_values_from_eeprom(void) |
|
|
|
Serial.print(F(" - mismatch -> initializing EEPROM!")); |
|
|
|
Serial.print(F(" - mismatch -> initializing EEPROM!")); |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
configuration.checksum = 0xffff; |
|
|
|
configuration.checksum = 0xffff; |
|
|
|
configuration.bank[0] = SYSEXBANK_DEFAULT; |
|
|
|
|
|
|
|
configuration.voice[0] = SYSEXSOUND_DEFAULT; |
|
|
|
|
|
|
|
configuration.vol = VOLUME_DEFAULT; |
|
|
|
configuration.vol = VOLUME_DEFAULT; |
|
|
|
configuration.pan[0] = PANORAMA_DEFAULT; |
|
|
|
|
|
|
|
configuration.mono = MONO_DEFAULT; |
|
|
|
configuration.mono = MONO_DEFAULT; |
|
|
|
configuration.midi_channel[0] = DEFAULT_MIDI_CHANNEL; |
|
|
|
|
|
|
|
configuration.reverb_roomsize = REVERB_ROOMSIZE_DEFAULT; |
|
|
|
configuration.reverb_roomsize = REVERB_ROOMSIZE_DEFAULT; |
|
|
|
configuration.reverb_damping = REVERB_DAMPING_DEFAULT; |
|
|
|
configuration.reverb_damping = REVERB_DAMPING_DEFAULT; |
|
|
|
configuration.reverb_level[0] = REVERB_LEVEL_DEFAULT; |
|
|
|
|
|
|
|
configuration.chorus_frequency = CHORUS_FREQUENCY_DEFAULT; |
|
|
|
configuration.chorus_frequency = CHORUS_FREQUENCY_DEFAULT; |
|
|
|
configuration.chorus_waveform = CHORUS_WAVEFORM_DEFAULT; |
|
|
|
configuration.chorus_waveform = CHORUS_WAVEFORM_DEFAULT; |
|
|
|
configuration.chorus_depth = CHORUS_DEPTH_DEFAULT; |
|
|
|
configuration.chorus_depth = CHORUS_DEPTH_DEFAULT; |
|
|
|
configuration.chorus_level[0] = CHORUS_LEVEL_DEFAULT; |
|
|
|
|
|
|
|
configuration.delay_time = DELAY_TIME_DEFAULT; |
|
|
|
configuration.delay_time = DELAY_TIME_DEFAULT; |
|
|
|
configuration.delay_feedback = DELAY_FEEDBACK_DEFAULT; |
|
|
|
configuration.delay_feedback = DELAY_FEEDBACK_DEFAULT; |
|
|
|
configuration.delay_level[0] = DELAY_LEVEL_DEFAULT; |
|
|
|
for (uint8_t i = 0; i < NUM_DEXED; i++) |
|
|
|
configuration.filter_cutoff[0] = FILTER_CUTOFF_DEFAULT; |
|
|
|
{ |
|
|
|
configuration.filter_resonance[0] = FILTER_RESONANCE_DEFAULT; |
|
|
|
configuration.midi_channel[i] = DEFAULT_MIDI_CHANNEL; |
|
|
|
configuration.loudness[0] = LOUDNESS_DEFAULT; |
|
|
|
configuration.bank[i] = SYSEXBANK_DEFAULT; |
|
|
|
configuration.polyphony[0] = POLYPHONY_DEFAULT; |
|
|
|
configuration.voice[i] = SYSEXSOUND_DEFAULT; |
|
|
|
configuration.engine[0] = ENGINE_DEFAULT; |
|
|
|
configuration.pan[i] = PANORAMA_DEFAULT; |
|
|
|
|
|
|
|
configuration.reverb_level[i] = REVERB_LEVEL_DEFAULT; |
|
|
|
|
|
|
|
configuration.chorus_level[i] = CHORUS_LEVEL_DEFAULT; |
|
|
|
|
|
|
|
configuration.delay_level[i] = DELAY_LEVEL_DEFAULT; |
|
|
|
|
|
|
|
configuration.filter_cutoff[i] = FILTER_CUTOFF_DEFAULT; |
|
|
|
|
|
|
|
configuration.filter_resonance[i] = FILTER_RESONANCE_DEFAULT; |
|
|
|
|
|
|
|
configuration.loudness[i] = LOUDNESS_DEFAULT; |
|
|
|
|
|
|
|
configuration.polyphony[i] = POLYPHONY_DEFAULT; |
|
|
|
|
|
|
|
configuration.engine[i] = ENGINE_DEFAULT; |
|
|
|
|
|
|
|
configuration.monopoly[i] = MONOPOLY_DEFAULT; |
|
|
|
|
|
|
|
configuration.pb_range[i] = PB_RANGE_DEFAULT; |
|
|
|
|
|
|
|
configuration.pb_step[i] = PB_STEP_DEFAULT; |
|
|
|
|
|
|
|
configuration.mw_range[i] = MW_RANGE_DEFAULT; |
|
|
|
|
|
|
|
configuration.mw_assign[i] = MW_ASSIGN_DEFAULT; |
|
|
|
|
|
|
|
configuration.fc_range[i] = FC_RANGE_DEFAULT; |
|
|
|
|
|
|
|
configuration.fc_assign[i] = FC_ASSIGN_DEFAULT; |
|
|
|
|
|
|
|
configuration.bc_range[i] = BC_RANGE_DEFAULT; |
|
|
|
|
|
|
|
configuration.bc_assign[i] = BC_ASSIGN_DEFAULT; |
|
|
|
|
|
|
|
configuration.at_range[i] = AT_RANGE_DEFAULT; |
|
|
|
|
|
|
|
configuration.at_assign[i] = AT_ASSIGN_DEFAULT; |
|
|
|
|
|
|
|
configuration.op_enabled[i] = OP_ENABLED_DEFAULT; |
|
|
|
|
|
|
|
} |
|
|
|
eeprom_update(); |
|
|
|
eeprom_update(); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
@ -1204,24 +1221,20 @@ void show_configuration(void) |
|
|
|
Serial.println(); |
|
|
|
Serial.println(); |
|
|
|
Serial.println(F("CONFIGURATION:")); |
|
|
|
Serial.println(F("CONFIGURATION:")); |
|
|
|
Serial.print(F("Checksum 0x")); Serial.println(configuration.checksum, HEX); |
|
|
|
Serial.print(F("Checksum 0x")); Serial.println(configuration.checksum, HEX); |
|
|
|
|
|
|
|
|
|
|
|
Serial.print(F("Volume ")); Serial.println(configuration.vol, DEC); |
|
|
|
Serial.print(F("Volume ")); Serial.println(configuration.vol, DEC); |
|
|
|
Serial.print(F("Panorama ")); Serial.println(configuration.pan[0], DEC); |
|
|
|
|
|
|
|
Serial.print(F("Mono ")); Serial.println(configuration.mono, DEC); |
|
|
|
Serial.print(F("Mono ")); Serial.println(configuration.mono, DEC); |
|
|
|
Serial.print(F("Reverb Roomsize ")); Serial.println(configuration.reverb_roomsize, DEC); |
|
|
|
Serial.print(F("Reverb Roomsize ")); Serial.println(configuration.reverb_roomsize, DEC); |
|
|
|
Serial.print(F("Reverb Damping ")); Serial.println(configuration.reverb_damping, DEC); |
|
|
|
Serial.print(F("Reverb Damping ")); Serial.println(configuration.reverb_damping, DEC); |
|
|
|
Serial.print(F("Chorus Frequency ")); Serial.println(configuration.chorus_frequency, DEC); |
|
|
|
Serial.print(F("Chorus Frequency ")); Serial.println(configuration.chorus_frequency, DEC); |
|
|
|
Serial.print(F("Chorus Waveform ")); Serial.println(configuration.chorus_waveform, DEC); |
|
|
|
Serial.print(F("Chorus Waveform ")); Serial.println(configuration.chorus_waveform, DEC); |
|
|
|
Serial.print(F("Chorus Depth ")); Serial.println(configuration.chorus_depth, DEC); |
|
|
|
Serial.print(F("Chorus Depth ")); Serial.println(configuration.chorus_depth, DEC); |
|
|
|
Serial.print(F("Chorus Level ")); Serial.println(configuration.chorus_level[0], DEC); |
|
|
|
|
|
|
|
Serial.print(F("Delay Time ")); Serial.println(configuration.delay_time, DEC); |
|
|
|
Serial.print(F("Delay Time ")); Serial.println(configuration.delay_time, DEC); |
|
|
|
Serial.print(F("Delay Feedback ")); Serial.println(configuration.delay_feedback, DEC); |
|
|
|
Serial.print(F("Delay Feedback ")); Serial.println(configuration.delay_feedback, DEC); |
|
|
|
Serial.print(F("MIDI-Channel ")); Serial.println(configuration.midi_channel[0], DEC); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (uint8_t i = 0; i < NUM_DEXED; i++) |
|
|
|
for (uint8_t i = 0; i < NUM_DEXED; i++) |
|
|
|
{ |
|
|
|
{ |
|
|
|
Serial.print(F("DEXED Instance ")); |
|
|
|
Serial.print(F("DEXED Instance ")); |
|
|
|
Serial.println(i, DEC); |
|
|
|
Serial.println(i, DEC); |
|
|
|
|
|
|
|
Serial.print(F(" MIDI-Channel ")); Serial.println(configuration.midi_channel[i], DEC); |
|
|
|
Serial.print(F(" Bank ")); Serial.println(configuration.bank[i], DEC); |
|
|
|
Serial.print(F(" Bank ")); Serial.println(configuration.bank[i], DEC); |
|
|
|
Serial.print(F(" Voice ")); Serial.println(configuration.voice[i], DEC); |
|
|
|
Serial.print(F(" Voice ")); Serial.println(configuration.voice[i], DEC); |
|
|
|
Serial.print(F(" Panorama ")); Serial.println(configuration.pan[i], DEC); |
|
|
|
Serial.print(F(" Panorama ")); Serial.println(configuration.pan[i], DEC); |
|
|
@ -1244,6 +1257,7 @@ void show_configuration(void) |
|
|
|
Serial.print(F(" Breathctrl Assign ")); Serial.println(configuration.bc_assign[i], DEC); |
|
|
|
Serial.print(F(" Breathctrl Assign ")); Serial.println(configuration.bc_assign[i], DEC); |
|
|
|
Serial.print(F(" Aftertouch Range ")); Serial.println(configuration.at_range[i], DEC); |
|
|
|
Serial.print(F(" Aftertouch Range ")); Serial.println(configuration.at_range[i], DEC); |
|
|
|
Serial.print(F(" Aftertouch Assign ")); Serial.println(configuration.at_assign[i], DEC); |
|
|
|
Serial.print(F(" Aftertouch Assign ")); Serial.println(configuration.at_assign[i], DEC); |
|
|
|
|
|
|
|
Serial.print(F(" OP Enabled ")); Serial.println(configuration.op_enabled[i], DEC); |
|
|
|
} |
|
|
|
} |
|
|
|
Serial.println(); |
|
|
|
Serial.println(); |
|
|
|
} |
|
|
|
} |
|
|
|