Showing loaded patch data.

Fixing pitchbend initialisation.
pull/32/head
Holger Wirtz 5 years ago
parent 89a8e45505
commit 2e55f4ba1a
  1. 13
      MicroDexed.ino
  2. 2
      dexed.cpp
  3. 4
      dexed_sysex.cpp

@ -591,7 +591,7 @@ void setup()
Serial.println(F("]"));
Serial.print(F("Polyphony: "));
Serial.println(configuration.dexed[instance_id].polyphony, DEC);
show_patch(instance_id);
//show_patch(instance_id);
}
Serial.print(F("AUDIO_BLOCK_SAMPLES="));
@ -1712,12 +1712,15 @@ void show_configuration(void)
void show_patch(uint8_t instance_id)
{
char voicename[VOICE_NAME_LEN];
char vn[VOICE_NAME_LEN];
if (instance_id < 0xFF)
{
Serial.print(F("INSTANCE "));
Serial.println(instance_id, DEC);
}
memset(voicename, 0, sizeof(voicename));
memset(vn, 0, sizeof(vn));
Serial.println(F("+==========================================================================================================+"));
for (int8_t i = 5; i >= 0; --i)
{
@ -1811,8 +1814,8 @@ void show_patch(uint8_t instance_id)
Serial.print(F(" | "));
SerialPrintFormatInt3(MicroDexed[instance_id]->data[DEXED_VOICE_OFFSET + DEXED_LFO_PITCH_MOD_SENS]);
Serial.print(F(" | "));
strncpy(voicename, (char *)&MicroDexed[instance_id]->data[DEXED_VOICE_OFFSET + DEXED_NAME], sizeof(voicename) - 1);
Serial.print(voicename);
strncpy(vn, (char *)&MicroDexed[instance_id]->data[DEXED_VOICE_OFFSET + DEXED_NAME], VOICE_NAME_LEN - 1);
Serial.print(vn);
Serial.println(F(" |"));
Serial.println(F("+=========+=========+=========+=========+==========+==========+=========+==================================+"));
Serial.println(F("+==========================================================================================================+"));

@ -626,7 +626,7 @@ void Dexed::setPBController(uint8_t pb_range, uint8_t pb_step)
controllers.values_[kControllerPitchRange] = pb_range;
controllers.values_[kControllerPitchStep] = pb_step;
//controllers.refresh();
controllers.refresh();
}
void Dexed::setMWController(uint8_t mw_range, uint8_t mw_assign)

@ -32,6 +32,7 @@
#include "dexed_sysex.h"
extern AudioSourceMicroDexed * MicroDexed[NUM_DEXED];
extern void show_patch(uint8_t instance_id);
void create_sysex_filename(uint8_t b, char* sysex_file_name, uint8_t instance_id)
{
@ -255,6 +256,9 @@ bool load_sysex(uint8_t b, uint8_t v, uint8_t instance_id)
Serial.println(F("]"));
#endif
bool ret = MicroDexed[instance_id]->loadPackedVoiceParameters(data);
#ifdef DEBUG
show_patch(instance_id);
#endif
configuration.dexed[instance_id].transpose = MicroDexed[instance_id]->data[DEXED_VOICE_OFFSET + DEXED_TRANSPOSE];
return (ret);
}

Loading…
Cancel
Save