make stave's name (instrument's name) + mixer.volume available for QML
Hi, I'm trying to write a plugin, which for a given score creates mp3 exports for every stave with special adjustment of volume:
Eg, I have a score with soprano, alto, tenor & bass. I want to create four mp3 files:
- one for soprano, with soprano at 100% volume, alto/tenor/bass at 25% volume;
- one for alto, with alto at 100% volume, soprano/tenor/bass at 25% volume;
etc.
I know how to get the name of the current score (curScore.name) as well as the number of staves (curScore.nstaves).
What I need additionally is:
- name of each stave
- adjust volume for each stave (mixer setting)
Any help appreciated. Thanks.
Comments
The instrument name is available under
curScore.parts[idx].partName
.As replied on your other thread, mixer settings are currently unavailable; an official feature request would be in order.
In reply to The instrument name is… by jeetee
OP probably thinks he did a feature request, not aware that official feature requests are entered here
In reply to OP probably thinks he did a… by mike320
Thanks for the hint. Yes, I hadn't noticed that that would be the correct way to file a feature request.
But even better: I've found a solution to what I was looking for, thus no feature request needed for now :-)
In reply to Thanks for the hint. Yes, I… by msmb
It is usually better to first post a feature request here, so others can comment on if it's necessary as was done in this case. Glad you could do what you wanted.
In reply to The instrument name is… by jeetee
@jeetee: Thanks, this pointed me into the right direction. I hadn't recognized that the "instruments" are accessible via parts, and by further exploring I also found the volume setting (Part.volume) - don't need other mixer settings for my little project.
In reply to Thanks, this pointed me into… by msmb
schock I played with the same idea about 2y ago, totally overlooked that part had a volume property!
In reply to schock I played with the… by jeetee
:-)
have a look at my current (far from perfect) implementation: https://musescore.org/en/node/277716#comment-863605