CHOPexec DAT giving false triggers

My input signal is a bunch of music beats or drum hits that have gone through some filters. My intention is to give the beats a 1 and everything else a 0.

My CHOPexec should trigger onOffToOn and adds the current time to a Textfile.

However the output script seems to be constantly triggering, rather than being an occasional beat as I intend. What am I missing?

Very new to TD, so type slowly.

hey @cogzoid , welcome to the forum.

The Trail CHOP is a history of its input channels back in time. So it’s great to monitor how your signal looks.
But your CHOP Execute DAT should be monitoring the live signal instead. So place a Null CHOP before your Trail CHOP, and point your Chop Execute DAT to it.

Another thing, it’s good to realize that “On” means non-zero. So 0.01 is also “On”.
So if you have analog music signal with some low level noise, it can be useful to use a Logic CHOP, set to “Off when outside bounds” and set its parameters boundmin to 0 and boundmax to 0.1. This makes it only trigger on louder signals.
See Help->Operator Snippets for lots of practical examples for almost all nodes!

Thanks! That helps a lot. I thought that the Trail CHOP was a live channel, but now I see what’s going on.

TD has quite a learning curve for me…