PortMidi-simple: Simplified PortMidi wrapper

[ bsd3, library, program, sound ] [ Propose Tags ]

[Skip to Readme]
Versions [faq] 0.1.0.0
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:0.1.0.0
Executables channel-reader
Downloads 39 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2021-02-27 [all 3 reports]

Modules

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

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for PortMidi-simple-0.1.0.0

[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