|
|
|
@ -28,10 +28,25 @@ |
|
|
|
|
#include <Wire.h> |
|
|
|
|
#include <SD.h> |
|
|
|
|
#include <ArduinoJson.h> |
|
|
|
|
#include <TeensyTimerTool.h> |
|
|
|
|
using namespace TeensyTimerTool; |
|
|
|
|
#include "synth_dexed.h" |
|
|
|
|
#include "dexed_sd.h" |
|
|
|
|
#include "TeensyTimerTool.h" |
|
|
|
|
using namespace TeensyTimerTool; |
|
|
|
|
|
|
|
|
|
// Bad hack!!!
|
|
|
|
|
typedef struct drum_config_s { |
|
|
|
|
uint8_t drum_class; // Type of drum
|
|
|
|
|
uint8_t midinote; // Triggered by note
|
|
|
|
|
char name[DRUM_NAME_LEN]; |
|
|
|
|
const uint8_t* drum_data; |
|
|
|
|
char shortname[2]; // 1 char name for sequencer
|
|
|
|
|
uint32_t len; // number of elements in drum_data
|
|
|
|
|
float32_t pitch; //
|
|
|
|
|
float32_t pan; // Panorama (-1.0 - +1.0)
|
|
|
|
|
float32_t vol_max; // max. Volume (0.0 - 1.0)
|
|
|
|
|
float32_t vol_min; // min. Volume (0.0 - 1.0, should be <= vol_max)
|
|
|
|
|
float32_t reverb_send; // how much signal to send to the reverb (0.0 - 1.0)
|
|
|
|
|
} drum_config_t; |
|
|
|
|
|
|
|
|
|
extern void init_MIDI_send_CC(void); |
|
|
|
|
extern void check_configuration_dexed(uint8_t instance_id); |
|
|
|
@ -62,19 +77,6 @@ extern uint8_t seq_chord_dexed_inst; |
|
|
|
|
extern uint8_t seq_inst_dexed[4]; |
|
|
|
|
extern PeriodicTimer timer1; |
|
|
|
|
extern float midi_volume_transform(uint8_t midi_amp); |
|
|
|
|
|
|
|
|
|
typedef struct drum_config_s { |
|
|
|
|
uint8_t drum_class; // Type of drum
|
|
|
|
|
uint8_t midinote; // Triggered by note
|
|
|
|
|
char name[DRUM_NAME_LEN]; |
|
|
|
|
const unsigned int* drum_data; |
|
|
|
|
char shortname[2]; // 1 char name for sequencer
|
|
|
|
|
float32_t pan; // Panorama (-1.0 - +1.0)
|
|
|
|
|
float32_t vol_max; // max. Volume (0.0 - 1.0)
|
|
|
|
|
float32_t vol_min; // min. Volume (0.0 - 1.0, should be <= vol_max)
|
|
|
|
|
float32_t reverb_send; // how much signal to send to the reverb (0.0 - 1.0)
|
|
|
|
|
} drum_config_t; |
|
|
|
|
|
|
|
|
|
extern drum_config_t drum_config[NUM_DRUMSET_CONFIG]; |
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
|