JavaScript library for web audio related projects
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
scripts
src
.gitignore
LICENSE
README.md
index.js
package.json
server.js

README.md

prong

A collection of components to display and play DAW style multi-track sequences of audio

Examples can be seen here http://forkaudio.org/prong/

sample usage

import prong from 'prong'

// draw a 3 track sequence to the element with id 'sequence'

var sequence = prong.sequence()
  .propertyPanelWidth(95)
  .width(705)
  .canSelectLoop(true)
  .trackHeight(50)
  .fitTimelineToAudio(false)
  .zoomable(true)
  .scrollable(true)
  .waveformVerticalZoom(1)
  .editable(true)
  .tracks([
    {
      type : 'audio',
      src : '/path/to/drums.mp3'
    },
    {
      type : 'audio',
      src : '/path/to/bass.mp3'
    },
    {
      type : 'audio',
      src : '/path/to/keys.mp3'
    }
  ])
  .audioOut(prong.audioContext().destination)
  .draw('#sequence')