Just to let you know the latency of live.remote~ object is way bigger than specified in the manual.
According to the manual:
"Integer or float values are send into left inlet of live.remote~, as messages or as an audio signal. The values are applied sample-precise (if sent by the audio thread of Max) with a constant latency of a single audio buffer. "
According to my measurements the real latency = audiobuffer*2+2
for a 5 ms output buffer you have 12ms of a delay on a live.remote~
for a 10ms output buffer you have 22ms of a delay, an so on...
I wanted to make a precise envelope generator but with that huge delay it's pointless.