Come Quando Fuori Piove

https://eidon.bandcamp.com/album/ii

December 21, 2020: rain solstice — no Jupiter + Saturn for me today.

Hence, Musica!

This track is called “Come Quando Fuori Piove” — an Italian mnemonic that one may translate as “like when it's raining outside”, which is used to remember the sequence “Cuori-Quadri-Fiori-Picche” (hearts, diamonds, clubs, spades). The order in that sequence is important in various Italian card games (the Italian versions of Gin Rummy, Poker, and others) apparently.

The lyrics are just permutations of the mnemonic:

Fuori  piove  come   quando
Come   quando fuori  piove
Piove  come   quando fuori
Quando fuori  piove  come

Come   piove  fuori  quando
Quando come   piove  fuori
Fuori  quando come   piove
Piove  fuori  quando come

It would be wonderful if they would constitute a magic square, as Sator Arepo — alas that's not the case :smile:

In what follows I focus on the video of the song, which I created with txt2srt and ImageMagick.

Generating the Frames

The frames of the video were created with [Feedpovray]() as follows:

read -r -d '' PIGMENT <<- EndOfPigment
pigment {
        marble
        turbulence 0.5
        lambda 1.5
        omega 0.8
        octaves 5
        frequency 3
        color_map {
                [0.00 color Red]
                [0.33 color Blue]
                [0.66 color Yellow]
                [1.00 color Red]
        }
        rotate 45*z
}
        EndOfPigment
feedpovray --input=012233445 --y=3 --z=6 --max-size=3 --output=012233445.pov \
           --prologue=prologue.2.012222222 \
           --pigment="$PIGMENT"

The output file 012233445.pov was edited by changing the camera as follows:

  location <160 + clock*8290, 160 + clock*8290, 160 + clock*8290>
  look_at   <-25,25,0>

This is the .ini file used to generate the frames:

Antialias=Off
Antialias_Threshold=0.1
Antialias_Depth=2

Input_File_Name="012233445.pov"

Initial_Frame=1
Final_Frame=2653
Initial_Clock=1
Final_Clock=0

Cyclic_Animation=on
Pause_when_Done=off

Width=1280
Height=720

Adding special effects with txt2srt

This time I wanted to use the dissolve filter of ImageMagick to “merge” the PovRay frames with some pictures with themes related to the rain.

I located three public domain pictures from publicdomainpictures.net:

Here's “Threat Of Rain”, by Bobbi Jones Jones. CC0 Public Domain.

Then, I defined the txt2srt command sequence, which I wrote in a file called cqfp.stxt.

IMAGE: 012233445
FORMAT: %04d
TYPE: png
FPS: 23.976

T: 00:00:00,000
S: 21 dicembre 2020: solstizio di pioggia,
S: niente Giove con Saturno oggi per me.
S: E allora, Musica!
CMD: echo gmic -input $image -glow $param% -output output/$image
FROM: 20
TO: 80

T: 00:00:08,000
S: Come Quando Fuori Piove. Di Eidon (Eidon@tutanota.com).
S: (c) Eidon. All rights reserved.
REM: echo convert $image -region $((1280-iparam*2))x$((720-iparam))+${iparam}+${iparam} -fill '"rgba(173,255,47,1)"' -colorize 70% tmp-image.png \; gmic -input tmp-image.png -glow $((100 - iparam / 64))% -output output/$image
REM: FROM: 640
REM: TO: 1
CMD: echo convert $image gouttes-de-pluie-et-arbustes-720.png -compose dissolve -define compose:args=${iparam} -composite output/$image
FROM: 0
TO: 200

T: 00:00:16,000
S: Il brano, iniziato con il ruolo centrale affidato
S: al pianoforte, lascia ora spazio al sax tenore
CMD: echo convert gouttes-de-pluie-et-arbustes-720.png $image -compose dissolve -define compose:args=${iparam} -composite output/$image
FROM: 0
TO: 200

T: 00:00:32,000
S: E' sempre al sax che è affidato il secondo
S: tema ed il suo sviluppo
CMD: echo convert $image threat-of-rain-720.png -compose dissolve -define compose:args=${iparam} -composite output/$image
FROM: 0
TO: 130

T: 00:01:00,000
S: Fuori  piove  come   quando
S: Come   quando fuori  piove
S: Piove  come   quando fuori
S: Quando fuori  piove  come
CMD: echo convert threat-of-rain-720.png $image -compose dissolve -define compose:args=${iparam} -composite output/$image
FROM: 0
TO: 200


T: 00:01:16,000
S: Dopo le corde pizzicate, ancora il sax
CMD: echo convert $image pluie-sur-la-fenetre-720.png -compose dissolve -define compose:args=${iparam} -composite output/$image
FROM: 0
TO: 130

T: 00:01:32,000
S: Torna quindi il canto, ed il brano si chiude:
S: Come   piove  fuori  quando / Quando come   piove  fuori
S: Fuori  quando come   piove / Piove  fuori  quando come!
CMD: echo convert pluie-sur-la-fenetre-720.png $image -compose dissolve -define compose:args=${iparam} -composite output/$image
FROM: 0
TO: 160

T: 00:01:50,643

Please note that here I used 1280x720 versions of the three above-mentioned public-domain pictures.

Then I executed the following commands: ```

txt2srt < cqfp.stxt # This creates genscript.sh and subtitles.srt ./genscript.sh > gen.sh # This creates gen.sh bash gen.sh # This processes all frames and places the output frames in output cd output ./ffmpeg.sh # This creates the output video with ffmpeg.

Audio and video are © Eidon (eidon at tutanota.com). All rights reserved.

Wonderful surprise ^_^

“And here too you are true to yourself, and while you write your music, you play cards with its lyrics”