phonetic-languages-rhythmicity 0.8.0.0 → 0.9.0.0
raw patch · 4 files changed
+110/−3 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Rhythmicity.PolyRhythm: linearEndF2 :: Double -> Double -> Double
+ Rhythmicity.PolyRhythm: linearEndF3 :: Int -> Double -> Double -> Double
+ Rhythmicity.PolyRhythm: linearF2 :: Double -> Double -> Double
+ Rhythmicity.PolyRhythm: linearF3 :: Int -> Double -> Double -> Double
+ Rhythmicity.PolyRhythm: rhythmicityPolyWeightedLEF2 :: Ord a => Double -> Int -> PolyChoices -> PolyRhythmBasis -> [a] -> Double
+ Rhythmicity.PolyRhythm: rhythmicityPolyWeightedLEF20 :: Ord a => Double -> Int -> PolyChoices -> PolyRhythmBasis -> [a] -> Double
+ Rhythmicity.PolyRhythm: rhythmicityPolyWeightedLEF3 :: Ord a => Double -> Int -> PolyChoices -> PolyRhythmBasis -> [a] -> Double
+ Rhythmicity.PolyRhythm: rhythmicityPolyWeightedLEF30 :: Ord a => Double -> Int -> PolyChoices -> PolyRhythmBasis -> [a] -> Double
+ Rhythmicity.PolyRhythm: rhythmicityPolyWeightedLF2 :: Ord a => Double -> Int -> PolyChoices -> PolyRhythmBasis -> [a] -> Double
+ Rhythmicity.PolyRhythm: rhythmicityPolyWeightedLF20 :: Ord a => Double -> Int -> PolyChoices -> PolyRhythmBasis -> [a] -> Double
+ Rhythmicity.PolyRhythm: rhythmicityPolyWeightedLF3 :: Ord a => Double -> Int -> PolyChoices -> PolyRhythmBasis -> [a] -> Double
+ Rhythmicity.PolyRhythm: rhythmicityPolyWeightedLF30 :: Ord a => Double -> Int -> PolyChoices -> PolyRhythmBasis -> [a] -> Double
Files
- CHANGELOG.md +6/−1
- README.md +1/−1
- Rhythmicity/PolyRhythm.hs +102/−0
- phonetic-languages-rhythmicity.cabal +1/−1
CHANGELOG.md view
@@ -80,5 +80,10 @@ ## 0.8.0.0 -- 2021-08-16 -* Eigth version. Added also the weigted functions that try to increase the importance of the line ending+* Eigth version. Added also the weighted functions that try to increase the importance of the line ending and to decrease the importance of the beginnings.++## 0.9.0.0 -- 2021-08-17++* Ninth version. Added also the linear weighted functions that try to increase / decrease the importance of the line ending+and to decrease /increase the importance of the beginnings.
README.md view
@@ -107,6 +107,6 @@ there are first weighted increasing and decreasing functions and functionality respectively. -Since the 0.8.0.0 version added also the weigted functions+Since the 0.8.0.0 version added the weighted functions that try to increase the importance of the line ending and to decrease the importance of the beginnings.
Rhythmicity/PolyRhythm.hs view
@@ -863,6 +863,108 @@ ------------------------------------------------------------------- +{-| This function tries to increase the importance of the beginning of the line and decreases the importance+of the ending of the line. It is linear.+-}+linearF2 :: Double -> Double -> Double+linearF2 k x = x / (6.0 * (k + 1.0))++linearF3 :: Int -> Double -> Double -> Double+linearF3 n k x = int2Double n * x / (6.0 * (k + 1.0))++{-| This function tries to increase the importance of the ending of the line and decreases the importance+of the beginning of the line. It is linear.+-}+linearEndF2 :: Double -> Double -> Double+linearEndF2 k x = x * (6.0 * (k + 1.0))++linearEndF3 :: Int -> Double -> Double -> Double+linearEndF3 n k x = int2Double n * x * (6.0 * (k + 1.0))++-------------------------------------------------------------------++rhythmicityPolyWeightedLF2+ :: (Ord a) => Double -- ^ The initial value starting from which it counts. Usually, equals to 1.0.+ -> Int -- ^ If the argument is less or equal to 4, then 'Marker4s' is used, if it is greater than 4, then 'PolyMarkers' is used.+ -> PolyChoices+ -> PolyRhythmBasis+ -> [a]+ -> Double+rhythmicityPolyWeightedLF2 = rhythmicityPolyG12 (linearF2)+{-# INLINE rhythmicityPolyWeightedLF2 #-}++rhythmicityPolyWeightedLF3+ :: (Ord a) => Double -- ^ The initial value starting from which it counts. Usually, equals to 1.0.+ -> Int -- ^ If the argument is less or equal to 4, then 'Marker4s' is used, if it is greater than 4, then 'PolyMarkers' is used.+ -> PolyChoices+ -> PolyRhythmBasis+ -> [a]+ -> Double+rhythmicityPolyWeightedLF3 = rhythmicityPolyG1 (linearF3)+{-# INLINE rhythmicityPolyWeightedLF3 #-}++rhythmicityPolyWeightedLF20+ :: (Ord a) => Double -- ^ The initial value starting from which it counts. Usually, equals to 1.0.+ -> Int -- ^ If the argument is less or equal to 4, then 'Marker4s' is used, if it is greater than 4, then 'PolyMarkers' is used.+ -> PolyChoices+ -> PolyRhythmBasis+ -> [a]+ -> Double+rhythmicityPolyWeightedLF20 = rhythmicityPolyG02 (linearF2)+{-# INLINE rhythmicityPolyWeightedLF20 #-}++rhythmicityPolyWeightedLF30+ :: (Ord a) => Double -- ^ The initial value starting from which it counts. Usually, equals to 1.0.+ -> Int -- ^ If the argument is less or equal to 4, then 'Marker4s' is used, if it is greater than 4, then 'PolyMarkers' is used.+ -> PolyChoices+ -> PolyRhythmBasis+ -> [a]+ -> Double+rhythmicityPolyWeightedLF30 = rhythmicityPolyG01 (linearF3)+{-# INLINE rhythmicityPolyWeightedLF30 #-}++rhythmicityPolyWeightedLEF2+ :: (Ord a) => Double -- ^ The initial value starting from which it counts. Usually, equals to 1.0.+ -> Int -- ^ If the argument is less or equal to 4, then 'Marker4s' is used, if it is greater than 4, then 'PolyMarkers' is used.+ -> PolyChoices+ -> PolyRhythmBasis+ -> [a]+ -> Double+rhythmicityPolyWeightedLEF2 = rhythmicityPolyG12 (linearEndF2)+{-# INLINE rhythmicityPolyWeightedLEF2 #-}++rhythmicityPolyWeightedLEF3+ :: (Ord a) => Double -- ^ The initial value starting from which it counts. Usually, equals to 1.0.+ -> Int -- ^ If the argument is less or equal to 4, then 'Marker4s' is used, if it is greater than 4, then 'PolyMarkers' is used.+ -> PolyChoices+ -> PolyRhythmBasis+ -> [a]+ -> Double+rhythmicityPolyWeightedLEF3 = rhythmicityPolyG1 (linearEndF3)+{-# INLINE rhythmicityPolyWeightedLEF3 #-}++rhythmicityPolyWeightedLEF20+ :: (Ord a) => Double -- ^ The initial value starting from which it counts. Usually, equals to 1.0.+ -> Int -- ^ If the argument is less or equal to 4, then 'Marker4s' is used, if it is greater than 4, then 'PolyMarkers' is used.+ -> PolyChoices+ -> PolyRhythmBasis+ -> [a]+ -> Double+rhythmicityPolyWeightedLEF20 = rhythmicityPolyG02 (linearEndF2)+{-# INLINE rhythmicityPolyWeightedLEF20 #-}++rhythmicityPolyWeightedLEF30+ :: (Ord a) => Double -- ^ The initial value starting from which it counts. Usually, equals to 1.0.+ -> Int -- ^ If the argument is less or equal to 4, then 'Marker4s' is used, if it is greater than 4, then 'PolyMarkers' is used.+ -> PolyChoices+ -> PolyRhythmBasis+ -> [a]+ -> Double+rhythmicityPolyWeightedLEF30 = rhythmicityPolyG01 (linearEndF3)+{-# INLINE rhythmicityPolyWeightedLEF30 #-}++-------------------------------------------------------------------+ {-| Data type that is used to implement some parameter language to encode in the 'String' argument information that is sufficient to transform the 'String' into 'Double' using the needed additional information provided by some other means.
phonetic-languages-rhythmicity.cabal view
@@ -2,7 +2,7 @@ -- For further documentation, see http://haskell.org/cabal/users-guide/ name: phonetic-languages-rhythmicity-version: 0.8.0.0+version: 0.9.0.0 synopsis: Allows to estimate the rhythmicity properties for the text description: Allows to estimate (somewhat to say, evaluate) the rhythmicity properties for the text. Inspired by the ancient Greek and Latin poetry.