Safe Haskell | None |
---|
Documentation
Monad Note | |
Functor Note | |
Applicative Note | |
Foldable Note | |
Traversable Note | |
Comonad Note | |
ComonadEnv Span Note | |
Eq a => Eq (Note a) | |
Ord a => Ord (Note a) | |
Show a => Show (Note a) | |
IsDynamics a => IsDynamics (Note a) | |
IsInterval a => IsInterval (Note a) | |
IsPitch a => IsPitch (Note a) | |
Delayable (Note a) | |
Stretchable (Note a) | |
HasOffset (Note a) | |
HasOnset (Note a) | |
HasDuration (Note a) | |
HasGetPitch a => HasGetPitch (Note a) | |
HasSetPitch a b => HasSetPitch (Note a) (Note b) |
getNote :: Note a -> (Span, a)Source
Deconstruct a note.
Typically used with the ViewPatterns
extension, as in
foo (getNote -> (s,x)) = ...
getNoteValue :: Note a -> aSource
Get the value of the note. Same as extract
.