Re: Building a Racket client for SC
| Newsgroups | gmane.comp.audio.supercollider.user |
|---|---|
| Message-ID | <CAFniQ7UHhhsCiPwwmvGg1y5XvCVHW0b+ADyXuW8xTtLn01By6w@mail.gmail.com> |
On Thu, Mar 4, 2021 at 8:20 AM James Harkins <[email protected]> wrote: > shapeNum[0], curveValue[0]... This, at least, is one point that *would* do with a text description somewhere. Most envelope segment shapes don't have any associated parameter: Env.shapeNames.asAssociations.sort { |a, b| a.value < b.value }.do(_.postln); "" (lin -> 1) (linear -> 1) (exp -> 2) (exponential -> 2) (sin -> 3) (sine -> 3) (welch -> 4) (wel -> 4) (squared -> 6) (sqr -> 6) (cub -> 7) (cubed -> 7) (hold -> 8) 5 is missing -- that's for a curve number. UGen inputs must be numbers. There's no way to disambiguate "number as shape specifier" and "number as curve parameter." (Because UGen input must be numbers, we can't use data type to disambiguate.) So the curve is represented with two numbers: shape number and curve value. If the shape number is 5, the curve value takes effect; otherwise the curve value is ignored. hjh _______________________________________________ sc-users 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-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/