Spaces:
Sleeping
Sleeping
cc curve
Browse files- javascript/app.js +2 -2
javascript/app.js
CHANGED
@@ -415,7 +415,7 @@ class MidiVisualizer extends HTMLElement{
|
|
415 |
path.setAttribute('stroke', `rgba(${color.r}, ${color.g}, ${color.b}, 0.6)`);
|
416 |
path.setAttribute('stroke-width', "1");
|
417 |
path.setAttribute('d',
|
418 |
-
t===0?`M ${x} ${y}`:`M 0 ${127*this.config.noteHeight} H ${x}
|
419 |
track.svg.appendChild(path);
|
420 |
track.ccPaths.set(controller, path);
|
421 |
track.lastCC.set(controller, value);
|
@@ -426,7 +426,7 @@ class MidiVisualizer extends HTMLElement{
|
|
426 |
path.removeAttribute('visibility');
|
427 |
}
|
428 |
let d = path.getAttribute("d");
|
429 |
-
d += `H ${x}
|
430 |
path.setAttribute('d', d);
|
431 |
return path
|
432 |
}
|
|
|
415 |
path.setAttribute('stroke', `rgba(${color.r}, ${color.g}, ${color.b}, 0.6)`);
|
416 |
path.setAttribute('stroke-width', "1");
|
417 |
path.setAttribute('d',
|
418 |
+
t===0?`M ${x} ${y}`:`M 0 ${127*this.config.noteHeight} H ${x} V ${y}`);
|
419 |
track.svg.appendChild(path);
|
420 |
track.ccPaths.set(controller, path);
|
421 |
track.lastCC.set(controller, value);
|
|
|
426 |
path.removeAttribute('visibility');
|
427 |
}
|
428 |
let d = path.getAttribute("d");
|
429 |
+
d += `H ${x} V ${y}`
|
430 |
path.setAttribute('d', d);
|
431 |
return path
|
432 |
}
|