Re: Tool for layering??
Reply #1 –
G'day fathafluff,
you are correct in your understanding that the user tool facility only works on one staff at a time, so export to .nwctxt will almost have to be the first step in any programmatic solution to your problem.
As for php et al, there is no absolute need to use php for writing tools. RigkG regularly uses VBScript and has recently been playing with some java script ones. In addition, the original tools, when the facility was first made available, were written in perl. There have even been .exe and html tools! So long as you can read STDIN and write STDOUT it doesn't matter what language you choose to use. Even then, there have been some tools that required you to copy and paste the staff into the tool and paste the results back into your staff, functional but not as easy for the user as using STDIN and STDOUT.
STDIN is the source of the clip, STDOUT is the destination of the modified clip and STDERR is it's usual self
As an alternative approach, is there really any need to have all the stems in the same direction? Given they are different voices wouldn't it be acceptable to have the Sopranos and Tenors stem up and the Altos and Basses stem down? That way the Sopranos could be on their own staff, have ALL stems up and that staff layered on the the Alto staff which is all stem down. No more problem... Except of course if the original is written as single stem chords...
Another approach might be to use Andrew Purdams "Scratch" tool. This tool isn't actually finished but it is largely functional and can be used to merge staves. This way you could write your sounding staves independantly the way you are now, but then create staves that will be visible, copy one staff to it and "Scratch" merge the other staff so that you have proper chords on it. Make the source staves invisible and mute the visible staff. If you want to investigate scratch it is available on the Scripto (http://nwc-scriptorium.org)