Skip to content

0.4.0

Compare
Choose a tag to compare
@ddj231 ddj231 released this 13 Jan 22:52
· 119 commits to master since this release

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)