version 3.4.15 released, Updates to Papagayo scripts

smeighan

Dedicated elf
Joined
Jan 19, 2012
Messages
1,109
Location
4217 Greenfinch Dr CO 80126
Release 3.4.15. Now you can stitch multiple parts of a voice together. You can also merge multiple xlight sequences.


Here is a video showing multiple voices, from multiple files that shows xlights can now create singing faces
http://nutcracker123.com/nutcracker/images/thriller.mp4


XLIGHTS/NUTCRACKER RELEASE NOTES:
=================================
3.4.15 Sep 28, 2014
- ENH (Sean) merge_xml.awk will combine multiple xlights xml sequences into one.
- ENH (Sean) corofaces.awk awk now will stitch together multiple files for the same voice.
- DOC (Sean) New documentation, README,corofaces. You will see thsi when u install the
latest code
3.4.14 Sep 26, 2014
- ENH (Sean) scripts added that can take Papagayo voices and make xlights sequences from them
- ENH (Sean) Scripts are found in your installation directory. corofaces.awk, coroface.bat
- ENH (Sean) Installation of xlights now installs gawk.




So how to do Papagayo (This is interim method until Don Julien finished up Papagayo tab)


1) Take a wave file, example thriller.wav
2) Break it into 3 chunks using audacity.
Example
thriller1.wav
thriller2.wav
thriller3.wav
3) Use papagayo and mark up your voices.
save thyem as pgo files.
thriller1.pgo
thriller2.pgo
thriller3.pgo
4) Go into Papagayo and export each voice into a *.dat file
Example , there are three voices.
voice1a.dat
voice1b.dat
voice1c.dat
voice2a.dat
voice2b.dat
voice2c.dat
voice3a.dat
voice3b.dat
voice3c.dat


the "*a.dat, *b.dat,*c.dat indicate that these came from 3 different pgo files


You now need to stitch each voice back together.


Look at line 4 in each pgo file. it will show the last frame that each file used.


5) Copy corofaces.awk, coroface.bat,merge_xml.awk from C:\Program Files (x86)\xLights and put them into your show directory


6) edit the batch file corofaces.bat
rem
rem edit these next lines and put in what your voice dat files were from Papagayo
rem First copy coroface.awk, coroface.bat and merge_xml.awk from the
rem
rem Syntax" gawk -f coroface.awk -v m1=xxx -v v1=nnn voice1.dat voice1b.dat > voice1.xml
rem edit these next lines and put in what your voice dat files were from Papagayo
rem arguments
rem "-v m1=face1". -v means you will define a variable. m1 is the variable. it contains
rem the model name for voice1
rem "-v v1=3649". This is the last frame in the first pgo file. Look on line 4 of
rem your pgo file. it will show the last frame.
rem


gawk -f coroface.awk -v m1=face1 -v v1=3649 -v v2=910 voice1.dat voice1b.dat > voice1.xml
gawk -f coroface.awk -v m1=face2 -v v1=3649 -v v2=910 voice2.dat voice2b.dat > voice2.xml
gawk -f coroface.awk -v m1=face3 -v v1=3649 -v v2=910 voice3.dat voice3b.dat > voice3.xml




after you have made an xml light sequence for each voice, we want to join them all together


em edit this command to contain all of the xml files you need to combine
rem Syntax: gawk -f merge_xml.awk {firstfile} {secondfile} {thirdfile} {.etc.} > {output xml file)




gawk -f merge_xml.awk voice1.xml voice2.xml voice3.xml > voice.xml




7) Now open the original wav file (before you chopped it itno 3 pieces)
Use the 3rd open option. give it the wav file name and then the xml file. (voice.xml in our example)


8) save the sequence
 
Top