--[[------------------------------------------------------------------------- Version 1.0 25/05/2026 Flurmy $NWCUT$CONFIG: ClipText $ --]]------------------------------------------------------------------------- nwcut.setlevel(1) nwcut.status = nwcut.const.rc_Success local progname = 'Slash notation (fl)' local HelpMsg = [[ This tool converts a sequence of notes to a rhythmic pattern using the rhythmic slash notation. The notes (or chords) are uninportant and will be standardized and muted. What matters is simply their duration. Assumes font User 1 being MusicDingsSans or MusicDingsSerif with the same size of the standard NWC2STDA. ]] ------------------------------------------------------------------------------- assert(nwcut.getprop('Mode') == nwcut.const.mode_ClipText, "Input type must be 'Clip Text' - adapt user tool config") for item in nwcut.items() do if item:ContainsNotes() then nwcut.writeline('|Text|Text:"/"|Font:User1|Scale:75|Pos:-2.5|Justify:Center|Placement:AtNextNote') local Beam = "" if string.find(tostring(item), "Beam=First") then Beam = ",Beam=First" else if string.find(tostring(item), "Beam=End") then Beam = ",Beam=End" else if string.find(tostring(item), "Beam") then Beam = ",Beam" end end end nwcut.writeline('|Note|Dur:'..item.Opts.Dur..'|Pos:-2z|Opts:Stem=Down'..Beam..',Muted') else nwcut.writeline(item) end end