Old 09-27-2022, 01:03 PM   #1
kamilbaranski1
Human being with feelings
 
Join Date: Apr 2021
Posts: 54
Default Lyrics Generator

Hi, I did a lyrics generator that might be nice for things like teleprompter on the gig.
  • The script takes song title and musical sequence title from media item titles
  • The lyrics are in separate media items (as basic strings, sent to shared memory)
  • All the formatting takes place in main script.

https://github.com/kamilbaranskicom/...aster/kbLyrics

That was a nice day . If anybody want to maintain this script, just tell me. I'll be glad, as I'm happy to be musician and just do some programming as a hobby.
kamilbaranski1 is offline   Reply With Quote
Old 03-28-2023, 11:11 PM   #2
CharlesBennett
Human being with feelings
 
Join Date: Mar 2023
Posts: 1
Default

Very interesting. What algorithm is used to create the lyrics and how does it affect spotify follows? From the words I suggest?

Last edited by CharlesBennett; 04-03-2023 at 07:02 AM.
CharlesBennett is offline   Reply With Quote
Old 03-29-2023, 08:12 AM   #3
kamilbaranski1
Human being with feelings
 
Join Date: Apr 2021
Posts: 54
Default

Look at the "kb_Write lyrics to shared memory" - https://github.com/kamilbaranskicom/...hared%20memory

The example would be:

Code:
// Write lyrics to shared memory
//@gmem=kbLyrics

#lyrics="It's close to midnight
And something evil's lurking in the dark
Under the moonlight
You see a sight that almost stops your heart";


function gmem_write_string(index, value) local(offset) (
  offset = 0;
  loop(strlen(value),
    gmem[index] = str_getchar(value, offset);
    offset += 1;
    index += 1;
  );
  gmem[index] = 0;
);
gmem_write_string(0, #lyrics);
Then the main script (kbLyrics prompter generator) reads it from the shared memory and writes it on the Video.
kamilbaranski1 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 03:44 AM.


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