							// midiBuffer.prime actually builds the output buffer.
							return midiBuffer.prime();
						}).then(function () {
							// At this point, everything slow has happened. midiBuffer.start will return very quickly and will start playing very quickly without lag.
							midiBuffer.start();
							return Promise.resolve();
						}).catch(function (error) {
							if (error.status === "NotSupported") {
								stopAudioButton.setAttribute("style", "display:none;");
								var audioError = document.quer