algorithmic-composition-basic-0.1.1.0: Helps to create experimental music from a file (or its part) and a Ukrainian text.
Copyright(c) OleksandrZhabenko 2020-2021
LicenseMIT
Maintainerolexandr543@yahoo.com
StabilityExperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Composition.Sound.ParseList

Description

Helps to create experimental music from a file (or its part) and a Ukrainian text. It can also generate a timbre for the notes. Uses SoX inside.

Synopsis

Documentation

canBePreParseV :: [String] -> Bool Source #

Predicate to check whether a list does not contain round parentheses or dash (a minus sign) as its elements. Is used internally in the parseStoLInts function to avoid lists with negative elements.

parseV :: Int -> [String] -> Maybe [Int] Source #

Notification. Uses an Int limitation to avoid infinite lists. All arguments must be not negative.

parseVInf :: [String] -> Maybe [Int] Source #

From the 0.19.0.0 version. Can be used to parse also into infinite lists.

parseStoLInts :: Int -> String -> [Int] Source #

Parses a String being a list of Ints written with Haskell rules, e. g. "[1..]", "[2,4..45]", "[3,5,6,7,8,3]" etc. into a list of Int. If it is not possible or list is empty, returns []. Preceding whitespaces are ignored. An Int argument is used as a delimiter to avoid infinite lists.