I created a random running light with a script. Is it possible to know which channel was activated at the end?
I would like to start a show afterwards, depending on the end activated channel.
MfG Martin
Start a Show with a Random running Light
-
- Posts: 18
- Joined: Mon Aug 28, 2017 7:03 pm
- Location: Ruedenau
- Real Name: Martin Weling
yes,
my function I need is the following:
I have a 32 channel dimmer. Of these, 24 channels are in a sequence that is started by a script. When the script is finished one of 24 shows (light and audio) should be started. Best of course the show where the sequence stops.
Currently I have set the first 24 channels of the dimmer to LTP so that the last LED stays on for a while.
my function I need is the following:
I have a 32 channel dimmer. Of these, 24 channels are in a sequence that is started by a script. When the script is finished one of 24 shows (light and audio) should be started. Best of course the show where the sequence stops.
Currently I have set the first 24 channels of the dimmer to LTP so that the last LED stays on for a while.
Raspberry 3B, QLC+ 4.11.1, BitWizard DMX interface
- GGGss
- Posts: 3145
- Joined: Mon Sep 12, 2016 7:15 pm
- Location: Belgium
- Real Name: Fredje Gallon
I don't understand this ... show vs sequence
You have 24 channels and 24 shows - with your script you fire something and now you want that at the end of the script it starts something else?
Well have the script to fire that something else ...
If you want to keep track of which show is active: use a solo frame with 24 buttons in it.
All electric machines work on smoke... when the smoke escapes... they don't work anymore
-
- Posts: 18
- Joined: Mon Aug 28, 2017 7:03 pm
- Location: Ruedenau
- Real Name: Martin Weling
Possibly i expressed myself wrong ...
Here my request:
I connected 24 LEDs to a 24-channel dimmer. These 24 Led´s are built into a shelf.
On the shelf over the LED´s are 24 bottles of Wiskey. For each of these bottles there is an audio description (manufacturer, flavor, taste ...).
With a switch on the VC i would like to trigger the following:
All 24 LEDs should flash briefly in random order. Then, if possible, start the audio description of the last selected bottle and light up the LED.
When the description is ready after a certain time the LED will be fade again.
My English is not the best, so I use Google for what's not always good over ...
Here my request:
I connected 24 LEDs to a 24-channel dimmer. These 24 Led´s are built into a shelf.
On the shelf over the LED´s are 24 bottles of Wiskey. For each of these bottles there is an audio description (manufacturer, flavor, taste ...).
With a switch on the VC i would like to trigger the following:
All 24 LEDs should flash briefly in random order. Then, if possible, start the audio description of the last selected bottle and light up the LED.
When the description is ready after a certain time the LED will be fade again.
My English is not the best, so I use Google for what's not always good over ...
Raspberry 3B, QLC+ 4.11.1, BitWizard DMX interface
- GGGss
- Posts: 3145
- Joined: Mon Sep 12, 2016 7:15 pm
- Location: Belgium
- Real Name: Fredje Gallon
Now we are getting somewhere
Thanks for the puzzle
After 2 hours trying ... this will get rather complex - since you are dealing with pulses and you want to track the random pixels - and even then ... when a bottle is taken everything has to be reset and audio has to be played ... after audio the random sequence has to start again.
I'm afraid you need more logical power to do it right ...
My solution would have 48 feedback channels + reset, randomise, off and on statuses and the more...
I suggest you look at some domotica software ... I warmly suggest IP-symcon (it supports DMX -
but hey you were on Pi right?
All of the above has no meaning then
Thanks for the puzzle
After 2 hours trying ... this will get rather complex - since you are dealing with pulses and you want to track the random pixels - and even then ... when a bottle is taken everything has to be reset and audio has to be played ... after audio the random sequence has to start again.
I'm afraid you need more logical power to do it right ...
My solution would have 48 feedback channels + reset, randomise, off and on statuses and the more...
I suggest you look at some domotica software ... I warmly suggest IP-symcon (it supports DMX -
but hey you were on Pi right?
All of the above has no meaning then
All electric machines work on smoke... when the smoke escapes... they don't work anymore
-
- Posts: 243
- Joined: Mon Apr 20, 2015 5:07 am
- Real Name: Mark Lohrey
HI Martin,
To get the effect you want, the simplest way I can think of, is to add the 'final light' to the start of your show.
It is possible to randomise the order in which shows play as well. You just have to be careful with the order in which you create them so that the IDs are sequential.
Cheers
Mark
To get the effect you want, the simplest way I can think of, is to add the 'final light' to the start of your show.
It is possible to randomise the order in which shows play as well. You just have to be careful with the order in which you create them so that the IDs are sequential.
Cheers
Mark
-
- Posts: 18
- Joined: Mon Aug 28, 2017 7:03 pm
- Location: Ruedenau
- Real Name: Martin Weling
Hi Fredje,GGGss wrote: ↑Sat Jun 16, 2018 12:58 pm Now we are getting somewhere
Thanks for the puzzle
After 2 hours trying ... this will get rather complex - since you are dealing with pulses and you want to track the random pixels - and even then ... when a bottle is taken everything has to be reset and audio has to be played ... after audio the random sequence has to start again.
I'm afraid you need more logical power to do it right ...
My solution would have 48 feedback channels + reset, randomise, off and on statuses and the more...
I suggest you look at some domotica software ... I warmly suggest IP-symcon (it supports DMX -
but hey you were on Pi right?
All of the above has no meaning then
Thank you for your attempts to solve my problem, yes it is a PI.
Raspberry 3B, QLC+ 4.11.1, BitWizard DMX interface
-
- Posts: 18
- Joined: Mon Aug 28, 2017 7:03 pm
- Location: Ruedenau
- Real Name: Martin Weling
-
- Posts: 243
- Joined: Mon Apr 20, 2015 5:07 am
- Real Name: Mark Lohrey
So create 24 shows
Create them order so they have sequential IDs.
At the beginning of the show, add the light you want on the correct Whiskey Bottle and then to add the audio etc.
Run your random 24 LED sequence for whatever time you plan.
Then when it finishes
Run a random selection of the shows you created.
Because you have put the LED on the bottle at the start of the show it will appear to be the last light in your random LED sequence.
That way you don't need to know the last light in the sequence as it will be the first light of your whiskey bottle show.
If you care to upload your workspace, I can make a sample for you.
Cheers
Mark
Create them order so they have sequential IDs.
At the beginning of the show, add the light you want on the correct Whiskey Bottle and then to add the audio etc.
Run your random 24 LED sequence for whatever time you plan.
Then when it finishes
Run a random selection of the shows you created.
Because you have put the LED on the bottle at the start of the show it will appear to be the last light in your random LED sequence.
That way you don't need to know the last light in the sequence as it will be the first light of your whiskey bottle show.
If you care to upload your workspace, I can make a sample for you.
Cheers
Mark
-
- Posts: 18
- Joined: Mon Aug 28, 2017 7:03 pm
- Location: Ruedenau
- Real Name: Martin Weling
Hi Mark,
here is my "Project".
I send you a PM
here is my "Project".
I send you a PM
- Attachments
-
- Project.qxw
- (49.1 KiB) Downloaded 187 times
Raspberry 3B, QLC+ 4.11.1, BitWizard DMX interface
-
- Posts: 243
- Joined: Mon Apr 20, 2015 5:07 am
- Real Name: Mark Lohrey
Hi Martin,
Thanks for posting your workspace.
I think I know what you have done. Your 'alle flaschen' sequence is set to play each step of the sequence randomly and when run via the script for a random length of time, it will eventually stop somewhere between 3 and 15s.
You then want the last light that is on to correspond to a whiskey bottle.
I am not sure what you wanted to do with the last light? It looks like you want it to go out and then fade back on? Is that correct?
I will have a go at something for you.
Cheers
mark
Thanks for posting your workspace.
I think I know what you have done. Your 'alle flaschen' sequence is set to play each step of the sequence randomly and when run via the script for a random length of time, it will eventually stop somewhere between 3 and 15s.
You then want the last light that is on to correspond to a whiskey bottle.
I am not sure what you wanted to do with the last light? It looks like you want it to go out and then fade back on? Is that correct?
I will have a go at something for you.
Cheers
mark
-
- Posts: 18
- Joined: Mon Aug 28, 2017 7:03 pm
- Location: Ruedenau
- Real Name: Martin Weling
At the moment the LED goes out after 200ms.
My wish would be that the last LED goes not off and the right show starts.
If the last LED is LED 01, then the show "01 - Laphroaig PX" should start.
If the last LED is LED 12, then the show "12 - Glenfiddich 12 years" should start.
I hope you can understand what i mean...
Raspberry 3B, QLC+ 4.11.1, BitWizard DMX interface
-
- Posts: 243
- Joined: Mon Apr 20, 2015 5:07 am
- Real Name: Mark Lohrey
Hi Martin,
I am still working on this puzzle when I get time.
I thought I was going to be able to use startfunction:random(2,6) // Pick a random function but it appears to do nothing. I have just checked the forum and this was discussed some time ago and is still an issue.
The other issue associated with this is timing. It seems that scripts can start a function but don't it doesn't let the function run to completion. This means that a wait time needs to be specified. Because all your audio files run for different lengths this make it difficult to get the timing correct.
I will explore some other ideas I have and let you know how I go.
Cheers
Mark
I am still working on this puzzle when I get time.
I thought I was going to be able to use startfunction:random(2,6) // Pick a random function but it appears to do nothing. I have just checked the forum and this was discussed some time ago and is still an issue.
The other issue associated with this is timing. It seems that scripts can start a function but don't it doesn't let the function run to completion. This means that a wait time needs to be specified. Because all your audio files run for different lengths this make it difficult to get the timing correct.
I will explore some other ideas I have and let you know how I go.
Cheers
Mark
-
- Posts: 18
- Joined: Mon Aug 28, 2017 7:03 pm
- Location: Ruedenau
- Real Name: Martin Weling
Hi Mark,
thank you for your help. That does not have to be solved in the near future. The other functions are all executable. Possibly says Massimo something to
thank you for your help. That does not have to be solved in the near future. The other functions are all executable. Possibly says Massimo something to
Raspberry 3B, QLC+ 4.11.1, BitWizard DMX interface