Halving Note Length

• Jan 24, 2012 - 19:52

Hi;
Let's say I have a string of quarter notes. Can I highlight them all, press some keys and turn them all into eighth notes? Let's say I have a string of quarter and half notes. Can I change them into eighth and quarter notes, respectively?
TIA,
Beno


Comments

Sounds like you are talking about taking a passage and making it twice as fast (diminution is the technical term). No, there is no way to do this, aside from simply changing tempo. But presumably you want it to actually change the note values for display/print, not just for playbak.. This was actually one of the first things I thought about trying to write a plugin for, but unfortunately, the plugin framework is just a little too limited to allow this.

In reply to by beno

Plugins are written in javascript; documentation is here: http://musescore.org/en/plugin-development

I don't think the plugin framework has been a huge priority thus far, and understandably so, since the core program architecture has been undergoing fairly large changes over the last year or two (heading toward the 2.0 release planned for later this year). I'm hoping maybe once the application code itself settles down, then there can be focus on allowing plugins to access more of that architecture. I think lately, that's been a bit of a moving target, though.

I think this particular function is probably deserving of being incorporated into the application itself as opposed to requiring a plugin. In fact, this reminds me of something I had thought of before but probably never expressed, having to do with finding a natural place for functions like this. It's a bit of a tangent though, so I'll start a new thread in the Technology Preview subforum.

EDIT: here it is: http://musescore.org/en/node/14638

In reply to by Marc Sabatella

I would like to subscribe to the Tech Preview forum, but it appears that's not possible. Let me know if I missed something. I'll ask one more question then join you all over there. In what language is MuseScore itself written?
TIA,
Beno

In reply to by beno

I can't understand why you can't subscribe to the Tech Preview forum.

I've just logged out on my other machine and still have access to it, and as far as I know there are no restrictions on it.

I can tell you that MuseScore is written using Qt but as for what language it is actually written in, I've no idea - that's one for those actually writing the code :)

You may find some of the information you want here:-

http://musescore.org/en/developers-handbook

HTH
Michael

In reply to by beno

Indeed, there is no link to the developers mailing list on the main forum page, because it isn't a forum. But I wasn't talking about the developers mailing list; I was talking about the "Technology Preview" forum, which is an ordinary forum just like this one. The main forum page lists the following forums:

Support & bug reports
Feature request
General discussion
Documentation
Technology Preview
Translation
Plugins
Made with MuseScore

I am talking about the fifth one on that list. No subscription necessary, any more than this forum requires subscription - just click it and start reading, and you can post just as you did to this one.

Oh, and MuseScore is written in C++. You can get at the source following the links on the developer's handbook page mentioned previously.

I can see a way to do this that maybe someone could stitch together to make a plug-in. There is a command line facility called xml2abc. (Google finds it.) The header of abc notation defines the time sig and smallest note length and I've often changed them to import into, for example, 2/2 instead of 2/4 if I think that's better (e.g. polkas in 2/4 Hornpipes in 2/2). Then you can re-import using the existing abc plug-in. (That works using xml as an intermediate format.) Anyone fancy having a go?

In reply to by dewin

I have a perl program that halves the note/rest and other pertinent values, if anyone is interested.

You can obtain it from //www.tobit.co.uk/mscore/mscore-halve

Just run the program for instructions. It is a perl program so that you can look at it first to check that it won't do anything nasty. It has been tested on some quite meaty files that have been converted from Finale produced musicxml as well as normally entered native mscore files.

It is not a plugin, it takes a file.mscx or file.mscz and converts it into file-halved.mscx.

It has only been tested on linux perl, you will need to have the XML::LibXML (CPAN) package installed, but most modern distros will have it available as a package (debian: apt-get install libxml-libxml-perl). After download you will have to make it executable or run it as perl mscore-halve ....

It will only work on MuseScore version 2 or greater.

Lemme know if you find bugs or want to suggest enhancements.

Do you still have an unanswered question? Please log in first to post your question.