I'm using pitch~ to find attacks. Works fine. But I also want to get a value that indicates how loud the attack was (relative to others). I tried printing the amplitude output value whenever the attack output says it found an attack, but the values I'm getting don't make sense. I've also got a flonum connected to the amp output and I can clearly see that there are much higher values passing by when an attack is detected, but that's not what I'm seeing. Perhaps I'm seeing an amplitude value that is earlier or later than the attack.
Short version: is there any way to get the amplitude value from an attack that triggered the attack output of pitch~ to say it found one?