r/xlights • • 7d ago

Help Light up random model of group based on timing track marks and fade out?

I find myself constantly missing what I assume to be the same effect in various configurations and I can't seem to create this effect. Maybe I'm missing something? I'm getting to the point were I consider compiling my own Xlights.

What I want all the time is 'dancing lights' based on key notes in my music. E.g. I have a Christmas song that has a piano playing a very distinct melody and I want a random prop to light up on every note, but that's obviously not exactly every beat. So my idea was to create a timing track with those key notes that I care about, then have some sort of effect light up a group as "Model as Pixel" randomly

I want the prop to light up on every mark and then, depending on config, either fade out with a constant time or until the next mark on the timing track.

I would envision something like single strand effect that I can give a timing track and configure as Model As Pixel so an entire prop lights up. But I want it to be random, not in a concrete order.

Is this really not achievable? Am I missing something really obvious?

2 Upvotes

5 comments sorted by

4

u/HugsAllCats 7d ago edited 7d ago
  1. Make a timing track
  2. Make a Group that includes all the props you want to do this thing
  3. Add a VU Meter effect to the group for whatever duration
  4. Set the vu meter 'Type' to 'Timing Event Random Bars'
  5. Set teh vu meter 'Timing Track' to your timing track
  6. Set the vu meter 'Bars' to a large number - setting it to 1 just makes it flash back and forth, setting it to a big number appears to make it pick a random prop from the group each time.
  7. In the 'Color' paler click the little curly arrow next to 'Brightness'
  8. Select 'Timing Track Fade Proportional' and set the timing track.
  9. Set the low/high/proportion to 0/400/100 (the min and max on those options)

There's probably a fair amount of fidgeting you'll need to do to get the fades working right - the audio track I was using had the notes going too fast to really notice.

1

u/JamesonG42 7d ago

Yeah, VU Meter is the way to go here. If you want to get really fancy with it you can add layers and use the VU Meter as a mask, then use something colorful like Butterfly or a Shader below that.

To light single individual props with the VU Meter you'll want to set Bars the same as the number of props in the group. Lighting multiple at once that aren't adjacent in the group list requires layers to stack multiple VU Meter effects. Doing masks with that becomes a bit more work as you need to play with Canvas.

0

u/KinzuaKid 7d ago

The thing you're missing I think is that xLights is a SEQUENCER. Literally. You define the sequence of events that happens, in what order, for each item in your collection of models and groups. Once the sequence is written, there is no such thing as "random". It's predetermined in the process of building the sequence. In other words, everything is in a concrete order, always. So no, you can't have random when it's playing back the show.

If we want to get close: Unless the song you're sequencing to is a 47-minute prog rock opus and making the lights look different every time you play it is the most important thing, you've already done 90% of the work- You built a timing track. Select the Master View on the layout tab (or create a new view with all the props you want to "randomly" use for this), make the timing track active by selecting its radio button, then make sure "Paste By Cell" is active. Create your first effect on your first model. Copy. Paste to a new one. Repeat until you have enough effects to select a handful at once and paste them all into a different section of the list. Repeat until finished. This is as close to "random" as you'll get.

I use this technique all the time with big groups of models I want the same effect to "bounce around" on.

1

u/virpio2020 7d ago

I should have been more clear... I get the sequencer part on the rendered sequence. And even that most effects use a consistent seed so there is no real randomness. But I basically want to not do what you described. It results in dozens of short effects, which makes it extremely annoying if you then want to later change something with those effects.

My Codex is currently trying to figure this out with shader effects and it looks promising so far. I still feel like there has to be a better way to do that.

1

u/KinzuaKid 7d ago

Apologies, I misunderstood what you meant by this: 

“  I want the prop to light up on every mark and then, depending on config, either fade out with a constant time or until the next mark on the timing track.”