PortMidi-simple: Simplified PortMidi wrapper

[ bsd3, library, sound ] [ Propose Tags ]


  • Sound
    • PortMidi
      • Sound.PortMidi.Simple
      • Sound.PortMidi.SysEx


Maintainer's Corner

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],
Change log ChangeLog.md
Dependencies base (>=4.7 && <5), PortMidi, PortMidi-simple [details]
License BSD-3-Clause
Copyright Alexander Bondarenko
Author Alexander Bondarenko
Maintainer aenor.realm@gmail.com
Category Sound
Source repo head: git clone https://gitlab.com/dpwiz/PortMidi-simple
Uploaded by AlexanderBondarenko at 2021-02-27T12:09:29Z
Distributions NixOS:
Executables channel-reader
Downloads 228 total (0 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2021-02-27 [all 3 reports]

Readme for PortMidi-simple-

[back to package description]

PortMidi-simple 🚢🎶

Reading from MIDI controllers should not be too difficult.

import qualified Sound.PortMidi.Simple as Midi

main = Midi.withMidi do
  Just device <- Midi.findInputNamed "nanoKONTROL2"
  Midi.withInput device \stream ->
    Midi.withReadMessages stream 256 \readMessages ->
      forever do
        readMessages >>= mapM_ print
        threadDelay 1000