// Script to add a record loop or a play loop for a section // Arguments: // 1: 1 for Play Loop (default is record loop) // // Author: LoopToGo // // Description : Will add a record loop (or a play loop) for the current section (section on which the Song Start Bar is located) // The loop will start at the beginning of the section and end at the end of the section // The play loop will also have the same name as the section. If a record loop exist, it will link it to the record loop. // The best way to use it is to use the same name for all your similar sections. Example: [Verse] (and not [Verse 1], [verse 2], etc.) // If the play loop name does not correspond to a record loop name, the Play loop will get the name but the user will have to link it manually // to a record loop if $selectedTrack if $arg1 = 1 addPlayLoop $selectedTrack $currentSectionName $currentSectionStart $currentSectionEnd else addRecordLoop $selectedTrack $currentSectionName $currentSectionStart $currentSectionEnd endIf endIf