Saturday, March 7, 2015

CODE-a-LYRICS - Pookkale Sattru Oivedungal

/*
* DOCUMENTATION(Special for first edition):
* Codealyrics# - Because maintainable code is as soothing as song

* Not a replacement of lyrics but a rebirth
* OOP concept helps in understanding
* # - Pronouced as Codeஇல்லlyrics
*
* How to enjoy-
* 1.Go thru Code without trying to sing
* 2.Capture flow of blocks from 'SING SONG' block
* (Photographic memory or something)
* 3.Turn on song follow 'SING SONG' block
*/

/*
*File Specific Documentation
*@author Shiva hari kumar - @pbshiva
*Album: I (Tamil movie)
*Song: Pookkale Sattru Oivedungal 
*Composer : AR Rahmaan
*
*<!--Comments not lyrics-->
*/
<!--DECLARTAION-->
LeadMale him = song.film.getLeadMale();
Pookal poo = new Pookal<>;
FemaleLead her = him.getLadyLove();
def init KickSong:
do{
voice = him.voice();
poo.wait();
declare HER_ARRIVAL
}while(her.isArrived());

<!--DECLARATION COMPLETED-->

<!--SONG BLOCKS BEGINS-->

volatile BLOCK1{
hold(10s,music);
goto KickSong
hold(10s,music);
goto KickSong

charm:
if i == beauty then
assert i.super() = her;

hail:
if i == God then
assert God.particle() = her;

while(i.reaction("io" and "i!"){
i.setFree(her.publicKey());
declare HER_ARRIVAL
}
goto KickSong
}

final BLOCK2{
hum(her.voice());
continue her.voice();
global.each.winningPotential() < him.winningPotential();
declare him.movement.each=i;

skip externalBeauty;
insert into him(heart) values(her);
for(sense : her.senses()){
sense.setRecognize(i);
}
switch(him.voice()){
case done:
him.hug(fear);
case cascade: <!--result of first action no break -->
her.hug(him);
her.actions(i);
case result: <!--result of net. action, no break -->
global.meldown(her.looks);
(notGuilty()?continue:break)
}

him.thread.join(her.hands);
stitchHands(him,her);

def romance(voice){
do{
smell(her.lips);
}while(longWalk);
}
romance(him.voice());
thread.wait().join(); <!--best I could think for 'thavam' - ?medidate? -->
goto KickSong
}

static BLOCK3{
hold(35s,music);
voice = her.voice();
def change(obj,modulator,attribute[]){ 
voice = modulator.voice();
if(modulator!=her){ <!--her is final can't be modified, don't risk-->
 swap(obj,modulator);
}
if(modulator=obj.love()){
temp = attribute[0];
attribute[0] = attribute[1];
attribute[1] = '/0'; <!--end of attribute-->
obj.addActionList(temp) <!--saving for climax-->
}
}
change(him,her,{waterfall,canal});
change(him,her,{peak,stage});
change(her,him,{him.inner,him.inner[//her.seen = seen]})
change(her,him,{heart.accessOverridden(),sculpture})
for(age : Age<Period>){
age.requiredFace = him.getFace();
age.restplace = him.heartSpace();
}
him.express(
renewLife(her.privateKey()),
setConfidence(HIGH),
{volatile path;
path.smell = her.plesantSmell();}
);
}
<!--SONG BLOCKS COMPLETED-->


<!--SING SONG-->
being music;
begin BLOCK1;
begin BLOCK2.speedy();
begin BLOCK1.with(skip(goto));
begin BLOCK3;
begin BLOCK1.with(skip(hold,goto(1),hail),
 include(after charm,
 charm.replace({beauty,leader},{her,him}));
<!--SMILE FOR THE CAMERA-->