safe usage of "live.observer is_playing"

broc's icon

As mentioned in some other threads, this observer is quite problematic as it sends at start not just a single 1 but a sequence of 1-0-1. So if you want to use 0 for triggering some action at stop, the same action will also be triggered at start!

To eliminate this problem, I've made the following abstraction that sends a unique bang at start and stop on two different outlets.

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

Any comments are welcome.

Andrew Pask's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Here's how you can avoid the API altogether

broc's icon

Nice alternative.
So I could keep the interface of my abstraction and just change the implementation.

broc's icon
Max Patch
Copy patch and select New From Clipboard in Max.

For the record, here is another solution with API.