ScalaMidiKtl is a project mainly written in Scala, it's free.
classes for easy use of midi controllers in scala
A set of classes for easy use of Midi controllers in scala.
MidiKtl -> A simple controller.
MidiPagedKtl -> A multi-page midi controller. Each page is a virtual scene, whose values are kept. This is recommended for use only with controllers that support incoming midi messages and can reassign the controls based on these messages, i.e. with motorized faders or encoders.
Controllers suported:
Behringer BCR 2000
The controls are:
Behringer BCF 2000
The controls are:
Example
val bcr = new BCRKtl("BCR2000 Port 1","BCR2000 Port1")
bcr.init
//add action for lower left knob
bcr.addAction(Kn(2,0), { v:Double => println(v) })
val bcr = new BCRPagedKtl("BCR2000 Port 1","BCR2000 Port1")
bcr.init
//add action for lower left knob on (virtual) scene 0
bcr.addAction(0,Kn(2,0), { v:Double => println(v) })
//to change scene use the two lower right buttons.