sm

soundbank-multi

Repeat template descriptor for every item in input array, replacing placeholder with current item.

Showing:

Popularity

Downloads/wk

5

GitHub Stars

2

Maintenance

Last Commit

7yrs ago

Contributors

0

Package

Dependencies

0

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

soundbank-multi

Repeat template descriptor for every item in input array, replacing placeholder with current item.

Use as a value provider in soundbank.

Install

$ npm install soundbank-multi

Example

Create a chord slot:

var Soundbank = require('soundbank')
var audioContext = new AudioContext()

audioContext.providers = {
  multi: require('soundbank-multi')
}

audioContext.sources = {
  oscillator: require('soundbank-oscillator')
}

var soundbank = Soundbank(audioContext)
soundbank.connect(audioContext.destination)

soundbank.update({
  id: 'note0',
  offset: 0,
  sources: {
    values: [60, 65, 68],
    template: {
      { node: 'oscillator',
        shape: 'square',
        note: {$value: true} // value is injected here
      }
    }
  }
})

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100