Euterpea / Euterpea2

Euterpea version 2
zlib License
220 stars 71 forks source link

Question : Using Euterpea2 to play music in a game ? #20

Closed OlivierSohn closed 6 years ago

OlivierSohn commented 6 years ago

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!

OlivierSohn commented 6 years ago

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