|
|
@ -32,15 +32,15 @@ |
|
|
|
// ATTENTION! For better latency you have to redefine AUDIO_BLOCK_SAMPLES from
|
|
|
|
// ATTENTION! For better latency you have to redefine AUDIO_BLOCK_SAMPLES from
|
|
|
|
// 128 to 64 in <ARDUINO-IDE-DIR>/cores/teensy3/AudioStream.h
|
|
|
|
// 128 to 64 in <ARDUINO-IDE-DIR>/cores/teensy3/AudioStream.h
|
|
|
|
|
|
|
|
|
|
|
|
// If you want to test the system with Linux and withous any keyboard and/or audio equipment, you can do the following:
|
|
|
|
// If you want to test the system with Linux and without any keyboard and/or audio equipment, you can do the following:
|
|
|
|
// 1. In Arduino-IDE enable "Tools->USB-Type->Serial + MIDI + Audio"
|
|
|
|
// 1. In Arduino-IDE enable "Tools->USB-Type->Serial + MIDI + Audio"
|
|
|
|
// 2. Build the firmware with "MIDI_DEVICE_USB" enabled in config.h.
|
|
|
|
// 2. Build the firmware with "MIDI_DEVICE_USB" enabled in config.h.
|
|
|
|
// 3. Afterconnecting to a Linux system there should be a MIDI an audio device available that is called "MicroMDexed", so you can start the following:
|
|
|
|
// 3. Afterconnecting to a Linux system there should be a MIDI an audio device available that is called "MicroMDexed", so you can start the following:
|
|
|
|
// $ aplaymidi -p 20:0 <MIDI-File> # e.g. test.mid
|
|
|
|
// $ aplaymidi -p 20:0 <MIDI-File> # e.g. test.mid
|
|
|
|
// $ arecord -f cd -Dhw:1,0 /tmp/bla.wav
|
|
|
|
// $ arecord -f cd -Dhw:1,0 /tmp/<AUDIO_FILE_NAME>.wav
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#define VERSION "0.9.8" |
|
|
|
#define VERSION "0.9.9" |
|
|
|
|
|
|
|
|
|
|
|
//*************************************************************************************************
|
|
|
|
//*************************************************************************************************
|
|
|
|
//* DEVICE SETTINGS
|
|
|
|
//* DEVICE SETTINGS
|
|
|
@ -61,10 +61,10 @@ |
|
|
|
#define AUDIO_DEVICE_USB |
|
|
|
#define AUDIO_DEVICE_USB |
|
|
|
//#define TEENSY_DAC
|
|
|
|
//#define TEENSY_DAC
|
|
|
|
//#define TEENSY_DAC_SYMMETRIC
|
|
|
|
//#define TEENSY_DAC_SYMMETRIC
|
|
|
|
//#define TEENSY_AUDIO_BOARD
|
|
|
|
#define TEENSY_AUDIO_BOARD |
|
|
|
//#define I2S_AUDIO_ONLY
|
|
|
|
//#define I2S_AUDIO_ONLY
|
|
|
|
//#define TGA_AUDIO_BOARD
|
|
|
|
//#define TGA_AUDIO_BOARD
|
|
|
|
#define PT8211_AUDIO |
|
|
|
//#define PT8211_AUDIO
|
|
|
|
|
|
|
|
|
|
|
|
//*************************************************************************************************
|
|
|
|
//*************************************************************************************************
|
|
|
|
//* MIDI SOFTWARE SETTINGS
|
|
|
|
//* MIDI SOFTWARE SETTINGS
|
|
|
@ -84,6 +84,7 @@ |
|
|
|
#define MOD_WAVEFORM WAVEFORM_TRIANGLE // WAVEFORM_SINE WAVEFORM_TRIANGLE WAVEFORM_SAWTOOTH WAVEFORM_SAWTOOTH_REVERSE
|
|
|
|
#define MOD_WAVEFORM WAVEFORM_TRIANGLE // WAVEFORM_SINE WAVEFORM_TRIANGLE WAVEFORM_SAWTOOTH WAVEFORM_SAWTOOTH_REVERSE
|
|
|
|
#define MOD_FILTER_OUTPUT MOD_NO_FILTER_OUTPUT // MOD_LINKWITZ_RILEY_FILTER_OUTPUT MOD_BUTTERWORTH_FILTER_OUTPUT MOD_NO_FILTER_OUTPUT
|
|
|
|
#define MOD_FILTER_OUTPUT MOD_NO_FILTER_OUTPUT // MOD_LINKWITZ_RILEY_FILTER_OUTPUT MOD_BUTTERWORTH_FILTER_OUTPUT MOD_NO_FILTER_OUTPUT
|
|
|
|
#define MOD_FILTER_CUTOFF_HZ 3000 |
|
|
|
#define MOD_FILTER_CUTOFF_HZ 3000 |
|
|
|
|
|
|
|
// REVERB ENABLE/DISABLE
|
|
|
|
#define USE_REVERB 1 |
|
|
|
#define USE_REVERB 1 |
|
|
|
|
|
|
|
|
|
|
|
//*************************************************************************************************
|
|
|
|
//*************************************************************************************************
|
|
|
@ -148,7 +149,7 @@ |
|
|
|
//*************************************************************************************************
|
|
|
|
//*************************************************************************************************
|
|
|
|
//* DEBUG OUTPUT SETTINGS
|
|
|
|
//* DEBUG OUTPUT SETTINGS
|
|
|
|
//*************************************************************************************************
|
|
|
|
//*************************************************************************************************
|
|
|
|
#define DEBUG 1 |
|
|
|
//#define DEBUG 1
|
|
|
|
#define SERIAL_SPEED 230400 |
|
|
|
#define SERIAL_SPEED 230400 |
|
|
|
#define SHOW_XRUN 1 |
|
|
|
#define SHOW_XRUN 1 |
|
|
|
#define SHOW_CPU_LOAD_MSEC 5000 |
|
|
|
#define SHOW_CPU_LOAD_MSEC 5000 |
|
|
@ -229,12 +230,12 @@ enum { DEXED, CHORUS, DELAY, REVERB}; |
|
|
|
#define MIDI_DEVICE_USB_HOST 1 |
|
|
|
#define MIDI_DEVICE_USB_HOST 1 |
|
|
|
#if defined(USE_REVERB) |
|
|
|
#if defined(USE_REVERB) |
|
|
|
#if defined(DEBUG) |
|
|
|
#if defined(DEBUG) |
|
|
|
#define MAX_NOTES 10 |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
#define MAX_NOTES 11 |
|
|
|
#define MAX_NOTES 11 |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
#define MAX_NOTES 12 |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#else |
|
|
|
#else |
|
|
|
#define MAX_NOTES 14 |
|
|
|
#define MAX_NOTES 15 |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|