Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.14 KB

README.md

File metadata and controls

42 lines (30 loc) · 1.14 KB

lfo-motion

Set of client-side lfo modules dedicated to sensors capture, filtering and movement analysis.

see waves-lfo

Install

The final application must import the lfo-motion modules (aka the plugin) and the waves-lfo library

npm install [--save --save-exact] waves-lfo
npm install [--save --save-exact] ircam-rnd/lfo-motion
import * as lfo from 'waves-lfo'
import * as lfoMotion from 'lfo-motion'

Example Use

import * as lfo from 'waves-lfo/client';
import * as lfoMotion from 'lfo-motion';

const motionInput = new lfoMotion.source.MotionInput();
const sampler = new lfoMotion.operator.Sampler({ frameRate: 50 });
const orientation = new lfoMotion.operator.Orientation();
const logger = new lfo.sink.Logger({ data: true });

motionInput.connect(sampler);
sampler.connect(orientation);
orientation.connect(logger);

motionInput.init().then(() => motionInput.start())

Credits

This library is developed by the ISMM team at IRCAM, within the context of the RAPID-MIX project, funded by the European Union’s Horizon 2020 research and innovation programme.