Documente Academic
Documente Profesional
Documente Cultură
| ___| | |
| |__ _ _| |_ ___ _ __ _ __ ___ __ _
| __| | | | __/ _ \ '__| '_ \ / _ \/ _` |
| |__| |_| | || __/ | | |_) | __/ (_| |
\____/\__,_|\__\___|_| | .__/ \___|\__,_|
| |
|_|
Homepage: http://haskell.cs.yale.edu/
============================
==== Getting the Source ====
============================
https://github.com/Euterpea/Euterpea
============================
======= Installation =======
============================
Make sure timidity is the default MIDI-Through port. The easiest way to
do this is probably to remove the default dummy port:
sudo rmmod snd_seq_dummy
Then, while Euterpea programs are running, you must have timidity running
in the background:
timidity -iA -Os &
Once Euterpea is set up, you may require additional steps to get MIDI sound
output working. Download SimpleSynth and open it before you run ghci. Its
a software MIDI synthesizer that plays MIDI output through the speaker.
With GHC 7.8.3 or later, to run the GUI examples in ghci reliably, you need
to start gchi with -fno-ghci-sandbox, or set it within ghci as follows:
ghci -fno-ghci-sandbox
*: :set -fno-ghci-sandbox
*: :m + Euterpea.Examples.MUI
*: mui5
With older versions of GHC, you may need the ``EnableGUI trick''. See
Euterpea/Examples/EnableGUI.hs for details.
============================
======= Building HSoM ======
============================
This Euterpea distribution comes with the source code for the book:
Building the source into a PDF requires LaTeX as well as the package
lhs2TeX. Information about LaTeX can be found at
http://www.latex-project.org/
http://www.andres-loeh.de/lhs2tex/
Once these are ready, building the book can be achieved by running the
batch script MakeTex.bat in the HSoM directory. This will compile the
lhs files into tex files, the tex files to a dvi, the dvi into a ps, and
finally the ps to a pdf.
Note that the files of HSoM are Literate Haskell (lhs) files. As such,
they can be run directly with GHC. However, the batch script MakeCode.bat
will extract just the code. Although they can be regenerated, these
extracted files are already included with the Euterpea distribution, and
many are important files for the proper functioning of the library.
============================
====== Getting Started =====
============================
A good place to begin learning about Euterpea is from the text that
accompanies this distribution: The Haskell School of Music, by Paul Hudak.
The source files are available in the HSoM directory, and building them
to a PDF is described above.
import Euterpea
to the imports of your Haskell program. However, for specific advanced uses,
other specific imports can be appropriate.
============================
======== Information =======
============================