-- | Data types for enumerated and non signal unit generator inputs. module Sound.Sc3.Ugen.Enum where import Sound.Sc3.Common.Envelope {- hsc3 -} import Sound.Sc3.Common.Enum {- hsc3 -} import Sound.Sc3.Ugen.Ugen {- hsc3 -} -- | Type specialised envelope curve. type EnvCurve = Envelope_Curve Ugen -- | Lift to Ugen. from_buffer :: Buffer Ugen -> Ugen from_buffer :: Buffer Ugen -> Ugen from_buffer Buffer Ugen b = case Buffer Ugen b of Buffer_Id Int i -> forall n. Real n => n -> Ugen constant Int i Buffer Ugen u -> Ugen u