Giter Site home page Giter Site logo

rynr / launchpad Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 2.0 215 KB

Library to access a Novation Launchpad in a java application.

Home Page: https://rynr.github.io/launchpad/

License: Apache License 2.0

Java 100.00%
launchpad novation-launchpad java

launchpad's Introduction

Launchpad

This library can be used to access a Novation Launchpad from a java application.

Usage

You can directly use it from maven central:

<dependency>
  <groupId>org.rjung.util</groupId>
  <artifactId>launchpad</artifactId>
  <version>1.0</version>
</dependency>

To send colors the the launchpad, the methods set(pad, color):

launchpad.set(Pad.A4, Color.RED);
launchpad.set(Pad.find(3, 1), Color.GREEN);

To retrieve messages, implement a LaunchpadReceiver and register it to the launchpad instance. The LaunchpadReceiver will now be called always, when a Command is received.

new Launchpad(new LaunchpadHandler() {
    public void recieve(MidiCommand command) {
        System.out.println(command);
    }
});

Example

This is what you could build

There's also a rewritten version of the Games of Life in the branch life.

Build it yourself

The build uses maven. You don't need to install anything besides a java 8 development kit (jdk8). Now just run:

./mvn clean package

The build jar can be found in the target-folder.

Info

launchpad's People

Contributors

dependabot-preview[bot] avatar rynr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

launchpad's Issues

Clojure library based on rynr/launchpad

Just a heads up, I've made a Clojure wrapper around this library.

This is just to let you know it exists, and to thank you for this wonderful library that made my life a lot easier.

preoctopus/launchpad-clj

It is very basic at the moment, but will improve as we begin to integrate it.

No Tests at all!!!

Currently the code is straight forward, but when adding more it would be nice to have the defaults tested.

Hide `Receiver` implementation

To receive midi messages, the Launchpad class does implement a Receiver. Like this the method public void send(MidiMessage message, long timeStamp) is public available and should not.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.