Giter Site home page Giter Site logo

bbb.max's Introduction

bbb-max

Install

  • clone into /path/to/Max 7/Library

js

bbb.js (add to global scope)

  • function postln(arguments ...)
  • function errorln(arguments ...)

post/error "\n" at end of arguments

  • function postJson(obj, replacer, pretty)
  • function errorJson(obj, replacer, pretty)

i.e. post/error(JSON.stringify(obj, replacer, pretty))

  • console
    • log(arguments ...)
    • info(arguments ...)
    • warn(arguments ...)
    • error(arguments ...)

bbb.js (when include or require)

  • function parsearguments()

parse jsarguments.

if [js hoge.js fuga @attr1 2 piyo @attr2] then parsearguments returns

{
    name: 'hoge.js',
    normal: ['fuga', 'piyo'],
    attribute: {
        attr1: 2,
        attr2: undefined
    }
}
  • function arg2array(arguments, from)

similar to arrayfromargs.

from is offset of slice.

  • function extend(dst, src)

extend object.

  • function setTimeout(callback, delay, args ...)
  • function setInterval(callback, delay, args ...)
  • function clearTimeout(timer)
  • function clearInterval(timer)

thin wrapper of Task to use like normal javascript.

bbb.osc.prepend

bbb.osc.append

prepend/append component to address of osc message.

input (/foo 1 2 3) to [bbb.osc.prepend /bar] then we got output (/bar/foo 1 2 3).

input (/foo 1 2 3) to [bbb.osc.append /bar] then we got output (/foo/bar 1 2 3).

bbb.osc.removehead

bbb.osc.removetail

remove component from address of osc message.

input (/foo/bar/baz 1 2 3) to [bbb.osc.removehead 2] then we got output (/baz 1 2 3).

input (/foo/bar/baz 1 2 3) to [bbb.osc.removetail 2] then we got output (/foo 1 2 3).

bbb.osc.route

like CNMAT OSC-Route.

patches

bbb.LCXL

parse and treat midi message from Launch Control XL.

attribute:

  • @port [default: "Launch Control XL"]
  • @preset [default: "bbb.LCXL.default.js"]

output format:

  • ( "knob1" index value midi_ch )
  • ( "knob2" index value midi_ch )
  • ( "knob3" index value midi_ch )
  • ( "fader" index value midi_ch )
  • ( "button1" index value midi_ch )
  • ( "button2" index value midi_ch )
  • ( "cursor" index value midi_ch )
  • ( "other" index value midi_ch )

where:

  • index is
    • 0 - 3 (cursor and other)
    • 0 - 7 (otherwise)
  • cursor 0, 1, 2, 3 means "Send Up", "Send Down", "Track Left", "Track Right"
  • other 0, 1, 2, 3 means "Device", "Mute", "Solo", "Record Arm"

bbb.LCXL.UI

use with bbb.LCXL

see bbb.LCXL.help

Author

  • ISHII 2bit [bufferRenaiss co., ltd.]
  • ishii[at]buffer-renaiss.com

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.