Make Rehearsal File
This tool is intended to make seperate rehearsal scores for the different voices of polyphonic songs.
Before running this tool, make a group "Piano" for the instrumental staffs.
When running the tool, you have to to set two volumes, for 'Foreground' and 'Background'.
The result will be:
- The Staff Velocities(DynVel) from the first visible staff will be copied to the next staffs.
- For the staffs in the "Piano" group:
- Staff Volume = BackGround Volume;
- Default Dynamics (with varying Velocities and constant Volume);
- StereoPan = 64;
- StaffColor = 'Default';
- For the active staff:
- Staff Volume = Foreground Volume;
- Dynamics with constant (highest)Velocity, and Volumes calculated using Foreground Volume and the Staff Velocities ;
- StereoPan = 0;
- StaffColor = 'Highlight 2';
- For the other staffs:
- Staff Volume = Background Volume;
- Dynamics with constant (highest) Velocity, and Volumes calculated using Background Volume and the Staff Velocities ;
- StereoPan = 127;
- StaffColor = 'Default' (unless the StaffName = "All" >> 'Highlight 2');
There are 3 execution modes : 'Modify', 'Show' and 'Help'. 'Modify' is the normal mode, 'Show' shows the generated output in stdout (without modifying your file), 'Help' shows the Helptext.
Installation instructions:
Command Line: "Wscript YourScriptsFolder\MakeRehearsalFile.js <PROMPT:Foreground Volume:=*120> <PROMPT:Background Volume:=*80> <PROMPT:Execution Mode:=|Modify|Show|Help><PROMPT:Action:=|Make_Rehearsal_File|Undo|Help> <PROMPT:Foreground Volume:=*120]> <PROMPT:Background Volume:=*80>" (You may use other pre-filled values then 120 and 80.)" (You may use other pre-filled values then 120 and 80.)
Input Type: File Text
Under 'Options: Check 'Returns File text'
Don't forget to change the extension to ".js" after downloading.
Any comments are bug reports are welcome.
02/01/2017: Attached a lua version of the tool.
------------------------------------------------
Updated lua version 20/11/2017
* New Parameters:
- Foreground Staves : one or more staff names (instead of active staff + staff named 'All')
- Foreground Color (instead of fixed 'Highlight 2')
- What to Color :key signature & clef or whole staff
* You can add arguments to the command line to set the value or default for one or more parameters.
Syntax: <parameter>=<value>['?']. The arguments pairs must be seperated by 1 or more spaces. There must not be a space within an argument.
If an argument ends with a '?', the value will be used as default in the dialog, otherwise the value will be assiged to the parameter, which will be skipped in the dialog.
See 'Help on command line parameters' for description of the paramters and valid values.).
21/11/20017 : test switch off.