Skip to content

hide default tempo and dynamic in alphatex #455

Answered by Danielku15
sugizo asked this question in Q&A
Discussion options

You must be logged in to vote

Hiding UI elements is not part of alphaTex. alphaTex defines the music piece and there dynamics and tempo are an essential part of it.

Hiding UI elements is part of the settings you pass on to alphaTab for rendering, like the layout:
https://www.alphatab.net/docs/reference/settings/notation/elements

In your case you would likely do something like:

const api = new alphaTab.AlphaTabApi(document.querySelector('#alphaTab'), {
    notation: {
        elements: {
            effectTempo: false,
            effectDynamics: false
        }
    }
});

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sugizo
Comment options

@Danielku15
Comment options

Answer selected by Danielku15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #455 on December 09, 2020 17:46.