N00b's Programming Machine

    soundbank-slot-editor

    2.3.1 • Public • Published

    soundbank-slot-editor

    Visual node editor for soundbank audio-slots.

    Used as the sound editor in Loop Drop.

    Install

    $ npm install soundbank-slot-editor

    TODO

    Currently only allows the predefined set of sources, processors, modulators from Loop Drop. Needs to be user definable, or get available nodes automatically from AudioContext.

    API

    var SlotEditor = require('soundbank-slot-editor')
    var element = document.getElementById('SlotEditor')
     
    var soundbank = INSTANCE_OF_SOUNDBANK
     
    var currentId = null
    var editor = SlotEditor(audioContext, element)
     
    function editSlot(id){
      var descriptor = soundbank.getDescriptor(id)
      editor.set(descriptor)
      currentId = id
    }
     
    editor.on('change', function(descriptor){
      soundbank.update(descriptor)
    })
     
    editSlot(0)

    Install

    npm i soundbank-slot-editor

    DownloadsWeekly Downloads

    0

    Version

    2.3.1

    License

    ISC

    Last publish

    Collaborators

    • mmckegg