Script - Enhanced Lyrics Editor (WIP)

Hello everyone, I have developed this script to enhance current lyrics editor, in particular

  • you have a bigger textbox to handle the full lyrics of the song
  • you can insert text with carriage returns without loosing the note synchronization
  • you can transform the original text into classical syllabes (using a target source external dictionary)

e.g. children → chil-dren

  • you can transform the previous syllabes in “dreamtonics format”

e.g. chil-dren → children +

Important Note: I have created files for the four “official” languages, but the syllabations rules for now are tested only on a subset of English words`and I’m still working on it to enlarge the correct recognition.

INSTALLATION

Copy .lua script inside script folders. Create a subdirectory “languages” and put inside it the .dic files.

NOTES: Check the script directory inside the script. Current is set with “Documenti” name, if it’s not working change it accordingly your path.

HOW IT WORKS

{language}-syl.DIC

This file contains the “syllabion rules” for extracting syllabes from words. The structure is divided as follows:

{RULE PLACEHOLDER},{REGEX SYLLABATION} {NUMBER OF SYLLABES}

Below is an example for the English “CVVC” rule (Consonant + Vocal + Vocal + Consonant)

CVVC ^ [bcdfghjklmnpqrstvwxyz][aeiouy][aeiouy]bcdfghjklmnpqrstvwxyz 4

USAGE

The script could be used:

  • Selecting a group of notes

  • Opening GAF Utilities > Enhanced Lyrics Editor following interface appears

You can freely edit the text area as the official lyrics box, with the addition to use freely carriage returns

  • You can on Operation block choose a specific work to do

operations

Note: you can choose “Only Preview” checkbox to not close the lyrics editor (and not affect the real notes)

If you choose “Words to dreamtonics format”, and click OK, the result will be this one:

If you choose “Words to classic syllabes”, and click OK, the result will be this

When you’re satisfied with your lyrics, you can remove the “Only preview” and click OK.

You can download the script at the repo

5 Likes

Hi guys, version 2.0 is out!
I’ve added two major features!

TEXT REPLACE

image

You have two now input box in which you can insert quickly a replace string, as shown in the following example

Before


After clicking OK

PHONEME EDITOR
You can edit directly the phoneme from the lyrics editor, using the Mode selector!

Each note is identified by the “{}” so that you can use space to separate the single phoneme.

Stay tuned for next updates!

5 Likes

For an OK installation, I will just clarify the very understandable description of GAF, that I (I programmed 30 years ago) had to fix it in two lines, from “documenti” to “dokumenty” because I have Czech Windows 11 Home. I am old and lazy when it comes to programming these days, so I am grateful for every script. Thank you very much Giuseppe…

3 Likes

Yes, Windows in several languages ​​has a bad idea to rename internal folders… (thanks devs from Micros…) Documents (english, french etc.) and documenti, dokumenty, I don’t know in japanese, chinese, arabic…
Currently this is a missing but useful information for scripting in SynthV. Except importing external libraries.

3 Likes

welcome to the wonderful world of i18n and making sure everyone is happy (except 3rd parties who have to do the extra i18n work as well to support 150 different languages) :wink: lol.

best to build your i18n resource tables file early on and avoid the pain and suffering later when needing to retrofit…

In Mac OS it is a lot easier to find the scripts folder. It’s in …\Library\application support\Dreamtonics\scripts

I keep getting this error when trying to execute “words to dreamtronics format”

Screenshot 2024-11-18 at 7.11.47 PM

Same result with “words to classic syllables”

Hi, have you copied the file EN-syl.dic into the scripts/languages folder?

Ah, I made a mistake in that process. I corrected it and now it works, thanks! There is a problem however with the syllable counting. Sometimes it adds a + after single-syllable words or two +'s after two syllable words…

Yes, it’s not always perfect with the syllabation because English is very complicated as language to hyphenate. But in that case you can simply fix manually the word :slight_smile:

2 Likes

Great work! Thanks for your help!