MAKE A MEME View Large Image ParsonsCode-Ode to Joy.png en 'Ode to Joy' melodic contour Parsons code +schema fr Contour mélodique de l'Hymne à la joie code Parsons own Xofc 2011-05-45 text Cc-zero Source code <pre> Parsons /contour RUURDDDDRUURDR - / \ / \ - - \ / \ ...
View Original:ParsonsCode-Ode to Joy.png (286x243)
Download: Original    Medium    Small Thumb
Courtesy of:commons.wikimedia.org More Like This
Keywords: ParsonsCode-Ode to Joy.png en 'Ode to Joy' melodic contour Parsons code +schema fr Contour mélodique de l'Hymne à la joie code Parsons own Xofc 2011-05-45 text Cc-zero Source code <pre> Parsons /contour RUURDDDDRUURDR - / \ / \ - - \ / \ - \ / - Parsons </pre> The contour has been generated by this 'C' program <pre> include <stdlib h> include <stdio h> include <string h> define MAXLEN 20 void usage char str fprintf stderr s\n str ; exit -1 ; main int argc char argv int i; int x y; int level max_level min_level; int level_tabMAXLEN; int code_len; if argc 2 usage nombre d'arguments invalide ; if argv10 ' ' usage mauvais code initial ; if code_len strlen argv1 > MAXLEN usage code trop long ; / minimax / max_level min_level level 0; level_tab0 0; for i 1; argv1i; i++ switch argv1i case 'u' case 'U' level + 1; if level > max_level max_level level; break; case 'd' case 'D' level - 1; if level < min_level min_level level; break; case 'r' case 'R' break; default usage mauvais code ; break; level_tabi level; printf \n ; for y max_level; y > min_level; y-- if y 0 printf ; else printf ; for x 1; x < code_len; x++ if level_tabx y if level_tabx-1 level_tabx printf - ; else printf ; else printf ; printf \n ; for x 1; x < code_len; x++ if level_tabx y if level_tabx-1 < y printf / ; else printf ; else if level_tabx-1 y level_tabx < y printf \\ ; else printf ; printf \n ; printf \n ; </pre> Musical notation systems Images with C source code
Terms of Use   Search of the Day