| Copyright | (c) OleksandrZhabenko 2020 |
|---|---|
| License | MIT |
| Stability | Experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
DobutokO.Sound.Presentation
Description
Maintainer : olexandr543@yahoo.com
Helps to create experimental music. This 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(s).
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 # | |
| Show a => Show (Timity1 a) Source # | |
| Semigroup a => Semigroup (Timity1 a) Source # | Since base-4.9.0.0. 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 | |
| Ord IntervalTim Source # | |
Defined in DobutokO.Sound.Presentation Methods 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 Methods showsPrec :: Int -> IntervalTim -> ShowS # show :: IntervalTim -> String # showList :: [IntervalTim] -> ShowS # | |
| Semigroup IntervalTim Source # | Since base-4.9.0.0. Idempotent semigroup (x <> x == x) -- band. |
Defined in DobutokO.Sound.Presentation Methods (<>) :: 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. Since base-4.9.0.0 has different instance of Semigroup
than IntervalTim.
Instances
| Eq IntervalTimI Source # | |
Defined in DobutokO.Sound.Presentation | |
| Ord IntervalTimI Source # | |
Defined in DobutokO.Sound.Presentation Methods compare :: IntervalTimI -> IntervalTimI -> Ordering # (<) :: IntervalTimI -> IntervalTimI -> Bool # (<=) :: IntervalTimI -> IntervalTimI -> Bool # (>) :: IntervalTimI -> IntervalTimI -> Bool # (>=) :: IntervalTimI -> IntervalTimI -> Bool # max :: IntervalTimI -> IntervalTimI -> IntervalTimI # min :: IntervalTimI -> IntervalTimI -> IntervalTimI # | |
| Show IntervalTimI Source # | |
Defined in DobutokO.Sound.Presentation Methods showsPrec :: Int -> IntervalTimI -> ShowS # show :: IntervalTimI -> String # showList :: [IntervalTimI] -> ShowS # | |
| Semigroup IntervalTimI Source # | Since base-4.9.0.0. Idempotent semigroup (x <> x == x) -- band. |
Defined in DobutokO.Sound.Presentation Methods (<>) :: IntervalTimI -> IntervalTimI -> IntervalTimI # sconcat :: NonEmpty IntervalTimI -> IntervalTimI # stimes :: Integral b => b -> IntervalTimI -> IntervalTimI # | |
Generalized interval representation.
Constructors
| IG a b |
Instances
| Bifunctor IntervalG Source # | Since base-4.8.0.0. |
| 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 Methods 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 # | Since base-4.9.0.0. 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) |