h1data / M4L-ioRouting-js

A script for MIDI/AUDIO routing in Max for Live devices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ioRouting.js

A script for MIDI/AUDIO routing in Max for Live devices.

Usage

Check sample device for further details.

Arguments of js object

js ioRoutings.js io-type [channel-offset]

  • io-type
    midi_inputs, midi_outputs, audio_inputs, or audio_outputs
  • channel-offset (optional)
    number of channel pairs (zero-based counting)

Messages

  • init
    Calls initialize method. Must be called by bang from live.thisdevice, not loadbang or loadmess.
  • setchannel
    Arguments: channel-number [int]
    Changes the routing channel by number of lists. (zero-based counting)
  • settype
    Arguments: type-number [int]
    Changes the routing type by number of lists. (zero-based counting)
  • routethistrack
    Change routing to the MIDI track the device belongs to. (only works with MIDI input)
    Arguments: force routing [int]
    With 1, works to whichever the routing was selected.
    Without 1 or not specified, works only when the routing was selected to "No Input".

Output

  • Out left outlet: Messages for live.menu objects; selector for the routing type (track or external device).
  • Out right outlet: Messages for live.menu objects; selector for the routing channel (channel or subcategories).

Each live.menu objects connected to js has to be set attributes below;

  • Parameter Visibility -> hidden
  • Initial Enable -> false

Miscellaneous

  • This script use unofficial attributes for live.menu. The author does not own any responsibilities for using the script.
  • Undoing a series of changes for MIDI input type or channel may cause extra revert for pulldown lists. (issue #1)

About

A script for MIDI/AUDIO routing in Max for Live devices.


Languages

Language:JavaScript 100.0%