NamedControl and Ndefs, and NamedControl example issue
[email protected] Mon, 4 Jan 2021 15:39:30 +0000
| Newsgroups | gmane.comp.audio.supercollider.devel |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_2F0AF341-4744-46E4-9A65-5286882F453F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi All, Just musing: It=E2=80=99s very convenient in an Ndef to do something = like this \coef.kr <http://coef.kr/>(0, spec: [-0.99, 0.99]); Unfortunately the NdefGui doesn=E2=80=99t pick up the spec from this. = Not sure if NamedControl should store any specs in the global spec = dictionary (probably not?) or if the NodeProxy should pick up any local = specs defined in NamedControls (probably yes as this would allow for = local override of defined specs, which seems rather desirable?) BTW, I notice that the example under 'Comparison with direct use of = Controls=E2=80=99 seems to be broken. The first case with NamedControl = throws an error with 'NamedControl: cannot have more than one set of = fixed lag values in the same control.=E2=80=99. If I remove the lags it works but produces a synth with one control = called freq. The second Control.names case produces a def with two = controls called freq, only one of which can be set. I=E2=80=99m not sure = what the desired behaviour is here (should NamedControl not post a = warning?) but I think some it could be clarified what this is meant to = demonstrate. S.= --Apple-Mail=_2F0AF341-4744-46E4-9A65-5286882F453F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">Hi = All,<div class=3D""><br class=3D""></div><div class=3D"">Just musing: = It=E2=80=99s very convenient in an Ndef to do something like = this</div><div class=3D""><br class=3D""></div><div class=3D"">\<a = href=3D"http://coef.kr" class=3D"">coef.kr</a>(0, spec: [-0.99, = 0.99]);</div><div class=3D""><br class=3D""></div><div = class=3D"">Unfortunately the NdefGui doesn=E2=80=99t pick up the spec = from this. Not sure if NamedControl should store any specs in the global = spec dictionary (probably not?) or if the NodeProxy should pick up any = local specs defined in NamedControls (probably yes as this would allow = for local override of defined specs, which seems rather = desirable?)</div><div class=3D""><br class=3D""></div><div class=3D"">BTW,= I notice that the example under 'Comparison with direct use of = Controls=E2=80=99 seems to be broken. The first case with NamedControl = throws an error with 'NamedControl: cannot have more than one set of = fixed lag values in the same control.=E2=80=99.</div><div class=3D""><br = class=3D""></div><div class=3D"">If I remove the lags it works but = produces a synth with one control called freq. The second Control.names = case produces a def with two controls called freq, only one of which can = be set. I=E2=80=99m not sure what the desired behaviour is here (should = NamedControl not post a warning?) but I think some it could be clarified = what this is meant to demonstrate.</div><div class=3D""><br = class=3D""></div><div class=3D"">S.</div></body></html>= --Apple-Mail=_2F0AF341-4744-46E4-9A65-5286882F453F-- _______________________________________________ sc-dev mailing list info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/ search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/