Options
All
  • Public
  • Public/Protected
  • All
Menu

Project reaper-osc

reaper-osc

A Node.js library for controlling Cockos Reaper using Open Sound Control (OSC).

API Reference

You can find the API documentation here

Installation

Yarn: yarn add reaper-osc npm: npm i reaper-osc

Basic usage

import {Reaper} from 'reaper-osc';

var reaper = new Reaper();

// Start listening for messages
reaper.startOsc();

// Subscribe to state changes
reaper.tracks[0].onPropertyChanged('isMuted', () => {
  console.log(`Track 1 was ${reaper.tracks[0].isMuted ? 'muted' : 'unmuted'}`);
});

// Wait for the port to open, then start sending commands
reaper.onReady(() => {
  reaper.transport.play();

  reaper.tracks[0].mute();
  reaper.tracks[0].unmute();
});

Generated using TypeDoc