Granular Synth having velocity gain issues/staccato-ing affect? Help?

    MaxMSP

    free horses's icon
    free horses's icon
    free horses
    Feb 02 2023 | 9:58 pm
    Hi there, I've got a granular synth working to a certain degree where it will play in polyphonic pitches now, so I can play a chord and it will generate cloud grains of all of those pitches. However, when I change the grain density dial, and upon pressing the MIDI, it's extremely loud and has a staccato-ing affect where it will play extremely loud for about 0.5 seconds and then switch back to how it's mean to be, which is really odd and I'm not sure how to fix it. I've attached the patch if anyone would care to help, I would greatly appreciate it as I'm super stuck. Thanks!
    patchers 2.zip
    application/x-zip-compressed 59.91 KB