Added debug function for showing sound data.

dev
Holger Wirtz 6 years ago
parent f5f66b2450
commit a66eb75302
  1. 81
      MicroMDAEPiano.ino

@ -476,7 +476,7 @@ void config_from_eeprom(void)
{
EEPROM_readAnything(EEPROM_CONFIGURATIONS + sizeof(config_t) * (sound - 1), configuration);
Serial.print(F(" - OK, loading config "));
Serial.print(sound,DEC);
Serial.print(sound, DEC);
}
else
#ifdef DEBUG
@ -484,7 +484,8 @@ void config_from_eeprom(void)
#endif
#ifdef DEBUG
Serial.println();
Serial.println();
show_sound();
#endif
}
@ -604,4 +605,80 @@ void show_cpu_and_mem_usage(void)
AudioMemoryUsageMaxReset();
render_time_max = 0;
}
void show_sound(void)
{
Serial.print(F("Master Volume: "));
Serial.println(master_volume, DEC);
Serial.print(F("Sound: "));
Serial.println(sound, DEC);
Serial.print(F("Checksum: 0x"));
Serial.println(configuration.checksum, HEX);
Serial.print(F("Decay:"));
Serial.println(configuration.decay, DEC);
Serial.print(F("Release:"));
Serial.println(configuration.release, DEC);
Serial.print(F("Hardness:"));
Serial.println(configuration.hardness, DEC);
Serial.print(F("Treble:"));
Serial.println(configuration.treble, DEC);
Serial.print(F("Stereo:"));
Serial.println(configuration.stereo, DEC);
Serial.print(F("Transpose:"));
Serial.println(configuration.transpose, DEC);
Serial.print(F("Tune:"));
Serial.println(configuration.tune, DEC);
Serial.print(F("Detune:"));
Serial.println(configuration.detune, DEC);
Serial.print(F("Velocity Sense:"));
Serial.println(configuration.velocity_sense, DEC);
Serial.print(F("Pan Tremolo Frequency:"));
Serial.println(configuration.pan_trem_frequency, DEC);
Serial.print(F("Pan Tremolo Level:"));
Serial.println(configuration.pan_trem_level, DEC);
Serial.print(F("Ovedrive:"));
Serial.println(configuration.overdrive, DEC);
Serial.print(F("Compressor Gain:"));
Serial.println(configuration.comp_gain, DEC);
Serial.print(F("Compressor Respone:"));
Serial.println(configuration.comp_response, DEC);
Serial.print(F("Compressor Limit:"));
Serial.println(configuration.comp_limit, DEC);
Serial.print(F("Compressor Threshold:"));
Serial.println(configuration.comp_threshold, DEC);
Serial.print(F("Compressor Attack:"));
Serial.println(configuration.comp_attack, DEC);
Serial.print(F("Compressor Decay:"));
Serial.println(configuration.comp_decay, 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 Level:"));
Serial.println(configuration.reverb_level, DEC);
Serial.print(F("CHorus Frequency:"));
Serial.println(configuration.chorus_frequency, DEC);
Serial.print(F("Chorus Delay:"));
Serial.println(configuration.chorus_delay, DEC);
Serial.print(F("Chorus Level:"));
Serial.println(configuration.chorus_level, DEC);
Serial.print(F("Bass L/R Level:"));
Serial.println(configuration.bass_lr_level, DEC);
Serial.print(F("Bass Mono Level:"));
Serial.println(configuration.bass_mono_level, DEC);
Serial.print(F("EQ Bass:"));
Serial.println(configuration.eq_bass, DEC);
Serial.print(F("EQ Treble:"));
Serial.println(configuration.eq_treble, DEC);
Serial.print(F("Loudness:"));
Serial.println(configuration.loudness, DEC);
Serial.print(F("MIDI Channel:"));
Serial.println(configuration.midi_channel, DEC);
Serial.print(F("MIDI Soft-Thru:"));
Serial.println(configuration.midi_soft_thru, DEC);
Serial.print(F("Maximum Polyphony:"));
Serial.println(configuration.max_poly, DEC);
Serial.print(F("Panorama:"));
Serial.println(configuration.pan, DEC);
}
#endif

Loading…
Cancel
Save