From f2bed900545d4a283168c01518b71ac8bd3a21dc Mon Sep 17 00:00:00 2001 From: kevin Date: Tue, 17 Dec 2013 08:56:50 -0500 Subject: [PATCH] CmDspPgm.c : Added individual printer outputs for each MIDI data element. --- dsp/cmDspPgm.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/dsp/cmDspPgm.c b/dsp/cmDspPgm.c index b235831..5b31c81 100644 --- a/dsp/cmDspPgm.c +++ b/dsp/cmDspPgm.c @@ -94,7 +94,10 @@ cmDspRC_t _cmDspSysPgm_Test_Midi( cmDspSysH_t h, void** userPtrPtr ) 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, ">" ); + //cmDspInst_t* printer = cmDspSysAllocInst( h,"Printer", NULL, 1, ">" ); + cmDspInst_t* prst = cmDspSysAllocInst( h,"Printer", NULL, 1, "st>" ); + cmDspInst_t* prd0 = cmDspSysAllocInst( h,"Printer", NULL, 1, "d0>" ); + cmDspInst_t* prd1 = cmDspSysAllocInst( h,"Printer", NULL, 1, "d1>" ); // check for allocation errors if((rc = cmDspSysLastRC(h)) != kOkDspRC ) @@ -108,10 +111,10 @@ cmDspRC_t _cmDspSysPgm_Test_Midi( cmDspSysH_t h, void** userPtrPtr ) cmDspSysInstallCb( h, d0, "val", midiOut, "d0", NULL); cmDspSysInstallCb( h, d1, "val", midiOut, "d1", NULL); - cmDspSysInstallCb( h, midiIn, "status", printer, "in", NULL); - cmDspSysInstallCb( h, midiIn, "d0", printer, "in", NULL); - cmDspSysInstallCb( h, midiIn, "d1", printer, "in", NULL); - cmDspSysInstallCb( h, midiIn, "smpidx", printer, "in", NULL); + cmDspSysInstallCb( h, midiIn, "status", prst, "in", NULL); + cmDspSysInstallCb( h, midiIn, "d0", prd0, "in", NULL); + cmDspSysInstallCb( h, midiIn, "d1", prd1, "in", NULL); + //cmDspSysInstallCb( h, midiIn, "smpidx", printer, "in", NULL); errLabel: return rc;