Euterpea / Euterpea2

Euterpea version 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question : Using Euterpea2 to play music in a game ?

OlivierSohn opened this issue · comments

Hello,

I wonder if I can use Euterpea to play music in a game?

I tried this very simple test, where x1 is one of the example songs:

import Euterpea
main = play x1

And I get the error : "No MIDI output device found"

Should the game itself implement a virtual midi device that receives midi events?

By any chance do you know any example of how to do this in Haskell?

Thanks!

Oh I just found http://www.euterpea.com/euterpea/setting-up-midi/ which may answer this question, sorry for the noise :)