algorithmic-composition-basic-0.1.1.0: Helps to create experimental music from a file (or its part) and a Ukrainian text.

Composition.Sound.Keyboard

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

# Working with input and files

Converts a string of lowercase ASCII letters being typed on the QWERTY keyboard layout into corresponding Dvorak keyboard layout.

Vice versa to qwerty2dvorak.

Get contents into lazy ByteString with filtering of all characters that are not a lower case ascii letters.

Like input2BL, but takes only first n symbols specified with the first Int64 argument.

Like input2BL, but takes only first n symbols specified with the second Int64 argument dropping before this the first m symbols specified with the first Int64 argument.

Usual way the function readFile2BLGen is used. The text in a file being read is treated as a properly typed (entered) one. So there is no keyboard layout conversion at all.

Like readFile2BL, but reads only first n symbols specified with the first Int64 argument.

Like readFile2BL, but reads only first n symbols specified with the second Int64 argument dropping before this the first m symbols specified with the first Int64 argument.

Reads a given file into a lazy ByteString with filtering of all characters that are not a lower case ascii letters. It has additional first command line argument to control the way of treating letters: as being typed (entered) properly (null String), or needed to be converted from qwerty to dvorak layout ("q" String), or vice versa (otherwise).

Like readFile2BLGen, but reads only first n symbols specified with the first Int64 argument.

Like readFile2BLGen, but reads only first n symbols specified with the second Int64 argument dropping before this the first m symbols specified with the first Int64 argument.

# Conversions

Usual way the function readFileDoublesGen is used. The text in a file being read is treated as a properly typed (entered) one. So there is no keyboard layout conversion at all.

Like readFileDoubles, but returns only first n elements of the list specified with the first Int64 argument.

Like readFileDoubles, but returns only first n elements of the list specified with the second Int64 argument dropping before this the first m elements specified with the first Int64 argument.

After reading a file into a filtered lazy ByteString (see, readFile2BLGen) converts the resulting ByteString into a list of Int. The arguments have the same meaning as for readFile2BLGen.

Like readFileDoublesGen, but returns only first n elements of the list specified with the first Int64 argument.

Like readFileDoublesGen, but returns only first n symbols specified with the second Int64 argument dropping before this the first m symbols specified with the first Int64 argument.

Converts a lazy ByteString into a list of Int using hashStr2.

Hashes two lower case ascii characters. Is used for controlling frequencies and operators.

Auxiliary function to define how is a ByteString treated, see readFile2BLGen.