PDA

View Full Version : Multiple seq / trigger app for Halloween - dmx usb pro



kiwichristmas
01-30-2012, 04:23 AM
Hi,
Just seeing if anyone is interested in testing a program I've put together, (it is still in Beta phase)
basicly it can load up to 10 Vixen standard sequences (need to be 100ms) and assign a key on the
keyboard to each sequence. (no audio at the moment and timing is not perfect)

then when enabled the program will monitor the keyboard (even when the app does not have focus) and
detect the key presses, once detected any further repeated key presses are ignored until the seq has finished.
It will then take the time slice from all triggered sequences and merge them to a single sequence and output
this to the Enttec dmx usb pro (this is what I have).
Sequences do not need to be triggered at the same time, they run indepently i.e.
seq-1-(a)--010011000011000001
seq-2-(b)--------101001001001001100
output-----01001101001101001101100
anyone interested drop me a message and I will upload a copy

djulien
01-30-2012, 11:11 PM
A few questions ...


once detected any further repeated key presses are ignored until the seq has finished.

Do you mean that the keys must be pressed at exactly the same time to be merged, or it just removes duplicates?


It will then take the time slice from all triggered sequences and merge them to a single sequence and output
this to the Enttec dmx usb pro (this is what I have).
Sequences do not need to be triggered at the same time, they run indepently i.e.
seq-1-(a)--010011000011000001
seq-2-(b)--------101001001001001100
output-----01001101001101001101100

Is it a boolean OR, or do you use some kind of min or max function?

Does the program talk directly to the USB port, or does it go thru the Enttec Vixen plug-in (in which case this approach would work for any plug-ins)?

don

kiwichristmas
01-31-2012, 03:29 PM
Hi,
1st -I'll see if I can explain this better :), say 'a' on the keyboard is assigned to trigger seq1.
when 'a' is pressed seq1 starts being sent to the dmx usb pro, until seq1 has finished any further presses
of 'a' do nothing. once seq1 has finished then 'a' becomes available again to be triggered.

2nd- sorry I just used binary as an example. the sequence is as per vixex 0-254 (0-100%).
hopefully this makes more sense, say there are 4 sequences each triggered 1 time slice apart
at the moment the program takes the first event per channel in that time slice that is not 0 and
outputs that - this is what the output would look like


seq
a
123
0
0
0
0
0
142


seq
b

254
0
0
123
0
0


seq
c


198
0
0
254
0


seq
d



98
254
124
0


output

123
254
198
98
123
254
142



this program runs with out using vixen at all. all that is needed to begin with are the sequences created in vixen.
these are run through an application that extracts the event data and puts this into a plain file. this plain file is
read into the pc's memory when the standalone application is started.
the standalone program talks the the usb port

scubaspookf
01-31-2012, 04:40 PM
Seems better than what I did one year. I hooked a sensor to my left mouse button and placed the cursor on the play button in vixen. When the sensor was activated the left mouse button made contacted simulating you left clicking it and played my vixen routine with some of my props. Downside of it is if I bumped the mouse there was no telling what it was clicking on.

djulien
02-01-2012, 12:02 AM
seq
a
123
0
0
0
0
0
142


seq
b

254
0
0
123
0
0


seq
c


198
0
0
254
0


seq
d



98
254
124
0


output

123
254
198
98
123
254
142



Thanks for clarifying. So when there is more than one sequence with a non-0 in the same position, it looks like the sequence that started playing first is the one that is used, and it's not a Max function, correct?

don

kiwichristmas
02-01-2012, 05:20 PM
That is correct. I based this on the idea, that I'm using this for halloween and each trigger will be for a set prop or area so the
sequence will only have the events for that prop/area. therefore there should not be many (if any) overlap of events.

kiwichristmas
02-09-2012, 07:08 AM
post removed by author