Re: [haskell-art] asound not found during Euterpea installation
Yippee ... Euterpea got built and installed correctly. Thanks for the asound help. After this, I tried to do play childSong6 - nothing happened - my sound card probably does not support midi. So I installed timidity and ran it as follows timidity -iA -Os - I re-ran ghci and found that it still did not play the music. So did a and generated the midi file. timidity played it beautifully I still cannot believe the quality of synthesis does timidity synthesize the instruments or it has stored samples??? Anyway, it'll be nice if you could give me some pointers on how I could get my timidity to work such that I am able to alter music from GHCI and listen to it directly!!! Regards, Kashyap From: Henning Thielemann lemm...@henning-thielemann.de To: CK Kashyap ck_kash...@yahoo.com; haskell-art@lurk.org haskell-art@lurk.org Sent: Saturday, July 7, 2012 1:20 PM Subject: Re: [haskell-art] asound not found during Euterpea installation On Thu, 5 Jul 2012, CK Kashyap wrote: Hi all, I tried to install Euterpea on ubuntu 12.04 and ran into this problem. Can someone tell me the exact package name that I need to install using apt-get to solve this problem? Resolving dependencies... Configuring PortMidi-0.1.3... cabal: Missing dependency on a foreign library: * Missing C library: asound This problem can usually be solved by installing the system package that provides this library (you may need the -dev version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is. apt-get install libasound2-dev (found with: dpkg --search alsa/pcm.h ) ___ haskell-art mailing list haskell-art@lurk.org http://lists.lurk.org/mailman/listinfo/haskell-art
Re: [haskell-art] asound not found during Euterpea installation
On Sun, 8 Jul 2012, CK Kashyap wrote: After this, I tried to do play childSong6 - nothing happened - my sound card probably does not support midi. So I installed timidity and ran it as follows timidity -iA -Os - I re-ran ghci and found that it still did not play the music. So did a and generated the midi file. timidity played it beautifully Are you on Linux? 'play' is part of the SoX package and should only play pcm audio files. It may try to play the MIDI data as raw pcm data, though. As a first test you can play a MIDI file using simply 'timidity file.mid'. If you run timidity with -iA option, then it is in server mode and may be controlled by other programs like an external keyboard, 'pmidi', our live-sequencer or some Haskell code from GHCi like reactive-balsa. In order to actually control timidity by another program you must connect the controlling program and the controlled program either from the command-line with 'aconnect' or from a GUI like 'patchage', 'qjackctl', 'alsa-patch-bay' or 'kaconnect'. With 'pmidi -l' or 'aconnect -o -i' you can list servers and clients with their ALSA address. I assume that Euterpea uses PortMidi which uses ALSA but in order to be portable PortMidi does not integrate so nicely with the ALSA framework. A program using PortMidi does not appear as an ALSA client or server, it can only directly control other programs. I think the default is that PortMidi writes to the Client 'Midi Through'. So you must connect 'Midi Through' to TiMidity: $ aconnect 'Midi Through' TiMidity I still cannot believe the quality of synthesis does timidity synthesize the instruments or it has stored samples??? TiMidity is a sampling synthesizer. If you want better samples you may install package fluid-soundfont-gm. (For real sound synthesis in Haskell I can assist building synthesizer-llvm. :-) ___ haskell-art mailing list haskell-art@lurk.org http://lists.lurk.org/mailman/listinfo/haskell-art
Re: [haskell-art] asound not found during Euterpea installation
On Thu, 5 Jul 2012, CK Kashyap wrote: Hi all, I tried to install Euterpea on ubuntu 12.04 and ran into this problem. Can someone tell me the exact package name that I need to install using apt-get to solve this problem? Resolving dependencies... Configuring PortMidi-0.1.3... cabal: Missing dependency on a foreign library: * Missing C library: asound This problem can usually be solved by installing the system package that provides this library (you may need the -dev version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is. apt-get install libasound2-dev (found with: dpkg --search alsa/pcm.h ) ___ haskell-art mailing list haskell-art@lurk.org http://lists.lurk.org/mailman/listinfo/haskell-art
[haskell-art] asound not found during Euterpea installation
Hi all, I tried to install Euterpea on ubuntu 12.04 and ran into this problem. Can someone tell me the exact package name that I need to install using apt-get to solve this problem? Resolving dependencies... Configuring PortMidi-0.1.3... cabal: Missing dependency on a foreign library: * Missing C library: asound This problem can usually be solved by installing the system package that provides this library (you may need the -dev version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is. cabal: Error: some packages failed to install: Euterpea-1.0.0 depends on PortMidi-0.1.3 which failed to install. PortMidi-0.1.3 failed during the configure step. The exception was: ExitFailure 1 Regards, Kashyap___ haskell-art mailing list haskell-art@lurk.org http://lists.lurk.org/mailman/listinfo/haskell-art