Bug: Tempo of Playback Inside Sub-Patch

Discussions, advice, bug reports and much more about the "bach" environment.
Post Reply
realshafer
Posts: 41
Joined: Mon May 12, 2014 11:18 pm

Bug: Tempo of Playback Inside Sub-Patch

Post by realshafer » Wed Jun 10, 2020 8:43 pm

Hi Andrea and Daniele,

It's been a while since I've been on here, but it looks like all is well in the bach community. Glad to see so many developments happening!

I found a bug that I wanted to report. It is simple enough to demonstrate in the attached patch. Essentially, when bach.score is inside of a subpatch and you change the tempo, that tempo does not take effect for playback unless you open the subpatch. It would be great if there's a workaround immediately available so I can use it for an upcoming virtual performance. I don't want to bring a bunch of bach.score objects to the front of my patch in order to get correct tempo playback.

Thanks so much for all the work you do! I hope you're both well.
Attachments
tempo playback bug.maxpat.zip
(4.34 KiB) Downloaded 122 times

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

Re: Bug: Tempo of Playback Inside Sub-Patch

Post by danieleghisi » Thu Jun 11, 2020 9:23 am

Good catch! It will be fixed for next patreon pre-release and for the future release.
Good news is that there are two workarounds:

1) add any do-nothing message that will force the refresh. for instance, send a "unsel all, delete":
cleartempi, addtempo [200], unsel all, delete

2) if you need to vary the global speed frequently in real time, using [setclock] in multiplicative mode seems like a better solution (look up #setclock)

realshafer
Posts: 41
Joined: Mon May 12, 2014 11:18 pm

Re: Bug: Tempo of Playback Inside Sub-Patch

Post by realshafer » Thu Jun 11, 2020 3:34 pm

Excellent! Thanks Daniele!

Post Reply