// RmvDig.s macro // // Create a TSE shortcut on desktop with following: // C:\tse32\e32.exe -ermvdig.mac // as the target. A shortcut key should be associated with this // shortcut. // // To use: // 1. Enter lyrics with measure numbers being part of syllables // at start of phrase or line. // 2. When you find a lyric syllable lined up at one point, but // not lined up at the next point, look for and correct the // mistake(s). E.g., if the lyrics at measure 50 are OK but // the lyric at measure 56 is out of place, look in measures // 59-55. // 3. Copy all lyrics to the clipboard. // 4. Press your shortcut key. Screen should blank out for a // few seconds. // 5. Go to the top of your lyrics, press "Enter" a few times, // and go back to the top of lyrics. Paste from the clipboard. // 6. If there are any changes, cuts, etc., delete the unnumbered // lyrics, make changes and go back to step 3. proc Main() //Remove digits from clipboard PasteFromWinClip() //Copy from system clipboard Replace("[0-9]","","gxn") //Replace all digits with nothing, // Global, regular eXpression, No prompt BegLine() //Prep to mark all editspace MarkLine() //Mark from front end EndFile() //Go to last line MarkLine() //Entire editspace is marked CopyToWinClip() // and will be written back to clipboard AbandonEditor() //Shutdown w/o prompt to save. end