From the original SynthMaker forum (2004–2014), with its members’ names and dates.
trogluddite ·
Following Power Chord's recent request for help with checksum calculation, here are a some little SysEx helper modules...
There are checksum generators for a couple of the most common methods - Roland ( 128 - SUM % 128 ) and Parity ( XOR all values together ).
The inputs and outputs are all Hex strings - except that the outputs will send the string 'ERROR' if the input is not valid (it checks that the string is pairs of hex digits, and that values are in the range 0x00-0x7F).
There's also a little module to separate a 14bit (0 to 16383 range) integer into 7bit MSB and LSB - also handy if you use the MIDI 'Fine' continuous controllers.
trogluddite ·
Checksum generators upgraded to version 2 (download in top post).
No change in function - The body of the checksum loop is a little more efficient, as checking for a valid SysEx string is now done entirely with the custom parser (hooray, I'm finally getting the hang of it!) inside the initialise module.
If there are out of range numbers in the string, the loop doesn't even have to run - and if it does run, it doesn't have to look for invalid numbers on every iteration.
sunsynth ·
Awesome work trog... 😀
Like the MSB/LSB part and especially the custom parser thingy (never get it 😊 )
keep on doing!
Walter
trogluddite ·
sunsynth wrote: custom parser thingy (never get it 😊 )
Well, to be honest, lots of trial and error - I don't think I could make one 'to order'. Maybe this will help a little...
sunsynth ·
That looks like even i can understand it 😉
cheers
DigitalWhiteByte ·
trogluddite wrote:
sunsynth wrote: custom parser thingy (never get it 😊 )
Well, to be honest, lots of trial and error - I don't think I could make one 'to order'. Maybe this will help a little...
Taking the results directly from the parse,
so you can eliminate the loop to extract characters from hex string.
To get the parameters read in sequence you can use the "Rule Action".
As in this pseudo optimization.
trogluddite ·
Wow, that's really nice DWB. 🙂
Now I see you can get many triggers from the parser 'extract bits' blocks I have a much better understandng.
Many thanks.
sunsynth ·
Yeah - well done...
Thanks Andrea!
DigitalWhiteByte ·
mmm...
Andrea? 😝
PARSE - ERROR 🙂
hehehe
sunsynth ·
Sorry - getting old... 😊 😈
...but i dragged it into the correct Toolbox group 😉
Neptune ·
Great work guys! But btw. where are those Rule modules coming from?
DigitalWhiteByte ·
Neptune wrote: Great work guys! But btw. where are those Rule modules coming from?
MENU->OPTION->[TAB]ADVANCED-> Checkmark [on] R&D
... and voilà you can find it in Group Other 😉
Wrote something here? To have a post removed or your name hidden, write to [email protected].