ADSR with vst~
Hi, I am trying to use an ADSR to control the output of the vst~ object (hosting Absynth 5) but there is no audio coming through. Can some one show me where I went wrong or an alternative solution?
Thanks

Does it work without the [adsr~] object? What happens if you disconnect it and just put a fixed value of something like 0.5 in the [*~] object? Do you get audio then?
the only "thing" i see is that you probably want to do [/127.] instead of [/127]
(mainly because 95/127=0)
Tried using a fixed value and still no sound.
Where did you get a value of 95 from? Why [/127.] instead?
Thanks
The patch You posted is terribly full of mistakes.
Let's start with midievent mesage to notein.
What should that do ?
Did You try to read help for notein object ?
Even if one would remove all that gibberish and send
midievent 144 $1 $2 message to vst~object, it will allways produce notes
with velocity 0, meaning no sound, because of ... well You have to find out Yourself.
I suggest to open help file of objects You use and read a bit about how they work.
What object could I use to turn on the adsr then?
Use velocity that gets sent to vst~ object
and divide it by 127.
IT IS A FLOAT, did You read what Roman wrote ?
That float, now 0. - 1. goes into first inlet of adsr.
and produces analog gain corresponding to velocity 0 -127.
But Your problem in first place is midi.
In that patch nothing works, remove all that stuff
and start with simple midi numbers.
midievent 144 100 127 sends midi note number 100
on midi channel 1 and velocity of 127.
144 is midi byte for Note On on channel 1.
That random You use produces only single integer,
so message 144 $1 $2 outputs 144 (that Random number ) 0 ,
meanning all notes get velocity 0 = no sound.
Thanks