Package Exports
- soundbank-multi
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (soundbank-multi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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-multiExample
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
}
}
}
})