Browse Source

cmDspPgm.c : Updated cmDspSysPgm_Test_Midi with hardcoded OSX device/port.

master
kevin 11 years ago
parent
commit
bb4aea8471
1 changed files with 15 additions and 1 deletions
  1. 15
    1
      dsp/cmDspPgm.c

+ 15
- 1
dsp/cmDspPgm.c View File

29
 {
29
 {
30
   cmDspRC_t rc = kOkDspRC;
30
   cmDspRC_t rc = kOkDspRC;
31
 
31
 
32
+  const cmChar_t* deviceName = "Fastlane";
33
+  const cmChar_t* portName   = "Fastlane MIDI A";
34
+
35
+#ifdef OS_OSX
36
+
37
+  deviceName = "MOTU - FastLane USB";
38
+  portName   = "Port A";
39
+
40
+  deviceName = "RME - Fireface UFX (23148636)";
41
+  portName   = "Port 2";
42
+
43
+#endif
44
+
32
   cmDspInst_t* sendBtn = cmDspSysAllocInst( h,"Button", "Send",    2, kButtonDuiId, 0.0 );
45
   cmDspInst_t* sendBtn = cmDspSysAllocInst( h,"Button", "Send",    2, kButtonDuiId, 0.0 );
33
   cmDspInst_t* status  = cmDspSysAllocInst( h,"Scalar", "Status",  5, kNumberDuiId, 0.0,  127.0, 1.0,  144.0);
46
   cmDspInst_t* status  = cmDspSysAllocInst( h,"Scalar", "Status",  5, kNumberDuiId, 0.0,  127.0, 1.0,  144.0);
34
   cmDspInst_t* d0      = cmDspSysAllocInst( h,"Scalar", "D0",      5, kNumberDuiId, 0.0,  127.0, 1.0,  64.0);
47
   cmDspInst_t* d0      = cmDspSysAllocInst( h,"Scalar", "D0",      5, kNumberDuiId, 0.0,  127.0, 1.0,  64.0);
35
   cmDspInst_t* d1      = cmDspSysAllocInst( h,"Scalar", "D1",      5, kNumberDuiId, 0.0,  127.0, 1.0,  64.0);
48
   cmDspInst_t* d1      = cmDspSysAllocInst( h,"Scalar", "D1",      5, kNumberDuiId, 0.0,  127.0, 1.0,  64.0);
36
-  cmDspInst_t* midiOut = cmDspSysAllocInst( h,"MidiOut", NULL,     2, "Fastlane", "Fastlane MIDI A");
49
+  cmDspInst_t* midiOut = cmDspSysAllocInst( h,"MidiOut", NULL,     2, deviceName, portName);
50
+  
37
   cmDspInst_t* midiIn  = cmDspSysAllocInst( h,"MidiIn",  NULL,     0 );
51
   cmDspInst_t* midiIn  = cmDspSysAllocInst( h,"MidiIn",  NULL,     0 );
38
   cmDspInst_t* printer = cmDspSysAllocInst( h,"Printer", NULL,     1, ">" );
52
   cmDspInst_t* printer = cmDspSysAllocInst( h,"Printer", NULL,     1, ">" );
39
 
53
 

Loading…
Cancel
Save