Discussion:
[haskell-art] port midi
Miguel Negrao
2012-12-26 16:49:10 UTC
Permalink
Hi all,

I was trying to get MIDI working with Haskell. I have portmidi installed via homebrew on an osx 10.7 machine with ghc 7.4.2. trying to use the portmidi package I get an error:

Prelude> import Sound.PortMidi
Prelude Sound.PortMidi> initialize
Loading package PortMidi-0.1.3 ... linking ... done.
Segmentation fault: 11

Any hints on how to proceed ?

best,
Miguel
http://www.friendlyvirus.org/miguelnegrao/
Balazs Komuves
2012-12-26 19:51:37 UTC
Permalink
Hi,

I cannot help with portmidi, however, if you don't need Linux
compatibility, the hmidi package (http://hackage.haskell.org/package/hmidi/)
works on both OSX and Windows (and does not have any external
dependencies). There are some simple examples included in the package.
Don't forget to use the --threaded flag when building.

Balazs


On Wed, Dec 26, 2012 at 5:49 PM, Miguel Negrao <
Post by Miguel Negrao
Hi all,
I was trying to get MIDI working with Haskell. I have portmidi installed
via homebrew on an osx 10.7 machine with ghc 7.4.2. trying to use the
Prelude> import Sound.PortMidi
Prelude Sound.PortMidi> initialize
Loading package PortMidi-0.1.3 ... linking ... done.
Segmentation fault: 11
Any hints on how to proceed ?
best,
Miguel
http://www.friendlyvirus.org/miguelnegrao/
_______________________________________________
haskell-art mailing list
http://lists.lurk.org/mailman/listinfo/haskell-art
Henning Thielemann
2012-12-27 19:33:17 UTC
Permalink
I cannot help with portmidi, however, if you don't need Linux compatibility,
the hmidi package (http://hackage.haskell.org/package/hmidi/) works on both
OSX and Windows (and does not have any external dependencies). There are
some simple examples included in the package. Don't forget to use the
--threaded flag when building.
JACK and the Haskell jack package are another option.

Continue reading on narkive:
Loading...