Composer and title for a QML plugin

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Composer and title for a QML plugin

rumpu-jussi
Hi,

I tried to run a plugin against v3 codebase MuseScore. The plugin couldn't find the composer and the title of the score. I checked the MuseScore code, and noticed that those properties have been removed from Score-object in October.

What is/will be the method in MuseScore v3 for plugins to get the composer and the title of the score?

Cheers,
--

Juha R.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: Composer and title for a QML plugin

Jojo-Schmitz

Noticed that the other day too. ‘git blame’ shows that those had been taken out in 3f1aa2ed, 2016-03-18 and 0763a5cc, 2016-10-10, by Werner. Not sure why though, but at least one of those changes is marked as a ToDo.

 

 

From: Juha Ruotsalainen [mailto:[hidden email]]
Sent: Saturday, December 31, 2016 10:02 AM
To: [hidden email]
Subject: [Mscore-developer] Composer and title for a QML plugin

 

Hi,

 

I tried to run a plugin against v3 codebase MuseScore. The plugin couldn't find the composer and the title of the score. I checked the MuseScore code, and noticed that those properties have been removed from Score-object in October.

 

What is/will be the method in MuseScore v3 for plugins to get the composer and the title of the score?

 

Cheers,

--

Juha R.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: Composer and title for a QML plugin

Jojo-Schmitz

But feel free to ipen an issue in the issue tracker for this

 

From: Joachim Schmitz [mailto:[hidden email]]
Sent: Saturday, December 31, 2016 10:49 AM
To: [hidden email]
Subject: Re: [Mscore-developer] Composer and title for a QML plugin

 

Noticed that the other day too. ‘git blame’ shows that those had been taken out in 3f1aa2ed, 2016-03-18 and 0763a5cc, 2016-10-10, by Werner. Not sure why though, but at least one of those changes is marked as a ToDo.

 

 

From: Juha Ruotsalainen [[hidden email]]
Sent: Saturday, December 31, 2016 10:02 AM
To:
[hidden email]
Subject: [Mscore-developer] Composer and title for a QML plugin

 

Hi,

 

I tried to run a plugin against v3 codebase MuseScore. The plugin couldn't find the composer and the title of the score. I checked the MuseScore code, and noticed that those properties have been removed from Score-object in October.

 

What is/will be the method in MuseScore v3 for plugins to get the composer and the title of the score?

 

Cheers,

--

Juha R.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: Composer and title for a QML plugin

wschweer9

Composer and title are so called "metadata" and available in "Score Properties". There is a text style "title" and in previous versions of MuseScore the first string with this style was considered the title of the score. This is not always true as a score can contain more than one "title" string. It would be nice to set the first string with title style as default title metadata (if not set explicitly). This is an entry on my (virtual) ToDo list.

Am 31.12.2016 um 11:03 schrieb Joachim Schmitz:

But feel free to ipen an issue in the issue tracker for this

 

From: Joachim Schmitz [[hidden email]]
Sent: Saturday, December 31, 2016 10:49 AM
To: [hidden email]
Subject: Re: [Mscore-developer] Composer and title for a QML plugin

 

Noticed that the other day too. ‘git blame’ shows that those had been taken out in 3f1aa2ed, 2016-03-18 and 0763a5cc, 2016-10-10, by Werner. Not sure why though, but at least one of those changes is marked as a ToDo.

 

 

From: Juha Ruotsalainen [[hidden email]]
Sent: Saturday, December 31, 2016 10:02 AM
To:
[hidden email]
Subject: [Mscore-developer] Composer and title for a QML plugin

 

Hi,

 

I tried to run a plugin against v3 codebase MuseScore. The plugin couldn't find the composer and the title of the score. I checked the MuseScore code, and noticed that those properties have been removed from Score-object in October.

 

What is/will be the method in MuseScore v3 for plugins to get the composer and the title of the score?

 

Cheers,

--

Juha R.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot


_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: Composer and title for a QML plugin

Jojo-Schmitz

Ah, OK, so for (work)title, composer and lyricist/poet we might need to look at the meta data instead. No subtitle or name there though

 

 

From: Werner Schweer [mailto:[hidden email]]
Sent: Saturday, December 31, 2016 11:26 AM
To: [hidden email]
Subject: Re: [Mscore-developer] Composer and title for a QML plugin

 

Composer and title are so called "metadata" and available in "Score Properties". There is a text style "title" and in previous versions of MuseScore the first string with this style was considered the title of the score. This is not always true as a score can contain more than one "title" string. It would be nice to set the first string with title style as default title metadata (if not set explicitly). This is an entry on my (virtual) ToDo list.

Am 31.12.2016 um 11:03 schrieb Joachim Schmitz:

But feel free to ipen an issue in the issue tracker for this

 

From: Joachim Schmitz [[hidden email]]
Sent: Saturday, December 31, 2016 10:49 AM
To: [hidden email]
Subject: Re: [Mscore-developer] Composer and title for a QML plugin

 

Noticed that the other day too. ‘git blame’ shows that those had been taken out in 3f1aa2ed, 2016-03-18 and 0763a5cc, 2016-10-10, by Werner. Not sure why though, but at least one of those changes is marked as a ToDo.

 

 

From: Juha Ruotsalainen [[hidden email]]
Sent: Saturday, December 31, 2016 10:02 AM
To: [hidden email]
Subject: [Mscore-developer] Composer and title for a QML plugin

 

Hi,

 

I tried to run a plugin against v3 codebase MuseScore. The plugin couldn't find the composer and the title of the score. I checked the MuseScore code, and noticed that those properties have been removed from Score-object in October.

 

What is/will be the method in MuseScore v3 for plugins to get the composer and the title of the score?

 

Cheers,

--

Juha R.




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot




_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer

 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

A happy new year to all developers behind MuseScore

Ariel Aramburu
In reply to this post by wschweer9

MuseScore is a fantastic achievement and I wanted to congratulate and wish a happy new year to everyone that has contributed to it !!!

 

Happy new year !!!!

 

 

Ariel//


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: Composer and title for a QML plugin

rumpu-jussi
In reply to this post by Jojo-Schmitz
Ok, thanks.

Could give me a hint as how to get this metadata? I can't find a metadata-property in Score-class, only metaTag. Is there some access-path, e.g. curScore.someFunc().otherFunc(), how to get to the metadata?

Cheers & Happy New Year!
--
Juha R.
Reply | Threaded
Open this post in threaded view
|

Re: Composer and title for a QML plugin

lasconic
Administrator
All the functions prefixed with QINVOKABLE can be called from plugin so curScore.metaTag("title") (replace title by the key of the metadata you are looking for) should work.

lasconic

2016-12-31 16:20 GMT+01:00 rumpu-jussi <[hidden email]>:
Ok, thanks.

Could give me a hint as how to get this metadata? I can't find a
metadata-property in Score-class, only metaTag. Is there some access-path,
e.g. curScore.someFunc().otherFunc(), how to get to the metadata?

Cheers & Happy New Year!
--
Juha R.



--
View this message in context: http://dev-list.musescore.org/Composer-and-title-for-a-QML-plugin-tp7580097p7580103.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mscore-developer mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mscore-developer
Reply | Threaded
Open this post in threaded view
|

Re: Composer and title for a QML plugin

rumpu-jussi
Indeed it does:

title = curScore.metaTag("workTitle");

Gave me what I needed.

Thanks!

--
Juha R.