Copyright | (c) OleksandrZhabenko 2020 |
---|---|
License | MIT |
Stability | Experimental |
Safe Haskell | None |
Language | Haskell2010 |
Maintainer : olexandr543@yahoo.com
Helps to create experimental music. These module contains different representations for the data.
Sound repesentations
An Int
parameter is an index of the SoundI
sound file in the sorted in the ascending order Vector
of them (the corresponding files or their
names) representing the whole composition.
An FilePath
parameter is a name of the sound file in the current directory with the filetype (supported by SoX) being given by String
representing
the whole composition.
The first Double
parameter is a time moment (starting from 0) of the playing the sound being represented by OvertonesO
, the second one is its
duration. The third one is its maximum amplitude by an absolute value. The fourth one is the minimum duration that can provide a needed human
feeling of perception (some impression) for the sound. The further one(s) is(are) some adjustment(s) parameter.
Sound time intervals representations
The first Double
parameter is a time moment (starting from 0) of the playing the sound, the second one is its duration in seconds (with a negative
values corresponding to the pause duration --- the silent "sound"), the third one is the minimum duration that can provide a needed human
feeling of perception (some impression) for the sound.
The first Double
parameter is a time moment (starting from 0) of the playing the sound, the second one is its duration in seconds (with a negative
values corresponding to the pause duration --- the silent "sound"), the third one is a parameter to specify more complex behaviour for the sound.
Instances
Functor Timity1 Source # | |
Eq a => Eq (Timity1 a) Source # | |
Ord a => Ord (Timity1 a) Source # | |
Defined in DobutokO.Sound.Presentation | |
Show a => Show (Timity1 a) Source # | |
Semigroup a => Semigroup (Timity1 a) Source # | Idempotent semigroup (band) (x <> x = x) if |
data IntervalTim Source #
Double
interval representation with no order of the arguments preserved.
Instances
Eq IntervalTim Source # | |
Defined in DobutokO.Sound.Presentation (==) :: IntervalTim -> IntervalTim -> Bool # (/=) :: IntervalTim -> IntervalTim -> Bool # | |
Ord IntervalTim Source # | |
Defined in DobutokO.Sound.Presentation compare :: IntervalTim -> IntervalTim -> Ordering # (<) :: IntervalTim -> IntervalTim -> Bool # (<=) :: IntervalTim -> IntervalTim -> Bool # (>) :: IntervalTim -> IntervalTim -> Bool # (>=) :: IntervalTim -> IntervalTim -> Bool # max :: IntervalTim -> IntervalTim -> IntervalTim # min :: IntervalTim -> IntervalTim -> IntervalTim # | |
Show IntervalTim Source # | |
Defined in DobutokO.Sound.Presentation showsPrec :: Int -> IntervalTim -> ShowS # show :: IntervalTim -> String # showList :: [IntervalTim] -> ShowS # | |
Semigroup IntervalTim Source # | Idempotent semigroup (x <> x = x) -- band. |
Defined in DobutokO.Sound.Presentation (<>) :: IntervalTim -> IntervalTim -> IntervalTim # sconcat :: NonEmpty IntervalTim -> IntervalTim # stimes :: Integral b => b -> IntervalTim -> IntervalTim # |
data IntervalTimI Source #
Another Double
interval representation with no order of the arguments preserved. Has different instance of Semigroup
than IntervalTim
.
Instances
Generalized interval representation.
IG a b |
Instances
Bifunctor IntervalG Source # | |
Functor (IntervalG a) Source # | |
(Eq a, Eq b) => Eq (IntervalG a b) Source # | |
(Ord a, Ord b) => Ord (IntervalG a b) Source # | |
Defined in DobutokO.Sound.Presentation compare :: IntervalG a b -> IntervalG a b -> Ordering # (<) :: IntervalG a b -> IntervalG a b -> Bool # (<=) :: IntervalG a b -> IntervalG a b -> Bool # (>) :: IntervalG a b -> IntervalG a b -> Bool # (>=) :: IntervalG a b -> IntervalG a b -> Bool # | |
(Show a, Show b) => Show (IntervalG a b) Source # | |
Semigroup (IntervalG a b) Source # | Idempotent semigroup (x <> x = x) and rectangular band (x <> y <> z = x <> z) For more information, please, refer to: https://en.wikipedia.org/wiki/Band_(mathematics) |