Comments (3)
The problem is caused only when alphaTab uses the "ScriptProcessorNode" instead of the "AudioWorklets". AudioWorklets are not available if:
- AlphaTab is bundled with WebPack (webpack has only very limited audio worklet support, not compatible with alphaTab)
- AlphaTab is used in a non-secure context
- The browser really doesn't support AudioWorklets
On alphaTab.net rule 1. applies.
And the root cause seem to be an inconsistency in the time calculation. For this file (only on the second round) the "tick position" indicates that the player has not yet finished, but the "time position" marks the file as finished.
There must be somewhere an inconsistency in the reporting of played samples. Maybe some samples from the previous playback are still in the buffer and played additionally leading to a wrong calculation on the positions.
from alphatab.
Update: I could now reproduce it also on the AudioWorklets.
from alphatab.
Update: I could now reproduce it also on the AudioWorklets.
I found a temporary solution, which is to add a stop() method when he plays to the end and there is no set to replay, forcing it to return to its initial state.
\playground\control.js
at.playerPositionChanged.on(function (args) {
... ....
//Add new code here.
if (!at.isLooping && args.currentTime === 0 && args.endTime > 0) {
at.stop();
}
});
from alphatab.
Related Issues (20)
- Merge certain effects across voices (e.g. let ring & palm mute) HOT 1
- Idea: Create own lightweight skia lib wrapper to get unified rendering
- https://alphatab.net/ is 500 Now HOT 1
- "Justify" last row of bars
- The file generated by Gp7Exporter cannot show multiple tracks in Guitar Pro 8 HOT 11
- Score playback is currently broken HOT 2
- js: Uncaught ReferenceError: alphaTab is not defined
- When enableAnimatedBeatCursor=false, some section pointers may skip some notes HOT 10
- Odd cursor movement when playing repeat-close.gp5 HOT 2
- vite build does not work with alphaTab's worker HOT 2
- After updating to patch commit b079e29, this error occurred:the cursor pauses at the end of each bar HOT 2
- Announcement: Native iOS Version
- After upgrading to Commits #1334, it was found that when there is an empty bar, the cursor does not appear. HOT 1
- Full WebPack support
- Full Rollup support HOT 1
- Full Vite support
- When the beginning of a bar is two connected grace notes, the playback cursor gets stuck and cannot move forward normally. HOT 2
- Full Angular+WebPack Support
- Failed to execute 'importScripts' on 'WorkerGlobalScope' HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alphatab.