CoderLine / alphaTab

alphaTab is a cross platform music notation and guitar tablature rendering library.
http://www.alphatab.net
Mozilla Public License 2.0
1.19k stars 199 forks source link

Play score without soundfont #348

Open hdaneshfar opened 4 years ago

hdaneshfar commented 4 years ago

Question

Can Alphatab plays and works without soundfont , just change time position after click on play button without any sounds ? I want to play midi file of score on the background of html page, because in some mobile devices with poor hardware , Alphatab get stuck at times. Thank You.

Danielku15 commented 4 years ago

Can Alphatab plays and works without soundfont , just change time position after click on play button without any sounds ?

I thought of such a mode already where alphaTab is not generating the audio itself but rather synchronizes with an external audio source. This way it could also be combined with a youtube video or MP3.

Currently it is not possible to let alphaTab only place the cursor without generating any audio. In fact it heavily relies on the actual played samples to know where in time the playback is.

I would need to check in detail what actually is the most CPU intense part during playback to optimize this part.

I want to play midi file of score on the background of html page, because in some mobile devices with poor hardware , Alphatab get stuck at times.

I guess you meant to play a pre-recorded audio file like MP3, OGG etc.? A midi file itself is not playable directly, it exactly requires the soundfont and synthesizer part to get the audio playback.

The trickiest part is telling alphaTab when the cursor is where. If we consider repeats, tempo changes, and shifts in the audio. There is some additional information needed for alphaTab to place the cursor exactly where some other audio track is actually playing.

hdaneshfar commented 4 years ago

Please check Alphtab on some Android Moderate CPU powered Devices with Chrome browser and solve the stuck at times. Thanks a lot.