mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 00:27:58 +00:00
Remove subtle blip on waveform in analysis example (#410)
This commit is contained in:
parent
81f6ae1144
commit
2886bd10e5
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@
|
|||
waveContext.lineJoin = "round";
|
||||
waveContext.lineWidth = 6;
|
||||
waveContext.strokeStyle = waveformGradient;
|
||||
waveContext.moveTo(0, (values[0] / 255) * canvasHeight);
|
||||
waveContext.moveTo(0, (values[0] + 1) / 2 * canvasHeight);
|
||||
for (var i = 1, len = values.length; i < len; i++){
|
||||
var val = (values[i] + 1) / 2;
|
||||
var x = canvasWidth * (i / len);
|
||||
|
|
Loading…
Reference in a new issue