Skip to content

Commit 1961c82

Browse files
Updated delay timing
1 parent 34b3ecc commit 1961c82

File tree

3 files changed

+28
-27
lines changed

3 files changed

+28
-27
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 = 3000;
17+
const PORT = 3005;
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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -941,8 +941,7 @@ function setupRhythmBlockPaletteBlocks(activity) {
941941
arg1 = args[1];
942942
}
943943

944-
const noteBeatValue = (1 / arg1) * activity.turtles.ithTurtle(turtle).singer.beatFactor;
945-
944+
const noteBeatValue = (1 / arg1) * activity.turtles.ithTurtle(turtle).singer.beatFactor;
946945
if (logo.inMatrix || logo.tuplet) {
947946
logo.phraseMaker.addColBlock(blk, arg0);
948947
if (logo.tuplet) {
@@ -975,9 +974,10 @@ function setupRhythmBlockPaletteBlocks(activity) {
975974

976975
tur.singer.inNoteBlock.push(blk);
977976

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

980-
const beatValue = (noteBeatValue / arg0) * (TONEBPM / bpmFactor);
980+
const beatValue = noteBeatValue / arg0;
981981

982982
const __rhythmPlayNote = (thisBeat, blk, turtle, callback, timeout) => {
983983
setTimeout(
@@ -995,7 +995,7 @@ function setupRhythmBlockPaletteBlocks(activity) {
995995
};
996996
} else {
997997
__callback = null;
998-
}
998+
}
999999

10001000
__rhythmPlayNote(
10011001
noteBeatValue,

package-lock.json

Lines changed: 22 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)