mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-30 15:59:16 +02:00
min
This commit is contained in:
@@ -158,8 +158,8 @@
|
|||||||
</label>
|
</label>
|
||||||
<label>Y scale:
|
<label>Y scale:
|
||||||
<select id="yscaleSel">
|
<select id="yscaleSel">
|
||||||
<option value="1" selected>0 – 1</option>
|
<option value="1" selected>-1 – 1</option>
|
||||||
<option value="2">0 – 2</option>
|
<option value="2">-2 – 2</option>
|
||||||
<option value="auto">Auto</option>
|
<option value="auto">Auto</option>
|
||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
@@ -219,8 +219,8 @@ function drawScope() {
|
|||||||
ctx.fillRect(0, 0, W, H);
|
ctx.fillRect(0, 0, W, H);
|
||||||
|
|
||||||
// determine y range
|
// determine y range
|
||||||
let yMin = 0, yMax = 1;
|
let yMin = -1, yMax = 1;
|
||||||
if (yscale === '2') { yMax = 2; }
|
if (yscale === '2') { yMin = -2; yMax = 2; }
|
||||||
else if (yscale === 'auto') {
|
else if (yscale === 'auto') {
|
||||||
const vals = [...histInput, ...histAudio].filter(v => v !== null);
|
const vals = [...histInput, ...histAudio].filter(v => v !== null);
|
||||||
if (vals.length) {
|
if (vals.length) {
|
||||||
|
|||||||
Reference in New Issue
Block a user