Old 02-27-2019, 05:16 PM   #1
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,643
Default Help Modifying Lyrics Window to Chord Region Sheet

There's a Cockos script Scripts\Cockos\lyrics.lua
I know I always ask too hard stuff but I'm just looking at modifying lyrics.lua to work as a chord/region viewer.
It will have 4 measures across and each beat of that measure can be edited with a chord name that will edit
or insert that region and display that region's color.
It needs to work like the gif under.
I don't mind making a donation if someone would like to help out.






Last edited by MusoBob; 03-04-2019 at 05:18 PM.
MusoBob is offline   Reply With Quote
Old 03-04-2019, 05:15 PM   #2
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,643
Default

The Editing mode in lyrics.lua lets you edit each beat so you can edit each beat of each measure and that will edit or inset the region/chord name, the measures will be the region color and the current playing measure will be highlighted, it will need bigger fonts maybe use the existing drop downs for font and size so you can use a music chord style font (see bottom pics):





MusoBob is offline   Reply With Quote
Old 03-10-2019, 11:18 PM   #3
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,984
Default

Hi MusoBob, much thanks for such a big donation, really appreciated.
I `m not good at modifing others code, so here is one for you:


update ReaPack (Action list: ReaPack: Synchronize packages) and navigate for mpl_Region chord editor.lua. Also make sure you have installed mpl_Various_Functions package (you can install it also from reapack: ReaPack: Browse packages)


Last edited by mpl; 03-11-2019 at 12:21 AM.
mpl is offline   Reply With Quote
Old 03-11-2019, 03:56 AM   #4
MusoBob
Human being with feelings
 
MusoBob's Avatar
 
Join Date: Sep 2014
Posts: 2,643
Default

Thanks Awesome !!!

I will send some more donation if you can adjust some things.
1. To ignore a region, something like
if string.match( region_name, "@") then goto skip end -- skip region marked @ ignore
2. start is also measure 1 if Project start measure is -1 , not -1.1.00
3. 4 measures per line
4. only have chord name at start of region C . . . and dot for each beat (edit point)
to add new chord and split region C . G . (chord change to G on beat 3 will split the region,
removing chord will glue region) or 1 C . . . 2 . . . . 3 G . . . 4 . . . . (measure 1 C chord for 2 measures then chord change to G on measure 3 for 2 measures (bars))
5. chord editor color same as region color



4 measure per line, dot "." for edit point on each beat

MusoBob is offline   Reply With Quote
Old 03-11-2019, 12:39 PM   #5
mpl
Human being with feelings
 
mpl's Avatar
 
Join Date: Oct 2013
Location: Moscow, Russia
Posts: 3,984
Default

Quote:
1. To ignore a region, something like
if string.match( region_name, "@") then goto skip end -- skip region marked @ ignore
any region with @ character is ignored

Quote:
2. start is also measure 1 if Project start measure is -1 , not -1.1.00
there is not way to know measure offset from API afaik

Quote:
3. 4 measures per line
done

Quote:
4. only have chord name at start of region C . . . and dot for each beat (edit point)
to add new chord and split region C . G . (chord change to G on beat 3 will split the region,
removing chord will glue region) or 1 C . . . 2 . . . . 3 G . . . 4 . . . . (measure 1 C chord for 2 measures then chord change to G on measure 3 for 2 measures (bars))
That was slightly complex (see Data_AddChord() function), but seems working now.

Quote:
5. chord editor color same as region color
done

I also moved script to 'Regions' folder.
mpl is offline   Reply With Quote
Old 03-11-2019, 12:45 PM   #6
Jae.Thomas
Human being with feelings
 
Join Date: Jun 2006
Posts: 22,572
Default

very cool - i assume there's no way to make other regions overlapping these? or am I wrong
Jae.Thomas is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:46 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.