Adjust master gain ramp for improved audio dynamics during sample loading
Browse files- index.html +1 -1
index.html
CHANGED
|
@@ -974,7 +974,7 @@
|
|
| 974 |
await Tone.start();
|
| 975 |
await Tone.loaded();
|
| 976 |
log("✅ Piano samples loaded");
|
| 977 |
-
|
| 978 |
if (ws) ws.close();
|
| 979 |
|
| 980 |
setStatus(`Đang kết nối AI với ${currentBpm} BPM…`, 'info');
|
|
|
|
| 974 |
await Tone.start();
|
| 975 |
await Tone.loaded();
|
| 976 |
log("✅ Piano samples loaded");
|
| 977 |
+
masterGain.gain.rampTo(1.5, 0.1);
|
| 978 |
if (ws) ws.close();
|
| 979 |
|
| 980 |
setStatus(`Đang kết nối AI với ${currentBpm} BPM…`, 'info');
|