úÎ!}Sz;.      !"#$%&'()*+,-(c) OleksandrZhabenko 2020MIT ExperimentalNone/% dobutokO2. of musical notes in Hz. dobutokO2¢Function returns either the nearest two musical notes if frequency is higher than one for C0 and lower than one for B8 or the nearest note duplicated in a tuple. dobutokO28Returns the closest note to the given frequency in Hz.  dobutokO2/Returns a pure quint lower than the given note. dobutokO2EReturns an analogous note in the higher octave (its frequency in Hz). dobutokO2DReturns an analogous note in the lower octave (its frequency in Hz). dobutokO2 Returns a .P of tuples with the lowest and highest frequencies for the notes in the octaves. dobutokO2øFunction can be used to determine to which octave (in the American notation for the notes, this is a number in the note written form, e. g. for C4 this is 4) the frequency belongs (to be more exact, the closest note for the given frequency -- see Ÿ taking into account its lower pure quint, which can lay in the lower by 1 octave). If it is not practical to determine the number, then the function returns /. dobutokO2|Function lifts the given frequency to the given number of the octave (in American notation, from 0 to 8). This number is an 0¨ parameter. The function also takes into account the lower pure quint for the closest note. If it is not practical to determine the number, then the function returns /.  dobutokO2Function lifts the . of 17 representing frequencies to the given octave with the 0÷ number. Better to use numbers in the range [1..8]. The function also takes into account the lower pure quint for the obtained note behaviour. If it is not practical to determine the octave, the resulting frequency is omitted from the resulting ..  dobutokO2¬Function is used to generate a rhythm of the resulting file 'end.wav' from the Ukrainian text and a number of sounds either in the syllables or in the words without vowels.  dobutokO23For the given frequency of the note it generates a .R of the tuples, each one of which contains the harmonics' frequency and amplitude.  dobutokO23For the given frequency of the note it generates a .d of the tuples, each one of which contains the harmonics' frequency and amplitude. For every given 28 structure of the uniqueness (see the documentation for mmsyn7s package and its ' module) it produces the unique timbre.  dobutokO24Additional function to produce signs from the given 2Ë of the Ukrainian text. Ukrainian vowels and voiced consonants gives "+" sign (+1), voiceless and sonorous consonants gives "-" sign (-1). Voiceless2 gives "0". Other symbols are not taken into account. dobutokO2HFor the given frequency of the note and a Ukrainian text it generates a .X of the tuples, each one of which contains the harmonics' frequency and amplitude. The 29 is used to produce the signs for harmonics coefficients. dobutokO23For the given frequency of the note it generates a .j of the tuples, each one of which contains the harmonics' frequency and amplitude. For every given first 2A argument structure of the uniqueness (see the documentation for mmsyn7s package and its 4 module) it produces the unique timbre. The second 29 is used to produce the signs for harmonics coefficients. dobutokO2ÿnFor the given frequency it generates a musical sound with a timbre. The main component of the sound includes the lower pure quint, which can be in the same octave or in the one with the number lower by one. Please, check before executing whether there is no "x.wav", "test*", "result*" and "end.wav" files in the current directory, because they can be overwritten. dobutokO2 Similar to i except that takes not necessarily pure lower quint note as the second one, but the one specified by the 2 parameter as an argument to !. If you begin the 2¤ with space characters, or "AL", or "FL", or dash, or apostrophe, or soft sign, than there will be no interval and the sound will be solely one with its obertones. dobutokO2 Similar to ? except that the resulting duration is specified by the second 1 parameter in seconds. For  it is equal to 0.5. dobutokO2ÿtFor the given frequency it generates a musical sound with a timbre. The main component of the sound includes the lower pure quint, which can be in the same octave or in the one with the number lower by one. Please, check before executing whether there is no "x.wav", "test*", "result*" and "end.wav" files in the current directory, because they can be overwritten. The 2N argument is used to define signs of the harmonics coefficients for obertones. dobutokO25Function to create a melody for the given arguments. 2´ is used to provide a rhythm. The main component of the sound includes the lower pure quint, which can be in the same octave or in the one with the number lower by one. The first 1ÿ argument from the range [0.01..1.0] is used as a maximum amplitude for obertones. If it is set to 1.0 the obertones amplitudes are just the maximum ones, otherwise they are multiplied by the parameter and this results in their becoming more silent ones. The second 1ä argument is a basic sound duration. The default one is 0.5 (second). Please, check before executing whether there is no "x.wav", "test*", "result*" and "end.wav" files in the current directory, because they can be overwritten. dobutokO25Function to create a melody for the given arguments. 2´ is used to provide a rhythm. The main component of the sound includes the lower pure quint, which can be in the same octave or in the one with the number lower by one. The first 1ÿ argument from the range [0.01..1.0] is used as a maximum amplitude for obertones. If it is set to 1.0 the obertones amplitudes are just the maximum ones, otherwise they are multiplied by the parameter and this results in their becoming more silent ones. The second 1ä argument is a basic sound duration. The default one is 0.5 (second). Please, check before executing whether there is no "x.wav", "test*", "result*" and "end.wav" files in the current directory, because they can be overwritten. dobutokO25Function to create a melody for the given arguments. 2´ is used to provide a rhythm. The main component of the sound includes the lower pure quint, which can be in the same octave or in the one with the number lower by one. The first 1ÿ argument from the range [0.01..1.0] is used as a maximum amplitude for obertones. If it is set to 1.0 the obertones amplitudes are just the maximum ones, otherwise they are multiplied by the parameter and this results in their becoming more silent ones. The second 1ð argument is a basic sound duration. The default one is 0.5 (second). Please, check before executing whether there is no "x.wav", "test*", "result*" and "end.wav" files in the current directory, because they can be overwritten. The third 2K argument is used to define the intervals for the notes if any. The third 1ÿ/ parameter basically is used to define in how many times the volume for the second lower note is less than the volume of the main note. If it is rather great, it can signal that the volume for the second note obertones are greater than for the main note obetones. The last one is experimental feature. dobutokO2 Similar to ?, but uses a sound file to obtain the information analogous to .a in the latter one. Besides, the function lifts the frequencies to the octave with the given by 0C parameter number (better to use from the range [1..8]). The first 1ÿ argument from the range [0.01..1.0] is used as a maximum amplitude for obertones. If it is set to 1.0 the obertones amplitudes are just maximum ones, otherwise they are multiplied by the parameter and this results in their becoming more silent ones. The second 1ä argument is a basic sound duration. The default one is 0.5 (second). Please, check before executing whether there is no "x.wav", "test*", "result*" and "end.wav" files in the current directory, because they can be overwritten.For better usage the 3( should be a filepath for the .wav file. dobutokO2 Similar to ?, but uses a sound file to obtain the information analogous to .a in the latter one. Besides, the function lifts the frequencies to the octave with the given by 0C parameter number (better to use from the range [1..8]). The first 1ÿ argument from the range [0.01..1.0] is used as a maximum amplitude for obertones. If it is set to 1.0 the obertones amplitudes are just maximum ones, otherwise they are multiplied by the parameter and this results in their becoming more silent ones. The second 1ä argument is a basic sound duration. The default one is 0.5 (second). Please, check before executing whether there is no "x.wav", "test*", "result*" and "end.wav" files in the current directory, because they can be overwritten.For better usage the 35 should be a filepath for the .wav file. The second 2X argument is used to define signs of the harmonics coefficients in the generated sounds. dobutokO2 Similar to ?, but uses a sound file to obtain the information analogous to .a in the latter one. Besides, the function lifts the frequencies to the octave with the given by 0C parameter number (better to use from the range [1..8]). The first 1ÿ argument from the range [0.01..1.0] is used as a maximum amplitude for obertones. If it is set to 1.0 the obertones amplitudes are just maximum ones, otherwise they are multiplied by the parameter and this results in their becoming more silent ones. The second 1ä argument is a basic sound duration. The default one is 0.5 (second). Please, check before executing whether there is no "x.wav", "test*", "result*" and "end.wav" files in the current directory, because they can be overwritten.For better usage the 35 should be a filepath for the .wav file. The second 2d argument is used to define signs of the harmonics coefficients in the generated sounds. The third 2K argument is used to define the intervals for the notes if any. The third 1ÿ/ parameter basically is used to define in how many times the volume for the second lower note is less than the volume of the main note. If it is rather great, it can signal that the volume for the second note obertones are greater than for the main note obetones. The last one is experimental feature. dobutokO23Additional function to prepend zeroes to the given 2J. The number of them are just that one to fulfill the length to the given 0 parameter. dobutokO2—For the given frequency and a Ukrainian text it generates a musical sound with the timbre obtained from the Ukrainian text (see the documentation for mmsyn7s¦ package). The timbre for another given text usually differs, but can be the same. The last one is only if the uniqueness structure and length are the same for both 2ÿ§. Otherwise, they differs. This gives an opportunity to practically and quickly synthesize differently sounding intervals. The main component of the sound includes the lower pure quint, which can be in the same octave or in the one with the number lower by one. Please, check before executing whether there is no "x.wav", "test*", "result*" and "end.wav" files in the current directory, because they can be overwritten. dobutokO2—For the given frequency and a Ukrainian text it generates a musical sound with the timbre obtained from the Ukrainian text (see the documentation for mmsyn7s¦ package). The timbre for another given text usually differs, but can be the same. The last one is only if the uniqueness structure and length are the same for both 2ÿ´. Otherwise, they differs. This gives an opportunity to practically and quickly synthesize differently sounding intervals. The main component of the sound includes the lower pure quint, which can be in the same octave or in the one with the number lower by one. Please, check before executing whether there is no "x.wav", "test*", "result*" and "end.wav" files in the current directory, because they can be overwritten. The second 2O argument is used to define signs for the harmonics coefficients for obertones. dobutokO2?Function to create a melody for the given arguments. The first 2ù is used to provide a rhythm. The second one -- to provide a timbre. The timbre for another given text usually differs, but can be the same. This gives an opportunity to practically and quickly synthesize differently sounding intervals. The first 1ÿL argument from the range [0.01..1.0] is used as a maximum amplitude for obertones. If it is set to 1.0 the obertones amplitudes are just maximum ones, otherwise they are multiplied by the parameter and this results in their becoming more silent ones. The main component of the sound is in the given octave with a number given by 0° parameter. Besides, another main component of the sound includes the lower pure quint, which can be in the same octave or in the one with the number lower by one. The second 1ä argument is a basic sound duration. The default one is 0.5 (second). Please, check before executing whether there is no "x.wav", "test*", "result*" and "end.wav" files in the current directory, because they can be overwritten. dobutokO2?Function to create a melody for the given arguments. The first 2ù is used to provide a rhythm. The second one -- to provide a timbre. The timbre for another given text usually differs, but can be the same. This gives an opportunity to practically and quickly synthesize differently sounding intervals. The first 1ÿL argument from the range [0.01..1.0] is used as a maximum amplitude for obertones. If it is set to 1.0 the obertones amplitudes are just maximum ones, otherwise they are multiplied by the parameter and this results in their becoming more silent ones. The main component of the sound is in the given octave with a number given by 0° parameter. Besides, another main component of the sound includes the lower pure quint, which can be in the same octave or in the one with the number lower by one. The second 1ð argument is a basic sound duration. The default one is 0.5 (second). Please, check before executing whether there is no "x.wav", "test*", "result*" and "end.wav" files in the current directory, because they can be overwritten. The third 2X argument is used to define signs of the harmonics coefficients in the generated sounds. dobutokO2?Function to create a melody for the given arguments. The first 2ù is used to provide a rhythm. The second one -- to provide a timbre. The timbre for another given text usually differs, but can be the same. This gives an opportunity to practically and quickly synthesize differently sounding intervals. The first 1ÿL argument from the range [0.01..1.0] is used as a maximum amplitude for obertones. If it is set to 1.0 the obertones amplitudes are just maximum ones, otherwise they are multiplied by the parameter and this results in their becoming more silent ones. The main component of the sound is in the given octave with a number given by 0° parameter. Besides, another main component of the sound includes the lower pure quint, which can be in the same octave or in the one with the number lower by one. The second 1ð argument is a basic sound duration. The default one is 0.5 (second). Please, check before executing whether there is no "x.wav", "test*", "result*" and "end.wav" files in the current directory, because they can be overwritten. The third 2e argument is used to define signs of the harmonics coefficients in the generated sounds. The fourth 2K argument is used to define the intervals for the notes if any. The third 1ÿ/ parameter basically is used to define in how many times the volume for the second lower note is less than the volume of the main note. If it is rather great, it can signal that the volume for the second note obertones are greater than for the main note obetones. The last one is experimental feature.  dobutokO2>Function is used to get numbers of intervals from a Ukrainian 2. It is used internally in the  function.! dobutokO2;Function to get from the number of semi-tones and a note a 4w note for the second lower note in the interval if any. If there is no need to obtain such a note, then the result is /." dobutokO2 Similar to ?, but uses a sound file to obtain the information analogous to .b in the latter one. Besides, the function lifts the frequencies to the octave with the given by 0D parameter number (better to use from the range [1..8]). The first 1ÿ argument from the range [0.01..1.0] is used as a maximum amplitude for obertones. If it is set to 1.0 the obertones amplitudes are just the maximum ones, otherwise they are multiplied by the parameter and this results in their becoming more silent ones. The second 1ä argument is a basic sound duration. The default one is 0.5 (second). Please, check before executing whether there is no "x.wav", "test*", "result*" and "end.wav" files in the current directory, because they can be overwritten.For better usage the 3( should be a filepath for the .wav file.# dobutokO2 Similar to ?, but uses a sound file to obtain the information analogous to .b in the latter one. Besides, the function lifts the frequencies to the octave with the given by 0D parameter number (better to use from the range [1..8]). The first 1ÿ argument from the range [0.01..1.0] is used as a maximum amplitude for obertones. If it is set to 1.0 the obertones amplitudes are just the maximum ones, otherwise they are multiplied by the parameter and this results in their becoming more silent ones. The second 1ä argument is a basic sound duration. The default one is 0.5 (second). Please, check before executing whether there is no "x.wav", "test*", "result*" and "end.wav" files in the current directory, because they can be overwritten.For better usage the 34 should be a filepath for the .wav file. The third 2X argument is used to define signs of the harmonics coefficients in the generated sounds.$ dobutokO2 Similar to ?, but uses a sound file to obtain the information analogous to .b in the latter one. Besides, the function lifts the frequencies to the octave with the given by 0D parameter number (better to use from the range [1..8]). The first 1ÿ argument from the range [0.01..1.0] is used as a maximum amplitude for obertones. If it is set to 1.0 the obertones amplitudes are just the maximum ones, otherwise they are multiplied by the parameter and this results in their becoming more silent ones. The second 1ä argument is a basic sound duration. The default one is 0.5 (second). Please, check before executing whether there is no "x.wav", "test*", "result*" and "end.wav" files in the current directory, because they can be overwritten.For better usage the 34 should be a filepath for the .wav file. The third 2e argument is used to define signs of the harmonics coefficients in the generated sounds. The fourth 2K argument is used to define the intervals for the notes if any. The third 1ÿ/ parameter basically is used to define in how many times the volume for the second lower note is less than the volume of the main note. If it is rather great, it can signal that the volume for the second note obertones are greater than for the main note obetones. The last one is experimental feature.%  !"#$%  "#$   !(c) OleksandrZhabenko 2020MIT ExperimentalNoneGƒ% dobutokO2/Function that actually makes processing in the  dobutokO2« executable. Please, check before executing whether there is no "x.wav", "test*", "result*" and "end.wav" files in the current directory, because they can be overwritten.& dobutokO2ÿ+Used to obtain one multiline specially formatted textual input and do the full processment for the sound. The function generates obertones using additional String and allows maximum control over the parameters. Besides, all the needed information it obtains from the singular formatted input, which can be ended with a keyboard keys combination that means an end of input (e. g. for Unices, that is probably Ctrl + D). '@' are separators for the input parts for their respective parts. For more information about the format of the single input, see:D'https://drive.google.com/open?id=10Z_GRZR4TKoL5KXfqPm-t-4humuHN0O4'ïThe file is also provided with the package as text.dat.txt. The last two or three inputs (an input just here means a textual input between two '@') can be omitted, the program will work also but with less control for the user possible. 5 dobutokO28Takes textual input from the stdin and prints it as one 2 to the stdout.' dobutokO2[Function records and processes the sound data needed to generate the "end.wav" file in the %„ function. Please, check before executing whether there is no "x.wav" file in the current directory, because it can be overwritten.%&'%'&(c) OleksandrZhabenko 2020MIT ExperimentalNoney*( dobutokO2 Similar to  but instead of  % function, it uses volatile function $f::Double -> Vector (Double, Double)C with somewhat sophisticated mechanism to normalize the resulting . elements (Double, Double)´. The last one is experimental feature, so it is your responsibility to provide a function so that it does not lead to clipping. In such a case, the result of application of the 6 to the 2 parameter must not be 7.²Be aware that the result can be rather unpredictable (the program can even obtain segmentation fault) for not very suitable function. But for a lot of functions this works well.KIt is recommended to fully compute the "f" function before using it in the (.) dobutokO2 Similar to  but instead of  % function, it uses volatile function $f::Double -> Vector (Double, Double)C with somewhat sophisticated mechanism to normalize the resulting . elements (Double, Double)´. The last one is experimental feature, so it is your responsibility to provide a function so that it does not lead to clipping. In such a case, the result of application of the 6 to the 2 parameter must not be 7U. The function also tries to perform filtering to avoid possible beating. The third 1  parameter in the tuple is used as a limit for frequencies difference in Hz to be filtered out from the resulting sound. It is considered to be from the range  [0.1..10.0].²Be aware that the result can be rather unpredictable (the program can even obtain segmentation fault) for not very suitable function. But for a lot of functions this works well.KIt is recommended to fully compute the "f" function before using it in the ).* dobutokO2 Similar to (? but it does not make any normalizing transformations with the .\ argument. To be used properly, it is needed that every second element in the tuple in the .… argument must be in the range [-1.0..1.0] and every first element must be in between 16.351597831287414 and 7902.132820097988 (Hz).²Be aware that the result can be rather unpredictable (the program can even obtain segmentation fault) for not very suitable function. But for a lot of functions this works well.KIt is recommended to fully compute the "f" function before using it in the *.+ dobutokO2 Similar to *= but additionally the program filters out from the resulting .M after "f" application values that are smaller by absolute value than 0.001.²Be aware that the result can be rather unpredictable (the program can even obtain segmentation fault) for not very suitable function. But for a lot of functions this works well.KIt is recommended to fully compute the "f" function before using it in the +., dobutokO2 Similar to *= but additionally the program filters out from the resulting .? after "f" application values that are smaller than the third 11 parameter by an absolute value in the triple of Double's. ²Be aware that the result can be rather unpredictable (the program can even obtain segmentation fault) for not very suitable function. But for a lot of functions this works well.KIt is recommended to fully compute the "f" function before using it in the ,.()*+,()*+,(c) OleksandrZhabenko 2020MIT ExperimentalNonez/--8      !"#$%&'()*+,-./0123456789:;<=;<>8?@8AB89CDEFG56HI)dobutokO2-0.12.0.0-FPbYeNjLj0DLJggCFKI0BRDobutokO.SoundDobutokO.Sound.ExecutableDobutokO.Sound.FunctionalMainMMSyn7SyllablenotesneighbourNotes closestNote pureQuintNoteoctaveUp octaveDownoctavesT whichOctave putInOctave putInOctaveV syllableStr oberTonesuniqOberTonesVsignsFromString oberTones2uniqOberTonesV2 oberSoXSynthoberSoXSynthDNoberSoXSynth2DN oberSoXSynth2 oberSoXSynthNoberSoXSynthN2oberSoXSynthN3oberSoXSynthNGenoberSoXSynthNGen2oberSoXSynthNGen3 prependZeroesuniqOberSoXSynthuniqOberSoXSynth2uniqOberSoXSynthNuniqOberSoXSynthN3uniqOberSoXSynthN4intervalsFromStringdNoteuniqOberSoXSynthNGenuniqOberSoXSynthNGen3uniqOberSoXSynthNGen4 dobutokO2 dobutokO2H7 recAndProcessoberSoXSynth2FDNoberSoXSynth2FDN_BoberSoXSynth2FDN_SoberSoXSynth2FDN_SfoberSoXSynth2FDN_Sf3main&vector-0.12.1.2-E9YBdJZ4ywF23gc9L8wAxp Data.VectorVectorbase GHC.MaybeNothingghc-prim GHC.TypesIntDoubleGHC.BaseStringGHC.IOFilePathMaybeo2help(mmsyn6ukr-0.6.3.1-B8Tt7Im88SlGtDYL5gWymjMelodics.UkrainianconvertToProperUkrainianempty