SysEx Checksum

I all,

I would like to find a way to get the correct value for the checksum 3e in this example

F0 50 2C 04 00 11 00 10 20 00 00 01 xx xx 00 SUM F7

the checksum is the summation between (  ) so the sum of 14 bytes before the SUM starting at 50.

xx xx are 8 bit data

F0 ( 50 2C 04 00 11 00 10 20 00 00 01 00 00 00 ) 3e F7

50 + 2C + 04 + 00 + 11 + 00 + 10 + 20 + 00 + 00 + 01 + 00 + 00 + 00 =. 3E

If I use external 8-bit checksum calculator it works perfectly but I can’t find a way in CTRLR, any idea ?

In CTRLR The Zy calculation seems not to be the right solution because I need to include the 12 bytes before the calculation and if I use y with greater value than 9 the result is always 0.

Regards

 

 

uiCombo setModulatorValue is sending to MIDI-Out

Hello ctrlr universe!

this post relates to a question, that has bin posted a while ago here:

setModulatorValue is sending to MIDI-Out

I’m having the same problem with uiCombos (doesn’t happen with uiSliders) sending out MIDI, when beeing value set via LUA-script (using CTRLR standalone MAC 5.3.163).

While manually MIDI pausing the panel works (uiCombos don’t send out any MIDI) using the suggested:

disable during incoming sysex
panel:setPropertyString("panelMidiPauseOut","1")
after sysex messages reenable:
panel:setPropertyString("panelMidiPauseOut","0")

doesn’t work for me. It compiles fine and all but doesn’t mute those uiCombos.

It happens when ctrlr panel recieves sysex from the synth, containing a program. It does mute uiSliders, though.

Edit: The uiCombi is within a group panel, which itself resides in a tab pane.

Maybe this is a timing issue? Could I use simple while loops then?

Any help appreciated,

copes

Roland Aira TR-8 Rhythm Performer – “Midi Editor “

http://tb-8efxremote.jimdo.com/

The “TR-8 EFX.Remote” Midi -Editor for the Drum Synth Roland Aira TR-8 Rhythem Performer.
By using the Editor you can adjust the TR-8 Controller  and change them when you play in studio or live.

Features:
– Control the TR-8 from PC / MAC
– VST, AU and Standalone version
– Assign and record slider movements in a DAW like Ableton Live.
– Easy access to the Scatter type and Drum Kit
– Drum-Pads
– X-Y Pads for effective operation

Info and Dowload: http://tb-8efxremote.jimdo.com/

TR-8 EFX.Remote

Mouse cursor fix

This is a simple Lua method for panels that have a broken mouse cursor for some or all components.

The mouse cursor disappears when mouse is over it. Just paste this method to the console and run it (that means, paste this code, press enter, this will compile the code, then remove the input from the console and run the method by typing “fixMouseCursor()” and pressing enter)

function fixMouseCursor()
	-- Your method code here
	for i=0,panel:getNumModulators()-1 do

		m = panel:getModulatorByIndex(i)
		
		if m ~= nil then
			c = m:getComponent()

			if c ~= nil then
				c:setProperty("componentMouseCursor", 2,false)
			end

		end
	end
end
Ctrlr