Skip to content

Commit

Permalink
Fixed a bug related to note progess jotting.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Jul 10, 2024
1 parent 1ad52b4 commit 156718b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cambiare_demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,9 @@ document.body.addEventListener("keydown", async (ev) => {
case "z": {
// Show time signature
let roundedBeat = Math.floor(visualizer.noteBeat * 2) / 2;
let roundedTime = (visualizer.noteBar * visualizer.getTimeSig()[0] + roundedBeat) * 60 / visualizer.getTempo() + visualizer.noteOffset;
let roundedTime = (visualizer.noteBar * visualizer.getTimeSig()[0] + roundedBeat + visualizer.noteOffset) * 60 / visualizer.getTempo();
//visualizer.getTimeSig()
console.info(`Requested rounded note progress: ${visualizer.noteBar + 1}/${roundedBeat + 1}, ${Math.round(roundedTime * 1000) / 1000}s`);
console.info(`Requested rounded note progress: ${visualizer.noteBar + 1}/${roundedBeat + 1}, ${Math.round(roundedTime * 1000) / 1000}s (${Math.round(timeMuxer.currentTime * 1000) / 1000}s)`);
break;
};
default: {
Expand Down
1 change: 1 addition & 0 deletions src/fakeQy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ getBridge().addEventListener("message", function (ev) {
{
// Kandi8
let perf = new TimedEvents();
perf.push(new PointEvent(4, genNewSwitch(13)));
perf.fresh();
demoPerfs["HORIZON"] = perf;
};

0 comments on commit 156718b

Please sign in to comment.