PortMidi-simple: Simplified PortMidi wrapper

[ bsd3, library, sound ] [ Propose Tags ]

Modules

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1
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.1
Executables channel-reader
Downloads 356 total (9 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-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