Home › Forums › General › Using Ctrlr › setModulatorValue is sending to MIDI-Out
- This topic has 9 replies, 3 voices, and was last updated 7 years, 8 months ago by
Possemo.
-
AuthorPosts
-
June 16, 2015 at 5:36 pm #50519
Hi, it would be nice if someone could help me.
My problem: Some Modulators are sending the values they receive via setModulatorValue, setValue or setValueMapped to MIDI-Out. They are identical to the ones that do not send unwanted data to MIDI-Out. One thing that I can say: they are all UiCombos. But as said, there are some UiCombos that are behaving correct.
I tried many things to get rid of this, but nothing helped.
So can someone tell me what’s wrong with this line?
panel:getModulatorByName("UpperKeyAssign"):setModulatorValue (patchDump:getByte(38),true,false,true)
Or here another one:
pmod=panel:getModulatorByName("BendRng") Lo=patchDump:getByte(30) Hi=patchDump:getByte(59) if Lo==0x00 and Hi==0x00 then pv=0 elseif Lo==0x20 and Hi==0x00 then pv=32 elseif Lo==0x40 and Hi==0x00 then pv=64 elseif Lo==0x60 and Hi==0x00 then pv=96 elseif Hi==0x01 then pv=127 end pmod:setValueMapped(pv,false,true)
-
This topic was modified 8 years, 3 months ago by
Possemo.
June 16, 2015 at 6:37 pm #50523Yes, this is a known bug, combos ignore the “false” setting.
The ones you see are behaving correctly, it’s very possible that the value they receive is the same value they had previously, that’s why they don’t send any new value.
What I do is to use panel property “No MIDI output from panel” when I assign values to modulators after receiving a dump.
June 17, 2015 at 9:32 am #50552Thanks dasfaker,
I just wantet to add that every uiCombo has the bug, as you say – the ones that do not send data receive the same value as they already have (first switch: false). “No MIDI output from panel” is a workaround for this – thanks. I am thinking about changing a few uiCombos to uiListBox. I like the ListBox as it shows you all possible settings of a prameter at once. But yea of course I needs more space on the screen.
September 17, 2015 at 7:21 am #58111I tried to set panel property “No MIDI output from panel” before changing modulator’s value but some uiCombos still send midi out messages due delay processing I suppose. I think there is two solutions of that issue. The fist one is using appropriate timer before restoring panel property. The second is setting uiCombo property “modulatorMute” before changing values and restoring after. Any idea?
September 18, 2015 at 3:23 am #58173I was not into Ctrlr for some time. I changed the uiCombos to uiListbox’es but I am still interested in a solution for uiCombos. May I ask – how do you set the switch “No MIDI output from panel” with LUA?
September 18, 2015 at 6:30 am #58174Somehow like that:
panel:setPropertyString(“panelMidiPauseOut”,”1″)
I tried used to panel:setPropertyInt(“panelMidiPauseOut”,1) but it didn’t work for me.
There is another way. It’s possible to midi mute uiCombor for a while.September 18, 2015 at 12:08 pm #58186Ah I see. There was a trhead about this:
http://ctrlr.org/forums/topic/disable_midi_device_lua/Got to see how dasfaker did it. His Virus panels look like serious sh*t. A pity I do not have a Virus.
Thanks bloodykot. Will keep you informed if I find out something new.
Edit:
So far that’s all I found in dasfakers Viruspanel:
panel:setPropertyString(“panelMidiInputFromHost”,”1″)
panel:setPropertyString(“panelMidiOutputToHost”,”1″)
panel:setPropertyString(“panelMidiThruH2DChannelize”,”1″)
panel:setPropertyString(“panelMidiThruD2HChannelize”,”1″)
panel:setPropertyString(“panelMidiThruH2D”,”1″)
It does not seem he used:
panel:setPropertyInt(“panelMidiPauseOut”,1)
Will look some further.-
This reply was modified 8 years ago by
Possemo.
September 22, 2015 at 9:52 am #58444I’m testing now solution like that:
panel:getModulatorByName(“osc1wave”):setPropertyString(“componentDisabled”,”1″)
panel:getModulatorByName(“osc1wave”):setModulatorValue(programData:getByte(31), true, false, true)
panel:getModulatorByName(“osc1wave”):setPropertyString(“componentDisabled”,”0″)September 22, 2015 at 12:59 pm #58454Great, looks like a valid path. And as it just concerns uiCombos it’s not too much work. Unfortunately I don’t have much time at the moment but I definitely want to test this asap.
January 10, 2016 at 11:36 pm #67969Hi bloodykot,
Life has been hard – I had so much other things to do. But now I finally managed to test this out.
With the newest Ctrlr-Build (5.3.183) this issue got even more important. Maybe it is me that broke something in my panel, don’t know. Anyway – the “false” parameter on the “setModulatorValue” command does not seem to work anymore.But hey, this works like a charm:
panel:setPropertyString(“panelMidiPauseOut”,”1″)
after Sysex-Messages reenable:
panel:setPropertyString(“panelMidiPauseOut”,”0″)
That’s it. Thanks bloodykot
-
This topic was modified 8 years, 3 months ago by
-
AuthorPosts
- The forum ‘Using Ctrlr’ is closed to new topics and replies.