Portability | non-portable (TF,GNTD) |
---|---|
Stability | experimental |
Maintainer | hans@hanshoglund.se |
Safe Haskell | None |
Music.Time.Delayed
Description
- data Delayed a
- delayed :: Iso (Time, a) (Time, b) (Delayed a) (Delayed b)
- delayedValue :: (Transformable a, Transformable b) => Lens (Delayed a) (Delayed b) a b
Delayed type
Delayed
represents a value with an offset in time.
A delayed value has a known position
, but no duration
.
Placing a value inside Delayed
does not make it invariant under stretch
, as the
offset of a delayed value may be stretched with respect to the origin. However, in
contrast to a note the duration is not stretched.
Instances
Monad Delayed | |
Functor Delayed | |
Typeable1 Delayed | |
Applicative Delayed | |
Foldable Delayed | |
Traversable Delayed | |
Eq a => Eq (Delayed a) | |
Show a => Show (Delayed a) | |
Wrapped (Delayed a) | Unsafe: Do not use |
IsDynamics a => IsDynamics (Delayed a) | |
IsPitch a => IsPitch (Delayed a) | |
IsInterval a => IsInterval (Delayed a) | |
Transformable (Delayed a) | |
HasDuration (Delayed a) | |
HasPosition (Delayed a) | |
Splittable a => Splittable (Delayed a) | |
Reversible (Delayed a) | |
Rewrapped (Delayed a) (Delayed b) | |
HasPitches a b => HasPitches (Delayed a) (Delayed b) | |
HasPitch a b => HasPitch (Delayed a) (Delayed b) | |
HasDynamics a b => HasDynamics (Delayed a) (Delayed b) | |
HasDynamic a b => HasDynamic (Delayed a) (Delayed b) | |
HasArticulations a b => HasArticulations (Delayed a) (Delayed b) | |
HasArticulation a b => HasArticulation (Delayed a) (Delayed b) |
Construction
delayed :: Iso (Time, a) (Time, b) (Delayed a) (Delayed b)Source
View a delayed value as a pair of a the original value and a delay time.
Inspecting delayed values
delayedValue :: (Transformable a, Transformable b) => Lens (Delayed a) (Delayed b) a bSource
View a delayed value as a pair of the original value and the transformation (and vice versa).