User Tools

Site Tools


jwlua:fullscripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
jwlua:fullscripts [2013/09/03 06:22]
jariw
jwlua:fullscripts [2013/09/03 08:25]
jariw [Create Tacet]
Line 91: Line 91:
 ==== Create Tacet ==== ==== Create Tacet ====
  
-This script creates a tacet for the selected region, regardless of if the section contains music or how the measures has been configured regarding multimeasure breaks. It requires that the Automatic Update for multimeasure rests is OFF for the file. Before the tacet , a user alert is displayed. The script also requires a selected region (JW Lua will automatically tell the user if a region isn't selected). ​+This script creates a tacet for the selected region, regardless of if the section contains music or how the measures has been configured regarding multimeasure breaks. It requires that the Automatic Update for multimeasure rests is OFF for the file. Before the tacet , a user alert is displayed. The script also requires a selected region (JW Lua will automatically tell the user if a region isn't selected)
 + 
 +Specifying the multimeasure rest preference record 1 doesn'​t really matter here (any value would load the same preference data), but generally speaking for single-instance preference records, it's good practice to load preference record 1 anyway.
  
 <code lua createtacet.lua>​function plugindef() <code lua createtacet.lua>​function plugindef()
Line 141: Line 143:
 mm.UseSymbolsLessThan = mmrestprefs.UseSymbolsLessThan mm.UseSymbolsLessThan = mmrestprefs.UseSymbolsLessThan
 mm.Width = mmrestprefs.Width mm.Width = mmrestprefs.Width
 +-- Create a new mm rest for the whole selected region
 +-- (it will be saved at the start measure position)
 mm:Save() mm:Save()
 </​code>​ </​code>​
jwlua/fullscripts.txt · Last modified: 2013/10/08 08:06 by jariw