All Projects → nfroidure → midiplayer

nfroidure / midiplayer

Licence: MIT license
Play MIDI file right in your browser with the WebMIDIAPI

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to midiplayer

Midianimationtrack
SMF (.mid) file importer for Unity Timeline
Stars: ✭ 243 (+358.49%)
Mutual labels:  midi
MIDI.jl
A Julia library for handling MIDI files
Stars: ✭ 55 (+3.77%)
Mutual labels:  midi
music embedding
A package for representing music data based on music theory
Stars: ✭ 19 (-64.15%)
Mutual labels:  midi
Adlplug
FM Chip Synthesizer — OPL & OPN — VST/LV2/Standalone
Stars: ✭ 249 (+369.81%)
Mutual labels:  midi
webaudio-synth
WebAudio Polyphonic Synthesizer
Stars: ✭ 83 (+56.6%)
Mutual labels:  midi
osmid
osmid is a tool to bridge MIDI and OSC. It is currently in use in Sonic Pi
Stars: ✭ 63 (+18.87%)
Mutual labels:  midi
Midimonster
Multi-protocol control & translation software (ArtNet, MIDI, OSC, sACN, ...)
Stars: ✭ 241 (+354.72%)
Mutual labels:  midi
arduino-midi-footswitch
USB MIDI Pedal built with Arduino
Stars: ✭ 24 (-54.72%)
Mutual labels:  midi
midi2img
MIDI to image and image to MIDI conversion scripts
Stars: ✭ 48 (-9.43%)
Mutual labels:  midi
teensy-midi-looper
teensy midi loop recorder
Stars: ✭ 30 (-43.4%)
Mutual labels:  midi
Chataigne
Artist-friendly Modular Machine for Art and Technology
Stars: ✭ 251 (+373.58%)
Mutual labels:  midi
Pedalino
Smart wireless MIDI foot controller for guitarists and more.
Stars: ✭ 105 (+98.11%)
Mutual labels:  midi
from-data-to-sound
🎵 Simple Node.js script for transforming data to a MIDI file
Stars: ✭ 33 (-37.74%)
Mutual labels:  midi
Usb Midi Driver
USB MIDI Driver for Android 3.1 or later
Stars: ✭ 244 (+360.38%)
Mutual labels:  midi
midiomatic
A collection of MIDI filter, generator and processor plugins
Stars: ✭ 23 (-56.6%)
Mutual labels:  midi
Mt32 Pi
🎹🎶 A baremetal kernel that turns your Raspberry Pi 3 or later into a Roland MT-32 emulator and SoundFont synthesizer based on Circle, Munt, and FluidSynth.
Stars: ✭ 231 (+335.85%)
Mutual labels:  midi
Ensembles
A digital arranger workstation powered by FluidSynth
Stars: ✭ 312 (+488.68%)
Mutual labels:  midi
AUParamsApp
An AUv3 MIDI plugin. See the blog post
Stars: ✭ 24 (-54.72%)
Mutual labels:  midi
Miles
Swift Playground that creates jazz improvisations (WWDC 2018)
Stars: ✭ 31 (-41.51%)
Mutual labels:  midi
BSchaffl
MIDI groove quantizer LV2 plugin
Stars: ✭ 28 (-47.17%)
Mutual labels:  midi

MIDIPlayer

MIDIPlayer allows you to play MIDI files in your browser with the help of the WebMIDIAPI.

NPM version Dependency Status devDependency Status

MIDIPlayer can be used either in modern browsers (pick the last bundle) or with NodeJS by installing the following NPM module :

npm install midiplayer

This player is used for this MIDI Karaoke Player

## Usage

//Require MIDIPlayer and MIDIFile modules
var MIDIPlayer = require('midiplayer');
var MIDIFile = require('midifile');


navigator.requestMIDIAccess().then(function(midiAccess) {
	// Creating player
	var midiPlayer = new MIDIPlayer({
	  'output': midiAccess.outputs()[0]
	});

	// creating the MidiFile instance from a buffer (view MIDIFile README)
	var midiFile = new MIDIFile(buffer);

	// Loading the midiFile instance in the player
	midiPlayer.load(midiFile);

	// Playing
	midiPlayer.play(function() {
		console.log('Play ended');
	});

	// Volume
	midiPlayer.volume = 80; // in percent

	// Pausing
	midiPlayer.pause();

	// Resuming
	midiPlayer.resume();

	// Stopping
	midiPlayer.stop();

	// Playing again and loop
	midiPlayer.play(function playCallback() {
		midiPlayer.play(playCallback);
	});

}, function() {
	console.log('No midi output');
});

License

Copyright Nicolas Froidure 2013. MIT licence.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].