How to Play the music in regular time

Siyuan Qin's icon

Hi, guys! I'm a newbie of MAX. I want to create a music player. There are two music. When the first music is played 2 minutes, it will stop automatically. Then the second music will play 1 minutes. This will be a loop until I press the stop button. I try to use the "clock" , but I didn't find any solution to solve this problem. I think there may be need a math formula.

Does anyone know what objects i can use to do this?

Thanks a lot in advance,

Greetings!

Rick's icon

Change the "if statement" in ms to reflect how long to wait between sections

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

Siyuan Qin's icon

Thank you Rick! It's awesome.