Recently, I've been trying to reverse engineer the sugarsynth implementation of granular synthesis and I've basically cloned it outright with only one or two minor changes, yet I'm having a problem I can't figure out. In the sugarsynth's [x_sugar~] patch for the [poly~] object, it uses a few number boxes and a send receive pair in conjunction with[thispoly~] & [peak] to calculate how many voices there are and then equally scale the phase of each instance's phasor object.
As far as I can tell I've copied this part of the patch near identically, yet no matter how many voices the peak object is out putting a 1. I can't tell why this is. Can anyone help me trouble shoot? Sorry in advance for my rainbow eyesore style of commenting, but it helps me to analyse each part of the patch and separate them visually.
I also have one related and one unrelated question: How do I change my profile image? What is the reasoning behind the amplitude scaling at the end of the patch? It's the total voices to the power of a half and then multiplied by the square root of 2. I don't understand the significance of these choices.