Portability | non-portable (TF,GNTD) |
---|---|
Stability | experimental |
Maintainer | hans@hanshoglund.se |
Safe Haskell | None |
Provides stretchable values.
- class Stretchable a where
- compress :: Stretchable a => Duration -> a -> a
- stretching :: (Stretchable a, Stretchable b) => Duration -> (a -> b) -> a -> b
- newtype NoStretch a = NoStretch {
- getNoStretch :: a
Stretchable class
class Stretchable a whereSource
Stretchable values.
Stretchable Double | |
Stretchable Float | |
Stretchable Int | |
Stretchable Integer | |
Stretchable () | |
Stretchable Time | |
Stretchable Duration | |
Stretchable Span | |
Stretchable Meta | |
Stretchable Attribute | |
Stretchable a => Stretchable [a] | |
Integral a => Stretchable (Ratio a) | |
Stretchable a => Stretchable (Sum a) | |
Stretchable a => Stretchable (Product a) | |
Stretchable a => Stretchable (NoDelay a) | |
Stretchable (NoStretch a) | |
Stretchable a => Stretchable (NoRev a) | |
Stretchable (Reactive a) | |
Stretchable (Behavior a) | |
Stretchable (Voice a) | |
Stretchable (Note a) | |
Stretchable (Track a) | |
Stretchable (Score a) | |
Stretchable (Time -> a) | |
Stretchable (Duration -> a) | |
Stretchable (Time, a) | |
Stretchable (Duration, a) | |
Stretchable a => Stretchable (Map k a) | |
Stretchable (Time, Duration, a) |
compress :: Stretchable a => Duration -> a -> aSource
Compress (diminish) a score. Flipped version of stretch
.
stretching :: (Stretchable a, Stretchable b) => Duration -> (a -> b) -> a -> bSource
Apply a function under stretch.
See also sunder
.
Utility
NoStretch | |
|
Enum a => Enum (NoStretch a) | |
Eq a => Eq (NoStretch a) | |
Ord a => Ord (NoStretch a) | |
Show a => Show (NoStretch a) | |
Monoid a => Monoid (NoStretch a) | |
Semigroup a => Semigroup (NoStretch a) | |
Delayable a => Delayable (NoStretch a) | |
Stretchable (NoStretch a) | |
HasOffset a => HasOffset (NoStretch a) | |
HasOnset a => HasOnset (NoStretch a) | |
HasDuration a => HasDuration (NoStretch a) |