Giter Club home page Giter Club logo

superdirtmidi.sc's Introduction

SuperDirtMIDI.sc

Adds more MIDI in capabilities to SuperDirt

Features

  • Easily map MIDI CC to Synthdef parameters
  • Setup external controller for sending CC messages from Tidal (to do...)

Usage

First make sure to have SuperDirt running.

// Setup midi first
MIDIIn.connectAll;

// Setup SuperDirtMIDI
~smidi = SuperDirtMIDI.new.start;

// Map some CCs to some Synthdef parameter, and pass a function to transform
// the CC value. `v` is a value from 0-1 (scaled from 0-127)
~smidi.map(16, \modP, { |v| v * 10 });
~smidi.map(17, \carP, { |v| v * 10 });
~smidi.map(18, \detune, { |v| v * 20 });
~smidi.map(19, \index, { |v| v * 100 });

// You can map and scale values with .mapScaled
// e.g. this maps CC 16 to \modP and scales values from 3 to 30
~smidi.mapScaled(16, \modP, 3, 30);

// Trace parameter changes and print them on the Post console
~smidi.trace;
~smidi.trace(false); // stop trace

// Finally, free CC handlers when not using them anymore
// you will have to run .start again to remap them.
~smidi.free;

Installation

Open up SuperCollider and evaluate the following line of code: Quarks.install("https://github.com/munshkr/SuperDirtMIDI.sc")

When the Quark is installed, recompile your class library. Go to Language menu, Recompile class library, or hit Ctrl+Shift+L.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/munshkr/SuperDirtMIDI.sc. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

LICENSE

See LICENSE

superdirtmidi.sc's People

Contributors

munshkr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.