12-04-2022, 09:35 AM | #1 |
Human being with feelings
Join Date: Feb 2017
Posts: 187
|
How to make karaoke style text
Hi, I'm using my own slightly modded version of text overlay for color, but I'm wondering how to add a horizontal wipe between two text strings of different colors, so I can add a wipe position envelope and get that karaoke effect.
Here's the text overlay code I use: Code:
// Text Colorful #text=""; // set to string to override font="Arial"; //@param1:size 'text height' 0.05 0.001 0.2 0.1 0.001 //@param2:ypos 'y position' 0.95 0 1 0.5 0.01 //@param3:xpos 'x position' 0 0 1 0.5 0.01 //@param4:border 'border' 0 0 1 0.5 0.01 //@param6:fga 'text alpha' 1.0 0 1 0.5 0.01 //@param7:bgc 'bg bright' 0.75 0 1 0.5 0.01 //@param8:bga 'bg alpha' 0.5 0 1 0.5 0.01 //@param9:r 'R' 255 0 255 128 1 //@param10:g 'G' 255 0 255 128 1 //@param11:b 'B' 255 0 255 128 1 //@param12:ignoreinput 'ignore input' 0 0 1 0.5 1 input = ignoreinput ? -2:0; project_wh_valid===0 ? input_info(input,project_w,project_h); gfx_a2=0; gfx_blit(input,1); gfx_setfont(size*project_h,font); strcmp(#text,"")==0 ? input_get_name(-1,#text); gfx_str_measure(#text,txtw,txth); yt = (project_h- txth*(1+border*2))*ypos; gfx_set(bgc,bgc,bgc,bga); gfx_fillrect(0, yt, project_w, txth*(1+border*2)); gfx_set(r/255, g/255, b/255, fga); gfx_str_draw(#text,xpos * (project_w-txtw),yt+txth*border); |
12-04-2022, 01:46 PM | #2 |
Human being with feelings
Join Date: Dec 2009
Location: Oblivion
Posts: 10,271
|
Just in case you're not aware, HeDa Notes Reader script works great for queuing lyrics, ableit without any fancy fx. It uses empty items for the text and the item position is used for alignment.
__________________
foxyyymusic |
12-04-2022, 04:14 PM | #3 |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 690
|
I would generate the same line of text twice on 2 items in different tracks, one wihtout outline the other with. Then I would use the horizontal wipe transition to "advance in the text and repeat the process for each text page. BTW I made a text overlay that makes ajustable high quality outline.
|
12-11-2022, 07:25 PM | #4 |
Human being with feelings
Join Date: Feb 2017
Posts: 187
|
Haven't gone VIP with heda yet. Seems like the right idea, but still curious how to add a wipe to text only. I have background video, and the Horizontal wipe effect wipes that out too. Tried every combo of "left input" and "right input", couldn't get it to just wipe the text.
Is there a good coding resource? I try just reading the definitions but mostly just change things, see what happens. |
12-11-2022, 07:30 PM | #5 |
Human being with feelings
Join Date: Feb 2017
Posts: 187
|
ah this always happens right after i post lol, just moved horizontal wipe beneath text overlay in the fx chain, it works
|
12-12-2022, 05:28 AM | #6 |
Human being with feelings
Join Date: Dec 2009
Location: Oblivion
Posts: 10,271
|
Notes Reader's not VIP.
__________________
foxyyymusic |
12-13-2022, 03:54 PM | #7 |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 690
|
|
02-20-2023, 08:11 PM | #8 |
Human being with feelings
Join Date: Dec 2015
Location: Guangzhou, China
Posts: 176
|
|
02-22-2023, 03:01 PM | #9 | |
Human being with feelings
Join Date: Nov 2014
Location: Can Tho - Viet Nam
Posts: 305
|
Quote:
THanks
__________________
NK Recording Studio Email: lachinhan@gmail.com or admin@thuamninhkieu.com Website:nkpro.top and ntmusicpro.com |
|
02-22-2023, 03:43 PM | #10 |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 690
|
|
02-22-2023, 08:40 PM | #11 | |
Human being with feelings
Join Date: Nov 2014
Location: Can Tho - Viet Nam
Posts: 305
|
Quote:
Thank you @papagirafe
__________________
NK Recording Studio Email: lachinhan@gmail.com or admin@thuamninhkieu.com Website:nkpro.top and ntmusicpro.com |
|
02-23-2023, 04:49 AM | #12 | |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 690
|
Quote:
https://www.reaper.fm/videos.php#SPULwlLjQOU but nevertheless, it seems a mystery for many so here is a sample project: https://stash.reaper.fm/46363/karaoke%20demo.rpp Last edited by papagirafe; 02-23-2023 at 07:45 AM. |
|
Thread Tools | |
Display Modes | |
|
|