We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99cf985 commit b07cf61Copy full SHA for b07cf61
js/turtle-singer.js
@@ -668,7 +668,7 @@ class Singer {
668
static setMasterVolume(logo, volume, blk) {
669
const activity = logo.activity;
670
const firstConnection = activity.logo.blockList[blk].connections[0];
671
- const lastConnection = activity.logo.blockList[blk].connections.slice(-1)[0] || null;
+ const lastConnection = last(activity.logo.blockList[blk].connections);
672
volume = Math.min(Math.max(volume, 0), 100);
673
logo.synth.setMasterVolume(volume, firstConnection, lastConnection);
674
for (const turtle of activity.turtles.turtleList) {
0 commit comments