Skip to content

Channels issues break the app #2014

@danialt

Description

@danialt

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

So far love the Alphatabs! there is an issue that has blocked me for days, could you help maybe?

I am importing guitar pro files, and for some of them, I receive the following error:

alphatab.js:26549 Uncaught TypeError: Cannot read properties of undefined (reading 'midiVolume')
    at TinySoundFont.channelMidiControl (alphatab.js:26549:69)
    at TinySoundFont.processMidiMessage (alphatab.js:25920:26)
    at TinySoundFont.fillWorkingBuffer (alphatab.js:25879:26)
    at TinySoundFont.synthesize (alphatab.js:25770:25)
    at alphatab.js:27225:69
    at EventEmitter.trigger (alphatab.js:27032:17)
    at AlphaSynthWorkerSynthOutput.handleMessage (alphatab.js:27549:40)

As my last resort I may start patching the original file around variable ´c´ but thought maybe there is a better way?

My app is a NextJS react app.

Expected Behavior

Some guitar pro files have this issue, but since I am not familiar with the internals I can only guess channel information is missing?

Steps To Reproduce

Link to jsFiddle, CodePen, Project

No response

Found in Version

1.4 (alpha)

Platform

Web

Environment

- **OS**: MacOS
- **Browser**: Chrome
- **.net Version**:

Anything else?

No response

Metadata

Metadata

Assignees

Labels

area-file-formatsRelated to supported file formatsplatform-allAffects all platformsstate-acceptedThis is a valid topic to work on.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions