Skip to content

Latest commit

 

History

History
63 lines (59 loc) · 2.58 KB

README.md

File metadata and controls

63 lines (59 loc) · 2.58 KB

#AudioLibraryJs

This project contains several jquery plugin's - using the jquery ui widget design pattern - to easily create a Web Audio API based audio player and a Web Audio API based audio editor. These two plugin's can work side by side but don't necessarily need to. Since it is web audio api based, the plugin only works on webkit browsers (Chrome/Safari on mac).

##Third Party Tools (Required)

  • Jquery 1.8 (and later)
  • Jquery-ui-1.10 (only the core, draggable and droppable needed)
  • processing-1.4.1.js

#How to use To attach the player to an element, simply add audioPlayerGraphical({:options}) to the jquery object. Example ####HTML

Play Stop Save Clear ####Javascript $('#player').audioPlayerGraphical({ bpm: 100, stopButton: '#playerStop', saveButton: '#playerSave', playButton: '#playerPlay', clearButton: '#playerReset' });

To use the audio editor, see the following example. ####HTML

Drag to player when finished.
####Javascript //plug-in for viewer $('#sampleWaveform').audioViewer({ playButton: '#samplePlay', zoomInButton: '#sampleZoomIn', zoomOutButton: '#sampleZoomOut', dropFileBox: '#sampleTrim' });