0.4.0
New Features
- This version adds the ability to load custom instruments in Handel Programs
The syntax is: load someinstrument as instrumentname
The run of the Handel program must be configured. Below is an example. (See documentation for more details)
let myinst = Handel.MakeInstrument({
A1: 'https://tonejs.github.io/audio/casio/A1.mp3',
A2: 'https://tonejs.github.io/audio/casio/A2.mp3'
})
let config = {}
config.instruments = {funkyinst: myinst}
Handel.RunHandel(`
start
load funkyinst as funky
chunk example
play E4 for 4b
enchunk
run example with sound funky
finish
`, config)