Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@trackr/effects-gain

jorishermans15ISC0.4.0TypeScript support: included

A subpackage of trackr that contains gain effects.

gain, web audio, volume, random gain

readme

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.

changelog

Trackr

0.4.0

  • add an instrument with wavebanks to the project

0.2.3

  • add a subpackage for gain effects

0.2.2

  • add the method step to index, also adding gain as a basic effect in the core library

0.2.1

  • Fix play, to play something usefull

0.2.0

  • Export sequencer, play, TrackrStep

0.1.1

  • First version