@trackr/effects-gain
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

Trackr Gain Effects

This package provides a gain and randomGain to add volume to your step as an effect.

Look at this example below to get you started.

const s1 = step(noteC3, 1, oscillator({type: 'sine'}), gain({value: 0.1}));
const s2 = step(noteC5, 1, oscillator({type: 'sine'}), randomGain());

First part is the note and the last part is the octave.

/@trackr/effects-gain/

    Package Sidebar

    Install

    npm i @trackr/effects-gain

    Weekly Downloads

    11

    Version

    0.4.0

    License

    ISC

    Unpacked Size

    77.7 kB

    Total Files

    74

    Last publish

    Collaborators

    • jorishermans