Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Musicology.Core
Documentation
module Musicology.Pitch
class (Num (TimeOf a), Ord (TimeOf a)) => Timed a Source #
Instances
(Num t, Ord t) => Timed (Note p t) Source # | |
Defined in Musicology.Core | |
(Num t, Ord t) => Timed (OnOff c t) Source # | |
Defined in Musicology.Core | |
(Num t, Ord t) => Timed (TimedEvent p t) Source # | |
Defined in Musicology.Core Associated Types type TimeOf (TimedEvent p t) Source # | |
(Num t, Ord t) => Timed (NoteId p t i) Source # | |
Defined in Musicology.Core |
class Timed a => HasTime a where Source #
Minimal complete definition
Nothing
Methods
onsetL :: Lens' a (TimeOf a) Source #
offsetL :: Lens' a (TimeOf a) Source #
onset :: a -> TimeOf a Source #
offset :: a -> TimeOf a Source #
Instances
class (Interval (IntervalOf a), ReTypeInterval a (IntervalOf a) ~ a) => Pitched a Source #
Instances
Interval p => Pitched (Identity p) Source # | |
Defined in Musicology.Core | |
Interval i => Pitched (Pitch i) Source # | |
Defined in Musicology.Core | |
Interval p => Pitched (Maybe p) Source # | |
Defined in Musicology.Core | |
Interval p => Pitched [p] Source # | |
Defined in Musicology.Core | |
Interval p => Pitched (Note p t) Source # | |
Defined in Musicology.Core | |
Pitched c => Pitched (OnOff c t) Source # | |
Defined in Musicology.Core | |
Pitched c => Pitched (TimedEvent c t) Source # | |
Defined in Musicology.Core Associated Types type IntervalOf (TimedEvent c t) Source # type ReTypeInterval (TimedEvent c t) p Source # | |
Interval p => Pitched (NoteId p t i) Source # | |
Defined in Musicology.Core Associated Types type IntervalOf (NoteId p t i) Source # type ReTypeInterval (NoteId p t i) p Source # |
class Pitched a => HasInterval a where Source #
Minimal complete definition
Nothing
Methods
intervalL :: IntervalOf (ReTypeInterval a p2) ~ p2 => Lens a (ReTypeInterval a p2) (IntervalOf a) p2 Source #
interval :: a -> IntervalOf a Source #
setInterval :: IntervalOf (ReTypeInterval a p2) ~ p2 => p2 -> a -> ReTypeInterval a p2 Source #
Instances
HasInterval c => HasInterval (OnOff c t) Source # | |
Defined in Musicology.Core Methods intervalL :: IntervalOf (ReTypeInterval (OnOff c t) p2) ~ p2 => Lens (OnOff c t) (ReTypeInterval (OnOff c t) p2) (IntervalOf (OnOff c t)) p2 Source # interval :: OnOff c t -> IntervalOf (OnOff c t) Source # setInterval :: IntervalOf (ReTypeInterval (OnOff c t) p2) ~ p2 => p2 -> OnOff c t -> ReTypeInterval (OnOff c t) p2 Source # |
class Pitched a => HasPitch a where Source #
Minimal complete definition
Nothing
Methods
pitchL :: IntervalOf (ReTypeInterval a p2) ~ p2 => Lens a (ReTypeInterval a p2) (Pitch (IntervalOf a)) (Pitch p2) Source #
pitch :: a -> Pitch (IntervalOf a) Source #
setPitch :: IntervalOf (ReTypeInterval a p2) ~ p2 => Pitch p2 -> a -> ReTypeInterval a p2 Source #
Instances
class Identifiable i where Source #
data TimedEvent c t Source #
Constructors
TimedEvent c t t |
Instances
timedEventContent :: TimedEvent c t -> c Source #
Instances
Instances
Instances
Instances
Generic Tied Source # | |
Show Tied Source # | |
NFData Tied Source # | |
Defined in Musicology.Core | |
Eq Tied Source # | |
Ord Tied Source # | |
Hashable Tied Source # | |
Defined in Musicology.Core | |
type Rep Tied Source # | |
Defined in Musicology.Core type Rep Tied = D1 ('MetaData "Tied" "Musicology.Core" "musicology-core-0.1.0.0-Kip9O6Skj7p1Q7zvtMFnp8" 'False) ((C1 ('MetaCons "Single" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Starts" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Continues" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Stops" 'PrefixI 'False) (U1 :: Type -> Type))) |
Instances
Generic RightTied Source # | |
Show RightTied Source # | |
NFData RightTied Source # | |
Defined in Musicology.Core | |
Eq RightTied Source # | |
Ord RightTied Source # | |
Hashable RightTied Source # | |
Defined in Musicology.Core | |
type Rep RightTied Source # | |