Time signature
Hello,
I am French and I don't speak English. But I'm being translated by Deepl.
I started to develop a plugin for diatonic accordion tablature. I'm having difficulty. I would like explanations and advice.
I read in the documentation:
https://musescore.org/fr/plugin-development/timesig-object
"The time signature of the current score can be obtained with curScore.timesig"
This is my test:
Can you explain to me, please?
Comments
Well, using 1.x plugin handbook with 3.x is not going to work too well, it seems
In reply to Well, using 1.x plugin… by Jojo-Schmitz
Thank you. I misunderstood the indication "Available in MuseScore 1.1+ only". It's a pity there's no upward compatibility of the versions.
I need the time signature to position the bass on the tablature. Is this possible with version 3. How to ?
In reply to Thank you. I misunderstood… by MichelCome
It may be available in 3.x too, but in some different form, check the 3.x plugin documentation
In reply to It may be available I'm 3.x… by Jojo-Schmitz
The only up-to-date documentation I found on version 3 is insufficient.
https://dmitrio95.github.io/plugins/html/index.html
only one page gives a brief overview of the topics related to plugins development. I would like to know more about it.
In reply to The only up-to-date… by MichelCome
It is complete and far more than just one page. There is no time signature class nor property though
In reply to It is complete and far more… by Jojo-Schmitz
Thank you. That's what I understood.
In reply to Thank you. That's what I… by MichelCome
Dans la documentation pour les plugins, il y a la page Fraction Qui contient un exemple de comment créer un chiffrage.
Je n'ai aucune idée de comment vérifier le chiffrage actuel, mais peut-être que timesigNominal et timesigActual dans la classe élément pourra t'aider.
Que souhaites tu faire exactement?
In reply to Dans la documentation pour… by ecstrema
il y a aussi
timesigGlobal
qui semble renvoyer le chiffrage général de la partition.In reply to il y a aussi timesigGlobal… by ecstrema
Merci beaucoup, camarade francophone. J'ai bien remarqué les propriétés de la classe element. Mais les valeurs de ces propriétés sont toujours 0/1 quel que soit l'élément. timesig, timesigNominal, timesigActual, timesigGlobal, renvoient une fraction 0/1. Je ne sais pas quel element définit le chiffrage de la partition.
In reply to Merci beaucoup, camarade… by MichelCome
Avez-vous essayé de chercher un élément de type
timesig
parmi les éléments d'une mesure?In reply to Avez-vous essayé de chercher… by ecstrema
Génial ! Merci beaucoup pour le conseil. Je vais enfin pouvoir avancer dans mon projet de plugin. J'étais bloqué et j'ai du mal à comprendre la logique de programmation de Musescore. Je ne vois pas l'intérêt de donner des propriétés à certains objets qui ne les utilisent pas. Pour un néophyte comme moi, ça brouille tout. Mais grâce aux explications, je vais pouvoir surmonter certaines difficultés. Encore merci.
In reply to Génial ! Merci beaucoup pour… by MichelCome
Michel, My french is from the high school years (about 60 years ago), so please let me thank you in English: Your example helped me very much. The MuseScore documentation sometimes is very poor.
Encore, merci beaucoup .