I'm glad to announce the release of the package temporal-csound [1]

This package joins the forces of the packages
temporal-music-notation and csound-expression.
The former package gives you handy primitives to arrange
 the events in sequences (like parallel or sequential composition,
the tempo change, standard names for notes and durations)
and the later is used for creation of musical timbres or
software synthesizers.

This library defines standard note representation that let's you invoke
csound instruments with notes defined in the package
temporal-music-notation.

Also this library provides you with some cool instruments to try the things
out.

Library strives to be very simple. For example, to trigger the instrument
with virtual midi-device is as simple as (in ghci with loaded modules Csoundand
Csound.Patch)
~~~

Csound Csound.Patch> vdac $ mul 0.2 $ largeHall $ onMidi stringPad
~~~

If you have a connected hardware midi-device you can just type:

~~~

Csound Csound.Patch> dac $ mul 0.2 $ largeHall $ onMidi stringPad


~~~

And you are ready to go. To play a C-major chord just do:

~~~

Csound Csound.Patch> dac $ mul 0.2 $ magicCave $ mix $ notes
vibraphone2 $ mel [c, e, g, high c, rest 15]


~~~

To use this library you need to install the csound compiler [2]. It renders
the Csound files to wav-files or real-time performance.


WARNING: the library works best within ghci. The real-time sound rendering
function dac spawns a child process in the background which may continue to
execute after you stop the main process that runs the programm. It's not so
in vim but it happens in the Sublime Editor and when you invoke runhaskell.
So the best is to write you program in the separate file and then load it
in the ghci and invoke the function main (which runs the sound rendering
with the function dac).


[1] http://hackage.haskell.org/package/temporal-csound-0.3.0

[2] http://www.csounds.com/resources/downloads/

Cheers,
Anton
_______________________________________________
haskell-art mailing list
haskell-art@lurk.org
http://lists.lurk.org/mailman/listinfo/haskell-art

Reply via email to