PedalLine.fso (version 1.0)
Hi,
here I go with my first attempt to create Object Plugins.
When inserted after a pedal mark (usually 'Pedal Down') it will draw a line to the next pedal mark (usually 'Pedal Release'). It must be specified what kind of line the plugin will draw ('Opening Line' for pedal starting section, 'Closing Line' for pedal ending or 'Previous Measure Line' if it has to continue the line from prior measure).
The plugin will also detect boundary objects in the active staff as "end points", so you can use them (with 'Force New System' option) to "cut" the line at System Breaks. Then insert another instance with 'Previous Measure Line' options.
OPTIONS:
Pen: Sets the pen style for the line.
Weight: Sets the thickness of the pen style.
Start Offset: Changes the start point.
Opening Line: Sets the line as 'Starting Section' (pedal on).
Closing Line: Sets the line as 'Closing Section' (pedal release).
Previous Measure Line: Usually used when the line have to continue from prior measure, for example in 'New System' boundary changes.
NEW in v1.0
StaffSig Mode:
When Class is set to 'StaffSig' this plugins runs in 'Auto Mode', drawing a line from a 'Pedal Down' mark to the next 'Pedal Released' mark. The settings 'Pen' and 'Weight' can still be modified.
The following sample will show a little more. As it's my first time always, I'm pretty sure that it's full of bugs so... it's testing time!
!NoteWorthyComposer(2.751)
|AddStaff|Name:"Staff"|Group:"Standard"
|User|PedalLine.fso|Pos:-13|Class:StaffSig
|Clef|Type:Treble
|TimeSig|Signature:4/4
|SustainPedal|Pos:-17.5|Placement:AtNextNote|Visibility:Never
|Note|Dur:4th|Pos:-6
|Note|Dur:4th|Pos:-5
|Note|Dur:4th|Pos:-4
|Note|Dur:4th|Pos:-3
|Bar
|SustainPedal|Status:Released|Pos:-13.5|Justify:Right|Placement:AtNextNote|Visibility:Never
|SustainPedal|Pos:-17.5|Placement:AtNextNote|Visibility:Never
|Note|Dur:4th|Pos:-2
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:1
|Bar
|SustainPedal|Status:Released|Pos:-13.5|Justify:Right|Placement:AtNextNote|Visibility:Never
|SustainPedal|Pos:-17.5|Placement:AtNextNote|Visibility:Never
|Note|Dur:4th|Pos:1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:-2
|Bar
|Note|Dur:4th|Pos:-3
|Note|Dur:4th|Pos:-4
|Note|Dur:4th|Pos:-5
|Note|Dur:4th|Pos:-6
|Bar|Style:Double
|Boundary|Style:NewSystem|NewPage:N
|Note|Dur:4th|Pos:-6
|Note|Dur:4th|Pos:-5
|Note|Dur:4th|Pos:-4
|Note|Dur:4th|Pos:-3
|SustainPedal|Status:Released|Pos:-13.5|Justify:Right|Placement:AtNextNote|Visibility:Never
|Bar
|Note|Dur:4th|Pos:-2
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:1
|Bar
|Note|Dur:4th|Pos:1
|SustainPedal|Pos:-17.5|Placement:AtNextNote|Visibility:Never
|Note|Dur:4th|Pos:0
|SustainPedal|Status:Released|Pos:-13.5|Justify:Right|Placement:AtNextNote|Visibility:Never
|SustainPedal|Pos:-17.5|Placement:AtNextNote|Visibility:Never
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:-2
|Bar
|SustainPedal|Status:Released|Pos:-13.5|Justify:Right|Placement:AtNextNote|Visibility:Never
|SustainPedal|Pos:-17.5|Placement:AtNextNote|Visibility:Never
|Note|Dur:4th|Pos:-3
|Note|Dur:4th|Pos:-4
|SustainPedal|Status:Released|Pos:-13.5|Justify:Right|Placement:AtNextNote|Visibility:Never
|Note|Dur:4th|Pos:-5
|Note|Dur:4th|Pos:-6
|Bar|Style:SectionClose
|Boundary|Style:NewSystem|NewPage:N
|AddStaff|Name:"Staff-1"|Group:"Standard"
|Clef|Type:Treble
|TimeSig|Signature:4/4
|SustainPedal|Pos:-17.5|Placement:AtNextNote|Visibility:Never
|User|PedalLine.fso|Pos:-11|Open:Y
|Note|Dur:4th|Pos:-6
|Note|Dur:4th|Pos:-5
|Note|Dur:4th|Pos:-4
|Note|Dur:4th|Pos:-3
|Bar
|SustainPedal|Status:Released|Pos:-13.5|Justify:Right|Placement:AtNextNote|Visibility:Never
|SustainPedal|Pos:-17.5|Placement:AtNextNote|Visibility:Never
|User|PedalLine.fso|Pos:-11
|Note|Dur:4th|Pos:-2
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:1
|Bar
|SustainPedal|Status:Released|Pos:-13.5|Justify:Right|Placement:AtNextNote|Visibility:Never
|SustainPedal|Pos:-17.5|Placement:AtNextNote|Visibility:Never
|User|PedalLine.fso|Pos:-11
|Note|Dur:4th|Pos:1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:-2
|Bar
|SustainPedal|Pos:-17.5|Placement:AtNextNote|Visibility:Never
|User|PedalLine.fso|Pos:-11|Previous:Y
|Note|Dur:4th|Pos:-3
|Note|Dur:4th|Pos:-4
|Note|Dur:4th|Pos:-5
|Note|Dur:4th|Pos:-6
|Bar|Style:Double
|Boundary|Style:NewSystem|NewPage:N
|User|PedalLine.fso|Pos:-11|Close:Y|Previous:Y
|Note|Dur:4th|Pos:-6
|Note|Dur:4th|Pos:-5
|Note|Dur:4th|Pos:-4
|Note|Dur:4th|Pos:-3
|SustainPedal|Status:Released|Pos:-13.5|Justify:Right|Placement:AtNextNote|Visibility:Never
|Bar
|Note|Dur:4th|Pos:-2
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:0
|Note|Dur:4th|Pos:1
|Bar
|Note|Dur:4th|Pos:1
|SustainPedal|Pos:-17.5|Placement:AtNextNote|Visibility:Never
|User|PedalLine.fso|Pos:-11|Open:Y
|Note|Dur:4th|Pos:0
|SustainPedal|Status:Released|Pos:-13.5|Justify:Right|Placement:AtNextNote|Visibility:Never
|SustainPedal|Pos:-17.5|Placement:AtNextNote|Visibility:Never
|User|PedalLine.fso|Pos:-11
|Note|Dur:4th|Pos:-1
|Note|Dur:4th|Pos:-2
|Bar
|SustainPedal|Status:Released|Pos:-13.5|Justify:Right|Placement:AtNextNote|Visibility:Never
|SustainPedal|Pos:-17.5|Placement:AtNextNote|Visibility:Never
|User|PedalLine.fso|Pos:-11|Close:Y
|Note|Dur:4th|Pos:-3
|Note|Dur:4th|Pos:-4
|SustainPedal|Status:Released|Pos:-13.5|Justify:Right|Placement:AtNextNote|Visibility:Never
|Note|Dur:4th|Pos:-5
|Note|Dur:4th|Pos:-6
|Bar|Style:SectionClose
|Boundary|Style:NewSystem|NewPage:N
!NoteWorthyComposer-End