Constructor
new Orientation(optionsopt)
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Override default options. Properties
|
- Source:
Example
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())