From bb4aea84712453651469234f80e0a62d233041d1 Mon Sep 17 00:00:00 2001 From: kevin Date: Sun, 29 Sep 2013 18:47:22 -0700 Subject: [PATCH] cmDspPgm.c : Updated cmDspSysPgm_Test_Midi with hardcoded OSX device/port. --- dsp/cmDspPgm.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/dsp/cmDspPgm.c b/dsp/cmDspPgm.c index 88946db..07cb6d4 100644 --- a/dsp/cmDspPgm.c +++ b/dsp/cmDspPgm.c @@ -29,11 +29,25 @@ cmDspRC_t _cmDspSysPgm_Test_Midi( cmDspSysH_t h, void** userPtrPtr ) { cmDspRC_t rc = kOkDspRC; + const cmChar_t* deviceName = "Fastlane"; + const cmChar_t* portName = "Fastlane MIDI A"; + +#ifdef OS_OSX + + deviceName = "MOTU - FastLane USB"; + portName = "Port A"; + + deviceName = "RME - Fireface UFX (23148636)"; + portName = "Port 2"; + +#endif + cmDspInst_t* sendBtn = cmDspSysAllocInst( h,"Button", "Send", 2, kButtonDuiId, 0.0 ); cmDspInst_t* status = cmDspSysAllocInst( h,"Scalar", "Status", 5, kNumberDuiId, 0.0, 127.0, 1.0, 144.0); cmDspInst_t* d0 = cmDspSysAllocInst( h,"Scalar", "D0", 5, kNumberDuiId, 0.0, 127.0, 1.0, 64.0); cmDspInst_t* d1 = cmDspSysAllocInst( h,"Scalar", "D1", 5, kNumberDuiId, 0.0, 127.0, 1.0, 64.0); - cmDspInst_t* midiOut = cmDspSysAllocInst( h,"MidiOut", NULL, 2, "Fastlane", "Fastlane MIDI A"); + cmDspInst_t* midiOut = cmDspSysAllocInst( h,"MidiOut", NULL, 2, deviceName, portName); + cmDspInst_t* midiIn = cmDspSysAllocInst( h,"MidiIn", NULL, 0 ); cmDspInst_t* printer = cmDspSysAllocInst( h,"Printer", NULL, 1, ">" );