Skip to content

Commit 32f6186

Browse files
committed
remove previously required import paths
remove previously required import paths
1 parent 3a926a2 commit 32f6186

File tree

57 files changed

+14
-188
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+14
-188
lines changed

.github/actions/get-metadata/tests/91-UI-switch-to-selected-part.lua

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ function plugindef()
88
"Switches to the first part of the top staff in a selected region in a score. Switches back to the score if viewing a part."
99
end
1010

11-
local path = finale.FCString()
12-
path:SetRunningLuaFolderPath()
13-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1411
local library = require("library.general_library")
1512

1613
function ui_switch_to_selected_part()

.github/actions/get-metadata/tests/93-staff-move-down.lua

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ function plugindef()
99
return "Move Staff Down", "Move Staff Down", "Moves the selected staves down by 1 space"
1010
end
1111

12-
local path = finale.FCString()
13-
path:SetRunningLuaFolderPath()
14-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1512
local measurement = require("library.measurement")
1613

1714
local single_space_evpus = measurement.convert_to_EVPUs(tostring("1s"))

docs/library.md

-6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
This repository includes several pre-made Lua functions that you can use in your code. That way, you can write better scripts, faster.
44

55
```lua
6-
-- use once at top of script file, tells RGP/JW Lua where the library modules are saved
7-
-- These first few lines will eventually be phased out
8-
local path = finale.FCString()
9-
path:SetRunningLuaFolderPath()
10-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
11-
126
-- load each library module you'll use
137
local library = require("library.file_name") -- no path, no ".lua"
148

src/UI_switch_to_selected_part.lua

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ function plugindef()
99
"Switches to the first part of the top staff in a selected region in a score. Switches back to the score if viewing a part."
1010
end
1111

12-
local path = finale.FCString()
13-
path:SetRunningLuaFolderPath()
14-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1512
local library = require("library.general_library")
1613

1714
function ui_switch_to_selected_part()

src/accidental_simplify.lua

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ function plugindef()
99
return "Simplify accidentals", "Simplify accidentals", "Removes all double sharps and flats by respelling them"
1010
end
1111

12-
local path = finale.FCString()
13-
path:SetRunningLuaFolderPath()
14-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1512
local transposition = require("library.transposition")
1613

1714
function accidentals_simplify()

src/beam_selected_region.lua

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ function plugindef()
1010
return "Beam Selected Region", "Beam Selected Region", "Beam Selected Region"
1111
end
1212

13-
local path = finale.FCString()
14-
path:SetRunningLuaFolderPath()
15-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1613
local note_entry = require("library.note_entry")
1714

1815
function beam_selected_region()

src/beam_unbeam_selected_region.lua

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ function plugindef()
1010
return "Unbeam Selected Region", "Unbeam Selected Region", "Unbeam Selected Region"
1111
end
1212

13-
local path = finale.FCString()
14-
path:SetRunningLuaFolderPath()
15-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1613
local note_entry = require("library.note_entry")
1714

1815
function unbeam_selected_region()

src/chord_accidental_adjust_down.lua

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ function plugindef()
99
return "Chord Accidental - Move Down", "Adjust Chord Accidental Down", "Adjust the accidental of chord symbol down"
1010
end
1111

12-
local path = finale.FCString()
13-
path:SetRunningLuaFolderPath()
14-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1512

1613
local configuration = require("library.configuration")
1714
local config = {vertical_increment = 5}

src/chord_accidental_adjust_up.lua

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ function plugindef()
99
return "Chord Accidental - Move Up", "Adjust Chord Accidental Up", "Adjust the accidental of chord symbol up"
1010
end
1111

12-
local path = finale.FCString()
13-
path:SetRunningLuaFolderPath()
14-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1512

1613
local configuration = require("library.configuration")
1714
local config = {vertical_increment = 5}

src/expression_add_opaque_background.lua

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ function plugindef()
1010
return "Expression Add Opaque Background", "Expression Add Opaque Background", "Add an opaque background to any single-staff text expression in the currenly selected region."
1111
end
1212

13-
local path = finale.FCString()
14-
path:SetRunningLuaFolderPath()
15-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1613
local library = require("library.general_library")
1714
local expression = require("library.expression")
1815

src/expression_baseline_below_move_down.lua

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ function plugindef()
1010
"Moves the selected expression above baseline down one space"
1111
end
1212

13-
local path = finale.FCString()
14-
path:SetRunningLuaFolderPath()
15-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1613
local measurement = require("library.measurement")
1714

1815
function expression_baseline_below_move_down()

src/expression_baseline_below_move_up.lua

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ function plugindef()
1010
"Moves the selected expression below baseline up one space"
1111
end
1212

13-
local path = finale.FCString()
14-
path:SetRunningLuaFolderPath()
15-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1613
local measurement = require("library.measurement")
1714

1815
function expression_baseline_below_move_up()

src/expression_baseline_move_down.lua

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ function plugindef()
1010
"Moves the selected expression above baseline down one space"
1111
end
1212

13-
local path = finale.FCString()
14-
path:SetRunningLuaFolderPath()
15-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1613
local measurement = require("library.measurement")
1714

1815
function expression_baseline_move_down()

src/expression_baseline_move_up.lua

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ function plugindef()
1010
"Moves the selected expression above baseline up one space"
1111
end
1212

13-
local path = finale.FCString()
14-
path:SetRunningLuaFolderPath()
15-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1613
local measurement = require("library.measurement")
1714

1815
function expression_baseline_move_up()

src/expression_remove_enclosure.lua

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ function plugindef()
1010
return "Expression Remove Enclosure", "Expression Remove Enclosure", "Removes any enclosure on any single-staff text expression in the currently selected region."
1111
end
1212

13-
local path = finale.FCString()
14-
path:SetRunningLuaFolderPath()
15-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1613
local library = require("library.general_library")
1714
local expression = require("library.expression")
1815

src/expression_reset_positioning.lua

-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ function plugindef()
77
return "Reset Expression Positions", "Reset Expression Positions", "Resets the assignment position of all selected single-staff expressions."
88
end
99

10-
local path = finale.FCString()
11-
path:SetRunningLuaFolderPath()
12-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1310
local library = require("library.general_library")
1411
local expression = require("library.expression")
1512

src/expression_set_to_parts_only.lua

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ function plugindef()
1010
return "Expression Set To Parts Only", "Expression Set To Parts Only", "Set any single-staff text expression in the currenly selected region to Parts Only assignment."
1111
end
1212

13-
local path = finale.FCString()
14-
path:SetRunningLuaFolderPath()
15-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1613
local library = require("library.general_library")
1714
local expression = require("library.expression")
1815

src/expression_set_to_score_only.lua

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ function plugindef()
1010
return "Expression Set To Score Only", "Expression Set To Score Only", "Set any single-staff text expression in the currenly selected region to Score Only assignment."
1111
end
1212

13-
local path = finale.FCString()
14-
path:SetRunningLuaFolderPath()
15-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1613
local library = require("library.general_library")
1714
local expression = require("library.expression")
1815

src/lyrics_baseline_move_down.lua

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ function plugindef()
1010
"Moves all selected lyrics baselines down one space"
1111
end
1212

13-
local path = finale.FCString()
14-
path:SetRunningLuaFolderPath()
15-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1613
local configuration = require("library.configuration")
1714

1815
local config = {

src/lyrics_baseline_move_up.lua

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ function plugindef()
1010
"Moves all selected lyrics baselines up one space"
1111
end
1212

13-
local path = finale.FCString()
14-
path:SetRunningLuaFolderPath()
15-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1613
local configuration = require("library.configuration")
1714

1815
local config = {

src/measure_numbers_adjust_for_leadin.lua

-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ function plugindef()
77
return "Measure Numbers Adjust for Key, Time, Repeat", "Measure Numbers Adjust for Key, Time, Repeat", "Adjusts all measure numbers left where there is a key signature, time signature, or start repeat."
88
end
99

10-
local path = finale.FCString()
11-
path:SetRunningLuaFolderPath()
12-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1310
local library = require("library.general_library")
1411

1512
-- Before v0.59, the PDK Framework did not provide access to the true barline thickness per measure from the PDK metrics.

src/measure_numbers_move_down.lua

-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ function plugindef()
77
return "Measure Numbers Move Down", "Measure Numbers Move Down", "Moves selected measure numbers down by one staff space."
88
end
99

10-
local path = finale.FCString()
11-
path:SetRunningLuaFolderPath()
12-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1310
local library = require("library.general_library")
1411

1512
local move_amount = -24 -- 24 evpus per staff space

src/measure_numbers_move_up.lua

-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ function plugindef()
77
return "Measure Numbers Move Up", "Measure Numbers Move Up", "Moves selected measure numbers up by one staff space."
88
end
99

10-
local path = finale.FCString()
11-
path:SetRunningLuaFolderPath()
12-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1310
local library = require("library.general_library")
1411

1512
local move_amount = 24 -- evpus

src/measure_numbers_reset_vertical.lua

-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ function plugindef()
77
return "Measure Numbers Reset Vertical", "Measure Numbers Reset Vertical", "Reset vertical position to default for selected measure numbers."
88
end
99

10-
local path = finale.FCString()
11-
path:SetRunningLuaFolderPath()
12-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1310
local library = require("library.general_library")
1411

1512
function measure_numbers_reset_vertical()

src/mmrest_widen_to_tempo_mark.lua

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ function plugindef()
1010
return "Widen Multimeasure Rests to Tempo Mark", "Widen Multimeasure Rests to Tempo Mark", "Widens any multimeasure rest with a tempo mark to be wide enough for the mark."
1111
end
1212

13-
local path = finale.FCString()
14-
path:SetRunningLuaFolderPath()
15-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1613
local library = require("library.general_library")
1714
local configuration = require("library.configuration")
1815
local enigma_string = require("library.enigma_string")

src/note_add_augmentation_dots.lua

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ function plugindef()
99
"Add an augmentation dot to all notes and rests in selected region."
1010
end
1111

12-
local path = finale.FCString()
13-
path:SetRunningLuaFolderPath()
14-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1512
local note_entry = require("library.note_entry")
1613

1714
function note_add_augmentation_dots()

src/note_automatic_jete.lua

-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ end
1212
-- The goal of this script is to automate jeté bowing notation as given in Gould, Elaine, "Behind Bars", p. 404
1313
-- For the best results with staccato dots, use an articulation with "Avoid Staff Lines" unchecked.
1414

15-
local path = finale.FCString()
16-
path:SetRunningLuaFolderPath()
17-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1815
local note_entry = require("library.note_entry")
1916
local articulation = require("library.articulation")
2017
local configuration = require("library.configuration")

src/note_cluster_determinate.lua

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ function plugindef()
88
return "Cluster - Determinate", "Cluster - Determinate", "Creates a determinate cluster."
99
end
1010

11-
local path = finale.FCString()
12-
path:SetRunningLuaFolderPath()
13-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1411
local note_entry = require("library.note_entry")
1512

1613
local region = finenv.Region()

src/notehead_delete_duplicates.lua

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ function plugindef()
88
return "Delete Duplicate Noteheads", "Delete Duplicate Noteheads", "Removes duplicate noteheads from chords and adjusts ties as needed."
99
end
1010

11-
local path = finale.FCString()
12-
path:SetRunningLuaFolderPath()
13-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1411
local note_entry = require("library.note_entry")
1512

1613
-- This script was a request from the Facebook Finale Powerusers group.
@@ -40,7 +37,7 @@ function notehead_delete_duplicates()
4037
note_entry.delete_note(note)
4138
end
4239
end
43-
end
40+
end
4441
end
4542

4643
notehead_delete_duplicates()

src/page_title_remove_inserts.lua

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ function plugindef()
1010
"Removes text inserts from selected Page Text."
1111
end
1212

13-
local path = finale.FCString()
14-
path:SetRunningLuaFolderPath()
15-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1613
local enigma_string = require("library.enigma_string")
1714

1815
function do_dialog_box(clean_texts)
@@ -47,7 +44,7 @@ function do_dialog_box(clean_texts)
4744
-- OK/Cxl
4845
dialog:CreateOkButton()
4946
dialog:CreateCancelButton()
50-
47+
5148
if finale.EXECMODAL_OK == dialog:ExecuteModal(nil) then
5249
return true, 1+page_text:GetSelectedItem(), (0 ~= do_replace:GetCheck())
5350
end

src/pitch_entry_delete_bottom_note.lua

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ function plugindef()
1010
"Deletes the bottom note of every chord"
1111
end
1212

13-
local path = finale.FCString()
14-
path:SetRunningLuaFolderPath()
15-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1613
local note_entry = require("library.note_entry")
1714

1815
function pitch_entry_delete_bottom_note()

src/pitch_entry_delete_top_note.lua

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ function plugindef()
99
return "Chord Line - Delete Top Note", "Chord Line - Delete Top Note", "Deletes the top note of every chord"
1010
end
1111

12-
local path = finale.FCString()
13-
path:SetRunningLuaFolderPath()
14-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1512
local note_entry = require("library.note_entry")
1613

1714
function pitch_entry_delete_top_note()

src/pitch_entry_double_octave_down.lua

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ function plugindef()
99
return "Octave Doubling Down", "Octave Doubling Down", "Doubles the current note an octave lower"
1010
end
1111

12-
local path = finale.FCString()
13-
path:SetRunningLuaFolderPath()
14-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1512
local transposition = require("library.transposition")
1613
local note_entry = require("Library.note_entry")
1714

src/pitch_entry_double_octave_up.lua

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ function plugindef()
99
return "Octave Doubling Up", "Octave Doubling Up", "Doubles the current note an octave higher"
1010
end
1111

12-
local path = finale.FCString()
13-
path:SetRunningLuaFolderPath()
14-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1512
local transposition = require("library.transposition")
1613
local note_entry = require("Library.note_entry")
1714

src/pitch_entry_keep_bottom_note.lua

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ function plugindef()
1010
"Keeps the bottom note of every chord and deletes the rest"
1111
end
1212

13-
local path = finale.FCString()
14-
path:SetRunningLuaFolderPath()
15-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1613
local note_entry = require("library.note_entry")
1714

1815
function pitch_entry_keep_bottom_note()

src/pitch_entry_keep_top_note.lua

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ function plugindef()
1010
"Keeps the top note of every chord and deletes the rest"
1111
end
1212

13-
local path = finale.FCString()
14-
path:SetRunningLuaFolderPath()
15-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1613
local note_entry = require("library.note_entry")
1714

1815
function pitch_entry_keep_top_note()

src/pitch_rotate_chord_down.lua

-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ function plugindef()
1010
"Rotates the chord upwards, taking the top note and moving it below the rest of the chord"
1111
end
1212

13-
local path = finale.FCString()
14-
path:SetRunningLuaFolderPath()
15-
package.path = package.path .. ";" .. path.LuaString .. "?.lua"
1613
local transposition = require("library.transposition")
1714
local note_entry = require("library.note_entry")
1815

0 commit comments

Comments
 (0)