Old 12-04-2022, 09:35 AM   #1
profquad
Human being with feelings
 
Join Date: Feb 2017
Posts: 187
Default 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);
I tried adding some lines from "Horizontal wipe" but I'm just a hack and don't know how to make it apply to strings instead of the full image.
profquad is offline   Reply With Quote
Old 12-04-2022, 01:46 PM   #2
foxAsteria
Human being with feelings
 
foxAsteria's Avatar
 
Join Date: Dec 2009
Location: Oblivion
Posts: 10,271
Default

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
foxAsteria is online now   Reply With Quote
Old 12-04-2022, 04:14 PM   #3
papagirafe
Human being with feelings
 
papagirafe's Avatar
 
Join Date: Aug 2020
Location: Brasil
Posts: 690
Default

Quote:
Originally Posted by profquad View Post
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.
<snip>
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.
papagirafe is offline   Reply With Quote
Old 12-11-2022, 07:25 PM   #4
profquad
Human being with feelings
 
Join Date: Feb 2017
Posts: 187
Default

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.
profquad is offline   Reply With Quote
Old 12-11-2022, 07:30 PM   #5
profquad
Human being with feelings
 
Join Date: Feb 2017
Posts: 187
Default

ah this always happens right after i post lol, just moved horizontal wipe beneath text overlay in the fx chain, it works
profquad is offline   Reply With Quote
Old 12-12-2022, 05:28 AM   #6
foxAsteria
Human being with feelings
 
foxAsteria's Avatar
 
Join Date: Dec 2009
Location: Oblivion
Posts: 10,271
Default

Notes Reader's not VIP.
__________________
foxyyymusic
foxAsteria is online now   Reply With Quote
Old 12-13-2022, 03:54 PM   #7
papagirafe
Human being with feelings
 
papagirafe's Avatar
 
Join Date: Aug 2020
Location: Brasil
Posts: 690
Default

Quote:
Originally Posted by profquad View Post
ah this always happens right after i post lol, just moved horizontal wipe beneath text overlay in the fx chain, it works
Great!
papagirafe is offline   Reply With Quote
Old 02-20-2023, 08:11 PM   #8
eviluess
Human being with feelings
 
eviluess's Avatar
 
Join Date: Dec 2015
Location: Guangzhou, China
Posts: 176
Default

https://www.youtube.com/watch?v=b523_0jsWr0
eviluess is offline   Reply With Quote
Old 02-22-2023, 03:01 PM   #9
lachinhan
Human being with feelings
 
lachinhan's Avatar
 
Join Date: Nov 2014
Location: Can Tho - Viet Nam
Posts: 305
Default

Quote:
Originally Posted by eviluess View Post
How to run the word Karaoke like you??
THanks
__________________
NK Recording Studio
Email: lachinhan@gmail.com or admin@thuamninhkieu.com
Website:nkpro.top and ntmusicpro.com
lachinhan is online now   Reply With Quote
Old 02-22-2023, 03:43 PM   #10
papagirafe
Human being with feelings
 
papagirafe's Avatar
 
Join Date: Aug 2020
Location: Brasil
Posts: 690
Default

Quote:
Originally Posted by lachinhan View Post
How to run the word Karaoke like you??
THanks
2 instances of the same text with different outline styles on 2 distinct tracks. Then use an horizontal wipe with envelope.
papagirafe is offline   Reply With Quote
Old 02-22-2023, 08:40 PM   #11
lachinhan
Human being with feelings
 
lachinhan's Avatar
 
Join Date: Nov 2014
Location: Can Tho - Viet Nam
Posts: 305
Default

Quote:
Originally Posted by papagirafe View Post
2 instances of the same text with different outline styles on 2 distinct tracks. Then use an horizontal wipe with envelope.
Can you show it to me in an example project? I'm really not good at this.

Thank you @papagirafe
__________________
NK Recording Studio
Email: lachinhan@gmail.com or admin@thuamninhkieu.com
Website:nkpro.top and ntmusicpro.com
lachinhan is online now   Reply With Quote
Old 02-23-2023, 04:49 AM   #12
papagirafe
Human being with feelings
 
papagirafe's Avatar
 
Join Date: Aug 2020
Location: Brasil
Posts: 690
Default

Quote:
Originally Posted by lachinhan View Post
Can you show it to me in an example project? I'm really not good at this.

Thank you @papagirafe
I suggest you take some time to study this tutorial video:
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.
papagirafe 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 10:15 PM.


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