Merge branch 'master' of https://github.com/mudcube/MIDI.js
This commit is contained in:
commit
378e881282
2 changed files with 8 additions and 5 deletions
|
@ -102,11 +102,14 @@ if (window.AudioContext || window.webkitAudioContext) (function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
// FIX: needs some way to fade out smoothly..
|
// FIX: needs some way to fade out smoothly..
|
||||||
|
// POSSIBLE FIX: fade out smoothly using gain and ramping to value
|
||||||
root.noteOff = function (channel, note, delay) {
|
root.noteOff = function (channel, note, delay) {
|
||||||
// var source = sources[channel+""+note];
|
var source = sources[channel+""+note];
|
||||||
// if (!source) return;
|
if (!source) return;
|
||||||
// source.noteOff(delay || 0);
|
source.gain.linearRampToValueAtTime(1, delay);
|
||||||
// return source;
|
source.gain.linearRampToValueAtTime(0, delay + 0.1);
|
||||||
|
source.noteOff(delay || 0);
|
||||||
|
return source;
|
||||||
};
|
};
|
||||||
|
|
||||||
root.chordOff = function (channel, chord, delay) {
|
root.chordOff = function (channel, chord, delay) {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# ------------------------------------
|
# ------------------------------------
|
||||||
# nodejs - http://nodejs.org/
|
# nodejs - http://nodejs.org/
|
||||||
# gzip - http://www.gzip.org/
|
# gzip - http://www.gzip.org/
|
||||||
# fluidsynth - http://www.audiosoftstore.com/downloads.html
|
# fluidsynth - http://sourceforge.net/apps/trac/fluidsynth/
|
||||||
# oggenc - http://www.rarewares.org/ogg-oggenc.php
|
# oggenc - http://www.rarewares.org/ogg-oggenc.php
|
||||||
# lame - http://lame.sourceforge.net/
|
# lame - http://lame.sourceforge.net/
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue