Copyright | (c) OleksandrZhabenko 2020-2022 |
---|---|
License | MIT |
Maintainer | olexandr543@yahoo.com |
Stability | Experimental |
Safe Haskell | None |
Language | Haskell2010 |
Extensions | BangPatterns |
Library functions for the rewritePoemG3 executable. Inspired by: https://functional-art.org/2020/papers/Poetry-OleksandrZhabenko.pdf from the https://functional-art.org/2020/performances ; Allows to rewrite the given text (usually a poetical one).
Synopsis
- generalProcessment :: FilePath -> PermutationsType -> (Int, Int) -> Coeffs2 -> [String] -> [String] -> Int -> FilePath -> IO ()
- compareFilesToOneCommon :: [FilePath] -> FilePath -> IO ()
- circle2 :: [[[[Sound8]]] -> [[Double]]] -> Coeffs2 -> Array Int [Array Int Int] -> String -> [String] -> [String] -> [String]
- circle2I :: [[[[Sound8]]] -> [[Double]]] -> Coeffs2 -> Array Int [Array Int Int] -> String -> [String] -> Int -> [Int] -> Double -> Double -> [String] -> [String]
- toFileStr :: FilePath -> [String] -> IO ()
Documentation
:: FilePath | Whether to use the own provided durations from the file specified here. Uses the |
-> PermutationsType | Whether to use just one of the express permutations, or the full universal set. |
-> (Int, Int) | |
-> Coeffs2 | |
-> [String] | |
-> [String] | |
-> Int | |
-> FilePath | The file with the text in Ukranian to be rewritten. |
-> IO () |
since 0.5.0.0 -- The meaning of the first command line argument (and
since 0.6.0.0 -- There is also the possibility to use 'line growing' that is to use the Coeffs2
here everywhere in the module)
depends on the String
argument -- whether it starts with 'w', 'x' or otherwise. In the first case it represents
the k1 and k2 coefficients (default ones equal to 2.0 and 0.125) for the functions from the Rhythmicity.TwoFourth module.
Otherwise, it is used for the functions to specify the level of emphasizing the two-based and three-based periods
(the default values here are 1.0 both).
prepereGrowTextMN
function
with the Int
arguments from the first argument tuple. This allows to rearrange the given text and then
to rewrite it.
Besides there are new lines of the arguments for the String
argument that can begin with "c", "s", "t",
"u", "v", "C", "N", "S", "T", "U", "V", "W", "X", "Y" and "Z" letters. For more information, please, refer to the rhythmicity
.
@ since 0.12.0.0 -- Changed the arguments. Now it can run multiple rewritings for the one given data file
on the given list of choices for the properties given as the second [String
] argument. Every new file is being
saved with the choice prefix.
:: [[[[Sound8]]] -> [[Double]]] | Whether to use the own provided durations. |
-> Coeffs2 | |
-> Array Int [Array Int Int] | |
-> String | |
-> [String] | |
-> [String] | |
-> [String] |
Processment without rearrangements.
:: [[[[Sound8]]] -> [[Double]]] | Whether to use the own provided durations. |
-> Coeffs2 | |
-> Array Int [Array Int Int] | |
-> String | |
-> [String] | |
-> Int | |
-> [Int] | |
-> Double | |
-> Double | |
-> [String] | |
-> [String] |
Processment with rearrangements.
:: FilePath | The |
-> [String] | Each element is appended on the new line to the file. |
-> IO () |
Prints every element from the structure on the new line to the file. Uses appendFile
function inside. Is taken from
the Languages.UniquenessPeriods.Vector.General.DebugG module from the phonetic-languages-general
package.