Skip to content

Latest commit

 

History

History

node-render-esm

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

readme.md

alphaTab in Node.js: render a PNG

Loads a Guitar Pro file and renders the first track to iron-waltz.png with alphaTab's alphaSkia render engine.

npm install
npm start

Verified with Node.js 24 and alphaSkia 3.5 (@coderline/alphaskia installs the native package for the current platform as an optional dependency).

alphaTab setup

  • alphaTab.Environment.enableAlphaSkia(fontData, alphaSkia) registers alphaSkia with the music font (@coderline/alphatab/font/Bravura.otf) before anything renders.
  • settings.core.engine = 'skia' selects alphaSkia for the ScoreRenderer.
  • The renderer reports the score in partial images (partialRenderFinished); the sample draws them onto one AlphaSkiaCanvas and encodes it as PNG. Each partial image is a native resource and is disposed after use.