MicroDexed is a compatible 6-operator-FM-synth based on the Teensy(-3.6/-4.0) Microcontroller. https://www.parasitstudio.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.8KB

  1. /*
  2. MicroDexed
  3. MicroDexed is a port of the Dexed sound engine
  4. (https://github.com/asb2m10/dexed) for the Teensy-3.5/3.6 with audio shield.
  5. Dexed ist heavily based on https://github.com/google/music-synthesizer-for-android
  6. (c)2018,2019 H. Wirtz <wirtz@parasitstudio.de>
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 3 of the License, or
  10. (at your option) any later version.
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU General Public License for more details.
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software Foundation,
  17. Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  18. */
  19. #include "config.h"
  20. #ifndef DEXED_SYSEX_H_INCLUDED
  21. #define DEXED_SYSEX_H_INCLUDED
  22. extern bool sd_card_available;
  23. extern Dexed* dexed;
  24. extern uint16_t render_time_max;
  25. extern uint8_t bank;
  26. extern uint8_t voice;
  27. extern char bank_name[BANK_NAME_LEN];
  28. extern char voice_name[VOICE_NAME_LEN];
  29. extern char bank_names[MAX_BANKS][BANK_NAME_LEN];
  30. extern char voice_names[MAX_VOICES][VOICE_NAME_LEN];
  31. extern uint8_t ui_state;
  32. extern uint8_t ui_main_state;
  33. void create_sysex_filename(uint8_t b, char* sysex_file_name);
  34. void strip_extension(char* s, char *target);
  35. bool get_voice_names_from_bank(uint8_t b);
  36. uint8_t get_bank_names(void);
  37. bool get_bank_voice_name(uint8_t b, uint8_t v);
  38. bool load_sysex(uint8_t b, uint8_t v);
  39. bool get_sysex_voice(File sysex, uint8_t voice_number, uint8_t* data);
  40. #endif