Mapping an OSC message to a specific scene

Ask a generic question about the usage of QLC+, not related to a particular operating system
Post Reply
padide
Posts: 5
Joined: Wed Feb 15, 2017 2:06 pm
Real Name:

And yet I've changed my mind, editing the XML profile directly is really easier.

So, I used Ruby for this, it was as simple as

Code: Select all

gem install digest-crc
and a 8 lines script

Code: Select all

require 'digest/crc16_qt'
dig = Digest::CRC16QT.new
dig << ARGV[0]
crc = dig.checksum
puts %[ <Channel Number="#{crc}">]
puts %[  <Name>#{ARGV[0]}</Name>]
puts %[  <Type>Button</Type>]
puts " </Channel>"
usable as ruby ./crc.rb /myoscmessage
janosvitok
Posts: 1273
Joined: Mon Apr 13, 2015 7:05 am
Location: Bratislava, Slovakia
Real Name: Jano Svitok
Contact:

Great!

I've added your code to the online documentation (https://github.com/mcallegari/qlcplus/c ... 2de0cb8e03).

Jano
User avatar
mcallegari
Posts: 4480
Joined: Sun Apr 12, 2015 9:09 am
Location: Italy
Real Name: Massimo Callegari
Contact:

I've implemented the channel calculation in the OSC plugin configuration dialog
Post Reply