Magic wrote:You can think of a trigger as a button press, where pressing the button down sends a 1, and releasing the button sends a 0. If I remember correctly, it is actually the release of the button which causes the trigger to activate.
Excellent, thanks for the clarification.
Magic wrote:If you are running at 60fps, then there would have to be a minimum delay of 16ms (1000/60) between those two messages. But it's probably safer to do a higher delay, especially on wi-fi (vs wired). It really depends on your network reliability. We never recommend using wi-fi for anything critical.
Yup! Definitely aware that running UDP on top of Wi-Fi (due to the nature of CSMA/CA networks) is fraught with peril. For my tests, everything is running through a wired, switched network.
Magic wrote:Bundles are not supported.
Thanks for the clarification. If there is no bundle support, it sure would be nice to have an atomic way of triggering these consecutive button press/depress reload events through one OSC packet.
Magic wrote:The problem with the filename thing is that reloading a file takes an indeterminate amount of time. Is there some other solution you can come up with, such as switching between modules?
I'm not 100% sure -- I'm still learning my way around. In my use case, I have software running which monitors what track a DJ is currently playing. As they transition to a new track, the track artwork and artist/song title information are written to the filesystem. When this transition happens, I also fire the reload events to Magic so the image and file modules can re-read their data. Because the file name of the track art and artist/track information re-use the same filenames, there are all sort of silly race conditions that can happen potentially.
I've been playing with the vinyl record spinning example visualizer -- I have the center of the record dynamically showing the song album art and then some text on the screen also showing the track title/artist. As the DJ transitions between songs, these automatically change.
You can kind of see in this screenshot:

- vinyl
- Screen Shot 2022-09-03 at 10.21.34 AM.png (822.07 KiB) Viewed 1437 times
PS. You can get a feel for the software here, btw.
https://www.djctl.com/blog/djctl-in-action/