mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Some minor changes in Satie example.
This commit is contained in:
parent
d176acfc53
commit
a678c51555
1 changed files with 3 additions and 4 deletions
|
@ -18,7 +18,6 @@
|
|||
|
||||
var amount = 8;
|
||||
var step = view.size.width / (amount + 1);
|
||||
var scale = view.size.height / 1.5;
|
||||
var flip = false;
|
||||
|
||||
for (var i = 0; i <= amount; i++) {
|
||||
|
@ -41,15 +40,15 @@
|
|||
}
|
||||
|
||||
function onKeyDown(event) {
|
||||
if (event.key === 'space') {
|
||||
if (event.key === 'space')
|
||||
group.fullySelected = !group.fullySelected;
|
||||
}
|
||||
}
|
||||
|
||||
var audio, source, analyserL, analyserR, freqByteData;
|
||||
|
||||
view.onFrame = function() {
|
||||
var step = view.size.width / (amount + 1);
|
||||
var scale = view.size.height / 1.5;
|
||||
analyserL.getByteFrequencyData(freqByteData);
|
||||
var leftBands = getEqualizerBands(freqByteData, true);
|
||||
analyserR.getByteFrequencyData(freqByteData);
|
||||
|
@ -133,7 +132,7 @@
|
|||
}
|
||||
return bands;
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<canvas id="canvas" resize></canvas>
|
||||
|
|
Loading…
Reference in a new issue