Skip to content

ox-it/phonegap-instrument-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phonegap-instrument-plugin

This plugin provides a javascript interface to play SoundFont instruments on iOS8+ via Midi commands.

It has been developed for use in the Resounding project, a phonegap application which allows users to play instruments from Oxford University's Bate Collection on their iOS devices.

Installation

Add the plugin:

cordova plugin add https://github.com/ox-it/phonegap-instrument-plugin.git

##Usage

####Loading a soundfont Load soundfonts from the www/soundfont folder.

Instrument.loadSoundFont(soundfontName)

Note that the .sf2 extension is note included

####Playing notes Start or stop a note according to the standard midi format.

Instrument.noteOn(noteNumber, velocity)
Instrument.noteOff(noteNumber)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •