Skip to content

Commit 8c9f79d

Browse files
authored
fix: Load p5-sound-adapter to enable AudioNode.connect patch (#5300)
1 parent 2b6c4d9 commit 8c9f79d

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

js/activity.js

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ let MYDEFINES = [
6565
"preloadjs.min",
6666
"howler",
6767
"p5.min",
68-
"p5.sound.min",
68+
"p5-sound-adapter",
6969
"p5.dom.min",
7070
// 'mespeak',
7171
"Chart",
@@ -1899,9 +1899,8 @@ class Activity {
18991899
// Queue and take first step.
19001900
if (!this.turtles.running()) {
19011901
this.logo.runLogoCommands();
1902-
document.getElementById(
1903-
"stop"
1904-
).style.color = this.toolbar.stopIconColorWhenPlaying;
1902+
document.getElementById("stop").style.color =
1903+
this.toolbar.stopIconColorWhenPlaying;
19051904
}
19061905
this.logo.step();
19071906
} else {
@@ -2221,9 +2220,8 @@ class Activity {
22212220
i < this.palettes.dict[this.palettes.activePalette].protoList.length;
22222221
i++
22232222
) {
2224-
const name = this.palettes.dict[this.palettes.activePalette].protoList[i][
2225-
"name"
2226-
];
2223+
const name =
2224+
this.palettes.dict[this.palettes.activePalette].protoList[i]["name"];
22272225
if (name in obj["FLOWPLUGINS"]) {
22282226
// eslint-disable-next-line no-console
22292227
console.log("deleting " + name);
@@ -4930,9 +4928,8 @@ class Activity {
49304928
}
49314929
}
49324930
staffBlocksMap[staffIndex].baseBlocks[0][0][firstnammedo][4][0] = blockId;
4933-
staffBlocksMap[staffIndex].baseBlocks[repeatId.end][0][
4934-
endnammedo
4935-
][4][1] = null;
4931+
staffBlocksMap[staffIndex].baseBlocks[repeatId.end][0][endnammedo][4][1] =
4932+
null;
49364933

49374934
blockId += 2;
49384935
} else {
@@ -5000,9 +4997,8 @@ class Activity {
50004997
prevnameddo
50014998
][4][1] = blockId;
50024999
} else {
5003-
staffBlocksMap[staffIndex].repeatBlock[
5004-
prevrepeatnameddo
5005-
][4][3] = blockId;
5000+
staffBlocksMap[staffIndex].repeatBlock[prevrepeatnameddo][4][3] =
5001+
blockId;
50065002
}
50075003
if (afternamedo !== -1) {
50085004
staffBlocksMap[staffIndex].baseBlocks[repeatId.end][0][
@@ -5853,8 +5849,8 @@ class Activity {
58535849
let customName = "custom";
58545850
if (myBlock.connections[1] !== null) {
58555851
// eslint-disable-next-line max-len
5856-
customName = this.blocks.blockList[myBlock.connections[1]]
5857-
.value;
5852+
customName =
5853+
this.blocks.blockList[myBlock.connections[1]].value;
58585854
}
58595855
// eslint-disable-next-line no-console
58605856
console.log(customName);

0 commit comments

Comments
 (0)