packages feed

launchpad-control-0.0.1.0: launchpad-control.cabal

Name:                launchpad-control
Version:             0.0.1.0
Synopsis:            High and low-level interface to the Novation Launchpad midi controller.
Description:         High and low-level interface to the Novation Launchpad midi controller.
                     Allows to make "Launchpad apps" easily, or to access the controller
                     in a more low-level way. Some example apps are included.
                     Presently only Mac OSX and Windows is supported (because we rely on hmidi).                     
License:             BSD3
License-file:        LICENSE
Author:              Balazs Komuves
Copyright:           (c) 2013 Balazs Komuves
Maintainer:          bkomuves (plus) hackage (at) gmail (dot) com
Homepage:            http://code.haskell.org/~bkomuves/
Stability:           Experimental
Category:            Music, System
Tested-With:         GHC == 7.4.2
Cabal-Version:       >= 1.8
Build-Type:          Simple

source-repository head
  type:     darcs
  location: http://code.haskell.org/~bkomuves/projects/launchpad-control/

Flag base4
  Description: Base v4
  
Library

  if flag(base4)
    Build-Depends:       base >= 4 && < 5
    cpp-options:         -DBASE_VERSION=4
  else 
    Build-Depends:       base >= 3 && < 4
    cpp-options:         -DBASE_VERSION=3

  Build-Depends:       array, containers, transformers, mtl, 
                       hmidi >= 0.2.1

  Exposed-Modules:     System.MIDI.Launchpad.Control
                       System.MIDI.Launchpad.AppFramework
                       System.MIDI.Launchpad.AppFramework.Internal                       
                       System.MIDI.Launchpad.Apps.DrumSeq
                       System.MIDI.Launchpad.Apps.MonoSeq
                       System.MIDI.Launchpad.Apps.FXControl
                       System.MIDI.Launchpad.Apps.Conway

  Extensions:          BangPatterns

  Hs-Source-Dirs:      .

  ghc-options:         -Wall -fno-warn-unused-matches -fno-warn-name-shadowing


Executable launchpad-control-examples
  
  main-is:             launchpad-control-examples.hs
  
  Build-Depends:       base >= 3, launchpad-control

  Hs-Source-Dirs:      ./examples
  
  -- note that using the threaded runtime is very important when using hmidi!
  ghc-options:         -threaded