 
 #define LOGGING_COMPONENT "Esp32Application"
 
-static LoggingTask* gs_pLoggingTask(nullptr);
+static LoggingTask* gs_loggingTask(nullptr);
 
-static ArduinoMidiInput* gs_pMidiInput(nullptr);
-static MidiTask* gs_pMidiTask(nullptr);
+static ArduinoMidiInput* gs_midiInput(nullptr);
+static MidiTask* gs_midiTask(nullptr);
 
-static RgbFunctionFactory* gs_pRgbFunctionFactory(nullptr);
-static ProcessingBlockFactory* gs_pProcessingBlockFactory(nullptr);
-static Concert* gs_pConcert(nullptr);
+static RgbFunctionFactory* gs_rgbFunctionFactory(nullptr);
+static ProcessingBlockFactory* gs_processingBlockFactory(nullptr);
+static Concert* gs_concert(nullptr);
 
 static constexpr uint32_t c_defaultStackSize(4096);
 

    // Initialize MIDI, baud rate is 31.25k
    Serial2.begin(31250);

    gs_pMidiInput = new ArduinoMidiInput(Serial2);
    gs_pMidiTask = new MidiTask(*gs_pMidiInput,
                                c_defaultStackSize,
                                PRIORITY_CRITICAL);

    // Initialize concert dependencies.
    gs_pRgbFunctionFactory = new RgbFunctionFactory;

    Processing::TNoteToLightMap noteToLightMap;
    uint8_t lightNumber = 0;

        ++lightNumber;
    }

    gs_processingBlockFactory = new ProcessingBlockFactory(*gs_midiInput,
                                                           *gs_rgbFunctionFactory);

    gs_concert = new Concert(*gs_midiInput,
                             *gs_processingBlockFactory);

    // TODO read concert from storage
    // For now, add something to test with.
    gs_concert->setNoteToLightMap(noteToLightMap);
    IPatch* patch(gs_concert->getPatch(gs_concert->addPatch()));
    patch->setName("whiteOnBlue");
    patch->activate();

    // Add constant blue background
    EqualRangeRgbSource* src1(new EqualRangeRgbSource);
    src1->setColor(Processing::TRgb({0, 0, 255}));
    patch->getProcessingChain().insertBlock(src1);

    // Full white for any sounding key
    NoteRgbSource* src2(new NoteRgbSource(*gs_midiInput,
                                          *gs_rgbFunctionFactory));
    LinearRgbFunction* rgbFunction(new LinearRgbFunction({255, 0}, {255, 0}, {255, 0}));
    src2->setRgbFunction(rgbFunction);
    src2->setUsingPedal(true);
    patch->getProcessingChain().insertBlock(src2);

    LOG_INFO("initialization done");
}
