how to know "play" is finished

Discussions, advice, bug reports and much more about the "bach" environment.
Post Reply
PyoungRyang Ko
Posts: 23
Joined: Thu Feb 26, 2015 2:11 pm

how to know "play" is finished

Post by PyoungRyang Ko » Tue Aug 25, 2020 8:45 am

Dear advanced users and developers,

Is there any way to know that "bach.score" has finished playing by "play" message?

Thanks in advance.

TWTP
Posts: 39
Joined: Sat Mar 19, 2016 4:37 pm

Re: how to know "play" is finished

Post by TWTP » Wed Aug 26, 2020 2:01 am

yeah bach.score will print "end" from the playout
bach_score_end_message.png
bach_score_end_message.png (46.21 KiB) Viewed 1275 times

PyoungRyang Ko
Posts: 23
Joined: Thu Feb 26, 2015 2:11 pm

Re: how to know "play" is finished

Post by PyoungRyang Ko » Wed Aug 26, 2020 5:33 am

Thank you very much!

Instead of [bach.print], I connected
[bach.== end]
|
[sel 1]

With this method, I can use the message [end] to control other objects.
It is amazing!

danieleghisi
Site Admin
Posts: 1347
Joined: Fri Dec 03, 2010 1:25 pm

Re: how to know "play" is finished

Post by danieleghisi » Wed Aug 26, 2020 11:50 am

Hi!
Equivalently, you can use [bach.playkeys end], that will send a bang when the play is done, but your method is just as good!

PyoungRyang Ko
Posts: 23
Joined: Thu Feb 26, 2015 2:11 pm

Re: how to know "play" is finished

Post by PyoungRyang Ko » Thu Aug 27, 2020 7:26 am

Thanks!

Post Reply