Skip to content
This repository was archived by the owner on Oct 27, 2026. It is now read-only.
flowkeyPublic archive

About

Midi Sound package for Meteor

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Midi Sound

Play some MIDI Sounds in the browser. Right now only a Piano is supported. Web Browser Support Only!

midiSound

The package exports midiSound with the following functions

load()

Loads the needed soundfont for the piano, returns a promise

noteOn(key, velocity, channel = 0);

Call to start playing a note. Sets main volume with velocity.

noteOff(key, velocity, channel = 0);

Call to stop a currently playing note. Sets main volume with velocity.

setSustain(sustain, channel = 0);

Midi Sound handles sustain > 0 as pedal on and sustain sustain == 0 as pedal off

unload()

Not implemented right now. Once loaded its in memory.

About

Midi Sound package for Meteor

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages