Skip to content

Commit

Permalink
Update dittytoyVisualiser.js
Browse files Browse the repository at this point in the history
  • Loading branch information
reindernijhoff committed Mar 20, 2024
1 parent 6e88b2c commit 6133875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/src/dittytoyVisualiser.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export default class DittytoyVisualiser {
ctx.strokeStyle = loop.color;

loop.notes.forEach(note => {
ctx.globalAlpha = 0.05 + note.volume;
ctx.globalAlpha = 0.25 + 0.75 * note.volume;
const end = Math.max(0.0001, (this.tick - note.tick)) * speedModifier;
const start = Math.max(0.0001, (this.tick - note.tick - note.duration / 2)) * speedModifier;

Expand Down

0 comments on commit 6133875

Please sign in to comment.