Skip to content
This repository has been archived by the owner on Apr 27, 2019. It is now read-only.

mmckegg/soundbank-slot-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Visual node editor for soundbank slots.

Resources

Stars

Watchers

Forks

Packages