 #include <SensorizerServer.h>    
 
 
-SensorizerServer server;
+SensorizerServer* server;
 
 
 #define TOTAL_ANALOG_PINS 6


#if ENABLE_LOOPER  
  // loop that shit! 
  server.tick();
#endif
  
#if ENABLE_TEST



void setupServer() {
    server = new SensorizerServer();
    server->init();

    // load good drums preset to start
    server->loadNotes( NOTE_PRESETS_DRUMS[0] );

    // must wait a second for the MIDI device to boot up before it accepts our messages
    //delay(1000);

    server->midiDevice->setBank(MIDI_CHANNEL, 0x78); //DRUMS
}


