Skip to content

Music quits early #15

@AlfredCorduan

Description

@AlfredCorduan

This is both a problem and solution. Problem: On long, more complex pieces playback quits early. Always in the same spot on the same platform, earlier if the Q: parameter is increased, less if the piece is slowed down. Solution: g.gain.linearRampToValueAtTime on line 304 of musical.js requires two parameters . . . Change

g.gain.linearRampToValueAtTime(
amp * (releasetime - starttime) / (attacktime - starttime));

to

g.gain.linearRampToValueAtTime(
0, amp * (releasetime - starttime) / (attacktime - starttime));

I am new here . . . So maybe I should have fixed it myself :-).

Thanks to Nathan Bruley for figuring it out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions