Skip to content

Commit d8e60ef

Browse files
Updated delay timing
1 parent 1961c82 commit d8e60ef

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ app.use(express.static(path.join(__dirname), {
1414
maxAge: "1h"
1515
}));
1616

17-
const PORT = 3005;
17+
const PORT = 3000;
1818
app.listen(PORT, "127.0.0.1", () => {
1919
console.log(`Music Blocks running at http://127.0.0.1:${PORT}/`);
2020
console.log("Compression enabled");

js/blocks/RhythmBlockPaletteBlocks.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ function setupRhythmBlockPaletteBlocks(activity) {
941941
arg1 = args[1];
942942
}
943943

944-
const noteBeatValue = (1 / arg1) * activity.turtles.ithTurtle(turtle).singer.beatFactor;
944+
const noteBeatValue = (1 / arg1) * activity.turtles.ithTurtle(turtle).singer.beatFactor;
945945
if (logo.inMatrix || logo.tuplet) {
946946
logo.phraseMaker.addColBlock(blk, arg0);
947947
if (logo.tuplet) {
@@ -974,8 +974,7 @@ function setupRhythmBlockPaletteBlocks(activity) {
974974

975975
tur.singer.inNoteBlock.push(blk);
976976

977-
const bpmFactor =
978-
TONEBPM / tur.singer.bpm.length > 0 ? last(tur.singer.bpm) : Singer.masterBPM;
977+
const bpmFactor = TONEBPM / tur.singer.bpm.length > 0 ? last(tur.singer.bpm) : Singer.masterBPM;
979978

980979
const beatValue = noteBeatValue / arg0;
981980

@@ -996,7 +995,6 @@ function setupRhythmBlockPaletteBlocks(activity) {
996995
} else {
997996
__callback = null;
998997
}
999-
1000998
__rhythmPlayNote(
1001999
noteBeatValue,
10021000
blk,

0 commit comments

Comments
 (0)