Page 1 of 1

PropertyChanged subscription on parameter named "Pan"

Posted: Tue Feb 07, 2012 10:15 pm
by UNZ
i observed something strange: my machine, mixio, has a parameter named "Pan".
when i try to subscribe to propertychanged on it, it observes the buzz pan.

Pan_ValueChanged(machine.GetParameter("Pan"), 0);

i could rename it but it would break backwards compatibility (?).
is there a way i can separate the two without renaming my param ? is there maybe some convetion how buzz renames a parameter that collides with an internal one ?

Re: PropertyChanged subscription on parameter named "Pan"

Posted: Tue Feb 07, 2012 10:38 pm
by UNZ
the solution was to use:

Pan_ValueChanged(machine.AllNonInputParameters().First(p => p.Name == "Pan"), 0);

Re: PropertyChanged subscription on parameter named "Pan"

Posted: Wed Feb 08, 2012 9:13 am
by strobotone
that´s it. i am seriously quitting my job and get into c# and c++ .