This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-animated-pages/core-animated-pages.html"> | |
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html"> | |
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html"> | |
<link rel="import" href="../core-animated-pages/transitions/slide-down.html"> | |
<link rel="import" href="../core-animated-pages/transitions/slide-up.html"> | |
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html"> | |
<polymer-element name="my-element"> | |
<template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var timer = null; | |
var domhrtTimeAtStartOfPerformance; | |
var msgIndex; | |
var PREQUEUE = 0; // with a conformant sendMIDIMessage w/ timestamps, could be set to a larger number like 200. | |
function tick() { | |
var msg, delay; | |
var domhrtRelativeTime = Math.round(window.performance.webkitNow() - | |
domhrtTimeAtStartOfPerformance); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var INTERVAL = 200; // in milliseconds | |
function sendMIDISequence(MIDIAccess) { | |
setIntervalHandle = setInterval(function () { | |
var msg, delay, setIntervalHandle, domhrtRelativeTime; | |
domhrtRelativeTime = Math.round(window.performance.webkitNow() - | |
domhrtTimeAtStartOfPerformance); | |
while (msgIndex<sequenceLength) { |