2012-10-11 18:59:09 +02:00
|
|
|
#include <inttypes.h>
|
2012-10-11 19:04:19 +02:00
|
|
|
#include <stdlib.h>
|
2012-10-11 23:05:59 +02:00
|
|
|
#include <avr/io.h>
|
2012-10-11 18:59:09 +02:00
|
|
|
|
|
|
|
#include "../lib/apps.h"
|
2012-10-11 23:05:59 +02:00
|
|
|
#include "../lib/bughal.h"
|
|
|
|
#include "../lib/util.h"
|
|
|
|
#include "../lib/music.h"
|
|
|
|
#include "../lib/synth.h"
|
2012-10-11 18:59:09 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* do crazy synthesizer mode
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
static void crazy_synth(void)
|
|
|
|
{
|
|
|
|
/* initialisation required */
|
|
|
|
if (mode_uninitialized) {
|
|
|
|
mode_uninitialized = false;
|
|
|
|
synth_init();
|
|
|
|
}
|
|
|
|
|
|
|
|
/*deinialisation required */
|
|
|
|
if (mode_last_tick) {
|
|
|
|
synth_deinit();
|
|
|
|
}
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
REGISTER(crazy_synth)
|
|
|
|
|