Questions tagged [euterpea]

Haskell domain-specific language for computer music applications

Euterpea is a cross-platform, domain-specific language for computer music applications embedded in the Haskell programming language.

Euterpea is a wide-spectrum language, suitable for high-level music representation, algorithmic composition, music analysis, working with MIDI, low-level audio processing, sound synthesis, and virtual instrument design.

12 questions
14
votes
2 answers

Why is `stack build` altering my .cabal file?

I am attempting to build a project which uses Euterpea. Running stack build I get the following error, suggesting that I need to add Euterpea to the build-depends section of my .cabal file. $ sb composition-0.1.0.0: build (lib + exe) Preprocessing…
mherzl
  • 5,624
  • 6
  • 34
  • 75
7
votes
1 answer

Installing Euterpea for computer music applications and Haskell

I followed the instructions here http://www.euterpea.com for installing Euterpea (a domain-specific language for computer music applications embedded in Haskell), and I received a message that certain packages and things failed to install (see the…
user65526
  • 685
  • 6
  • 19
4
votes
1 answer

Installation of Haskell Package Euterpea fails on NixOs

Unfortunately, the installation of the haskell package 'Euterpea' fails on NixOS: The Nixpkgs manual states that all haskell packages registered on hackage (which the Euterpea package is) are included in the nix package manager and have to be…
Anton Harald
  • 5,772
  • 4
  • 27
  • 61
3
votes
1 answer

Issue while Haskell instaling Euterpea's dependency, HCodecs did not skip version check for a later version installed

While I was installing Euterpea today, I found HCodecs-0.5.1 (a dependency for Euterpea) was tend to always to beult-fail So I go to Hackage.Haskell.org, checked that HCodecs offers a latest version: HCodecs-0.5.2, and I installed it successfully by…
KaijCH
  • 33
  • 4
2
votes
1 answer

Playing random note durations with Euterpea / Haskell

I'm just getting started with Euterpea / Haskell, and I am trying to write a simple script that randomizes the note durations. I wrote this that works: import Euterpea playMyNote = play $ line [c 4 qn, c 4 qn, d 4 qn, e 4 qn, a 4 qn, a 4 qn, g 4…
reallymemorable
  • 882
  • 1
  • 11
  • 28
2
votes
1 answer

Haskell ghc, linking error when trying to compile a program using ghc and Euterpea

I'm checking out the computing music development library Euterpea and I'm trying to compile the following basic program: import Euterpea t251 :: Music Pitch t251 = let dMinor = d 4 wn :=: f 4 wn :=: a 4 wn gMajor = g 4 wn :=:…
fayong lin
  • 214
  • 2
  • 15
1
vote
0 answers

Haskell: Euterpea PortMidi warning: get_free_output_buffer() wait timed out after 1000ms

Hi I tried to play a piano song with Euterpea, but after playing it for a few seconds it just gives me the error msg: PortMidi warning: get_free_output_buffer() wait timed out after 1000ms. repeatedly until I disrupt the program. I'm using Windows…
myself
  • 11
  • 3
1
vote
0 answers

Starting signal function with an event. Haskell - Euterpea

I'm developing FRP application using Euterpea and got major problem in understanding how to do this one thing. I got my own Signal function that I want to trigger when specific event occurs. Now my SigFun is just running from the start of the…
Lovaz
  • 227
  • 1
  • 7
1
vote
0 answers

Modulating audio signal with Euterpea

I seem to have a problem with choosing library for my project. I have to write an application in Haskell to modulate, filter etc. audio. Let's say I want to read an audio file and apply low-pass filter to it. Is it possible to write the low-pass…
Lovaz
  • 227
  • 1
  • 7
0
votes
2 answers

Start Euterpea Music in main function together with gameworld? (in Haskell)

Making a game and looking for a way to start the music (made in haskell with Euterpea) when calling the main function to start the game. The problem with this code is that it will play the music but then it won't start the game. If I put the music…
blobfish
  • 25
  • 3
0
votes
0 answers

How to get Haskell script to load when a web page loads

I am super new to Haskell and I am trying to learn it by build a web music project. I successfully installed Euterpea and got the MIDI set up. I wrote a super basic script that imports Euterpea and plays a note. I now want to put my script onto my…
reallymemorable
  • 882
  • 1
  • 11
  • 28
0
votes
1 answer

Euterpea Exception: No MIDI output device found

I am trying to get started using Haskell's Euterpea library. My first goal was to get it to play a given sound file (e.g. mp3 or wav), but first I ran into an issue following instructions to get it to just play a simple note sound in ghci. Following…
mherzl
  • 5,624
  • 6
  • 34
  • 75