A custom envelope widget for wxHaskell. The word "envelope" is understood as in ADSR. The envelope is built from linear or cubic bezier segments.
The code is very ugly and hackish. You have been warned.
|data EnvSegment a|
|data Envelope t a|
|type Envelope' t a = [(EnvSegment a, t)]|
|An envelope on the interval [0,1], made up from (scaled) segments.|
|calcEnvelopeSegment :: Floating a => a -> EnvSegment a -> a|
|Computes the value of an envelope segment at a 0<=t<=1.|
|calcEnvelope :: RealFloat a => a -> Envelope a a -> a|
|Produced by Haddock version 2.4.1|