Bang on specific date and time

Eardrum Nibbler's icon

Hello,

For an audio setup, I’d like to start a patch at a specific date and time.

I want a bang at a specific date and time that triggers the patch’s “play” button.

Can anyone help me figure out how to easily add this to an existing patch?

Best regards,

Jeroen

TFL's icon

[date] + [match]

Max Patch
Copy patch and select New From Clipboard in Max.

Eardrum Nibbler's icon

@TFL

I'm starting to understand how to use the “date” object.

But I want to trigger the bang to start the patch on a specific date and time, just once.

For example: I want the bang to trigger on 09/15/2026 at 7:30 p.m.

The reason for this is as follows:

The patch needs to start at the time of the exhibition’s opening, when I likely won’t be able to attend, nor do I want to be busy pressing “play” on the patch at that moment. The patch is intended to run 24/7 and should not restart daily at a specific time.

It is a 540-measure piece of music that plays through three players at three different speeds. After 540 hours (22 days and 12 hours), the three players will start together again, and the entire cycle will begin anew.

florian1947's icon

either also match date, or use onebang

Source Audio's icon

patch TFL posted gives you all you need to join date & time list and match them all together.

But if you do not boot computer and start max and patch before set date & time,

nothing will happen.

As it is unattended exibition, what do you plan to do against possible power loss ?

Like rebooting, starting max and patch, calculating offset from start time and restart players as if there was no interruption ?

How complex something like that would be to calculate

depends a lot on speed factor, is it static, or changing over the time.

One could use timestamp to check current vs set start time, if start time is in the future, wait and trigger pkayback when matched, if max restarted and start time is in the past, calculate where players would be if there was no interruption and start them from that point.

Eardrum Nibbler's icon

@source audio

Thanks for helping me think through the TFL patch.

I hadn’t yet thought about what I’d do if the power went out.

But there isn’t much I can do…

Except very complicated equations and actions Ihave to do...

Sometimes you have to take a bit of a risk and living on the edge.

I’m assuming the power won’t go out.

If it does go out, I’ll restart the patch and make sure visitors are kept informed.

Let’s stay positive ;-)

Source Audio's icon

staying positive is allways a good point.

but in case you want to get that security measures, it should be no big deal to do it.