You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See this thread for more details. Basically, when using NamedControls with a single lag value in a SynthDef, the Control unexpectedly returns an array.
e.g.
{NamedControl.new('freq', 440, \control).postln}.asSynthDef; ""// --> an OutputProxy
{NamedControl.new('freq', 440, \control, 1).postln}.asSynthDef; ""// --> [ a Lag ] // (why return an Array?)
This causes confusion and "special case" handling when using NamedControls, for example in the following case with Pan2:
Julian, you're right, I tested with the current "master" code (before my fix), and the problem wasn't there (I found the bug while using 3.6.5, where there is no unbubble). unbubble does exactly what's needed, and it seems this line has been "fixed" at several moments in the Git history.
So my fix isn't strictly needed, though the removal of the extra "asArray" probably isn't harmful. it's up to you to pull it or skip it.
scztt
added
the
bug
Issues that relate to unexpected/unwanted behavior. Don't use for PRs.
label
Mar 15, 2015
See this thread for more details. Basically, when using NamedControls with a single lag value in a SynthDef, the Control unexpectedly returns an array.
e.g.
This causes confusion and "special case" handling when using NamedControls, for example in the following case with Pan2:
but we would expect a result like this (note we need to add
[0]
to the Control, to get it out of the unexpected array:The text was updated successfully, but these errors were encountered: