[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Lilyscript... lisez ce qui suit, ça vaut le détour...
From: |
legoss |
Subject: |
Re: Lilyscript... lisez ce qui suit, ça vaut le détour... |
Date: |
Tue, 17 Mar 2009 02:11:40 -0700 (PDT) |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="fr" >
<head>
<title>Lilyscript</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<meta name="AUTHOR" content="Adrien LECLERC" />
<meta http-equiv="CONTENT-LANGUAGE" content="French" />
<style type="text/css">
body{
background-color:#C3E2D4;
font-family:'Courier New';
font-size:13
}
input{
border-color:#AFC5FF;
background-color:#A0D5C9;
}
textarea{
border-color:#AFC5FF;
background-color:#A0D5C9;
font-family:'Courier New';
font-size:12
}
td{
color:#000000;
text-align:center;
}
.titre{
color:##000000;
text-align:center;
font-weight: bold;
background-color:#A0D5C9;
}
</style>
<script language="javascript" type="text/javascript">
function remplace(lettre)
{
var lettre;
var corresp;
var longueur;
var longueur2;
var ssespace;
var val;
lettre = document.getElementById('brut').value;
switch (lettre)
{
case "1":
corresp = "1";
break;
case "2":
corresp = "2";
break;
case "3":
corresp = "3";
break;
case "4":
corresp = "4";
break;
case "5":
corresp = "5";
break;
case "6":
corresp = "6";
break;
case "7":
corresp = "7";
break;
case "8":
corresp = "8";
break;
case "9":
corresp = "9";
break;
case "0":
corresp = "0";
break;
case ".":
corresp = ".";
break;
case "/":
corresp = "/";
break;
case "*":
corresp = "*";
break;
case "+":
corresp = "+";
break;
case "²":
corresp = " es";
break;
case "&":
corresp = " is";
break;
case "é":
corresp = " ~";
break;
case "#":
corresp = " \\times 2/3 {";
break;
case "'":
corresp = "'";
break;
case "{":
corresp = " {";
break;
case "(":
corresp = " (";
break;
case "[":
corresp = " [";
break;
case "-":
corresp = "-";
break;
case "_":
corresp = "_";
break;
case ")":
corresp = " )";
break;
case "]":
corresp = " ]";
break;
case "}":
corresp = " }";
break;
case "A":
corresp = "\n\\alternative { {";
break;
case "z":
corresp = " cis";
break;
case "Z":
corresp = "\n\n\\score {\n<<\n \\new ChordNames \\with {\n chordChanges =
##f\n voltaOnThisStaff = ##t\n \\override VoltaBracket #'minimum-space
=#0 }
\n { \\accords }\n \\new Staff \\with { voltaOnThisStaff = ##f }\n<<\n
\\new
Voice = chant { << \\musique >> }\n>> % espace sous les paroles / espace sur
les paroles\n \\new Lyrics \\with { \\override VerticalAxisGroup
#'minimum-Y-extent = #'(-0.1 . 0.7) }\n \\lyricsto chant { \\coupletI }\n
\\new Lyrics \\with { \\override VerticalAxisGroup #'minimum-Y-extent =
#'(-0.1 . 0.1) }\n \\lyricsto chant { \\coupletII }\n \\new Lyrics
\\with {
\\override VerticalAxisGroup #'minimum-Y-extent = #'(-0.1 . 0.1) }\n
\\lyricsto chant { \\coupletIII }\n \\new Lyrics \\with { \\override
VerticalAxisGroup #'minimum-Y-extent = #'(-2 . 0.1) }\n \\lyricsto chant {
\\coupletIIII }\n>>\n\n\\midi { }\n\\layout { }\n}";
break;
case "e":
corresp = " dis";
break;
case "r":
corresp = " eis";
break;
case "R":
corresp = "\n\nmusique = \\relative c' {\n\n \\override
Staff.VerticalAxisGroup #'minimum-Y-extent = #'(-4 . 3)\n \\override
Staff.VerticalAxisGroup #'minimum-Y-extent = ##f\n\n \\time 4/4 \n \\key
c\\major \n \\clef treble\n\n";
break;
case "t":
corresp = " fis";
break;
case "T":
corresp = "\n\\time 2/4";
break;
case "y":
corresp = " gis";
break;
case "u":
corresp = " ais";
break;
case "i":
corresp = " bis";
break;
case "o":
corresp = " \\bar\"||\"";
break;
case "O":
corresp = " \\mark \\markup { \\musicglyph #\"scripts.coda\" }";
break;
case "p":
corresp = " \\bar\"|.\"";
break;
case "P":
corresp = " \\partial ";
break;
case "^^":
corresp = "^";
break;
case "$":
corresp = "sus";
break;
case "¤":
corresp = "dim";
break;
case "q":
corresp = " c";
break;
case "s":
corresp = " d";
break;
case "S":
corresp = " \\mark \\markup { \\musicglyph #\"scripts.segno\" }";
break;
case "d":
corresp = " e";
break;
case "f":
corresp = " f";
break;
case "F":
corresp = " \\fermata";
break;
case "g":
corresp = " g";
break;
case "h":
corresp = " a";
break;
case "j":
corresp = " b";
break;
case "k":
corresp = " \\bar\":|\"";
break;
case "l":
corresp = " \\bar\"|:\"";
break;
case "L":
corresp = "\n\ncoupletI = \\lyricmode {\n \\set stanza = \"1. \"\n\n}";
break;
case "m":
corresp = "m";
break;
case "M":
corresp = "maj";
break;
case "%":
corresp = " \\repeat percent 2 {";
break;
case "<":
corresp = " ces";
break;
case "w":
corresp = " des";
break;
case "x":
corresp = " ees";
break;
case "c":
corresp = " fes";
break;
case "v":
corresp = " ges";
break;
case "V":
corresp = "\\version \"2.12.2\"\n#(set-global-staff-size 18)\n\n\\paper {\n
#(set-paper-size \"a4\")\n page-count = #1\n after-title-space =
1\\cm\n
bottom-margin = 1\\cm\n foot-separation = 0\\cm\n indent = 0\\mm\n
left-margin = 10\\mm\n line-width = 190\\mm\n ragged-bottom = ##f\n
ragged-last = ##f\n ragged-last-bottom = ##f\n ragged-right =
##f\n}\n\n\\header {\n title = \"\"\n subtitle = \\markup { \\smaller {\"\"}
} %auteur / compositeur, instrument, etc...\n tagline = ##f\n} \n\n\accords
= \\new ChordNames \\chordmode {\n\n";
break;
case "b":
corresp = " aes";
break;
case "B":
corresp = "\n\\repeat volta 2 {";
break;
case "n":
corresp = " bes";
break;
case ",":
corresp = ",";
break;
case ";":
corresp = " r";
break;
case ":":
corresp = ":";
break;
case "§":
corresp = "\n\\transpose . . {";
break;
case "!":
corresp = " s";
break;
default:
corresp = null;
break;
}
if(corresp == "1" || corresp == "2" || corresp == "3" || corresp == "4" ||
corresp == "5" || corresp == "6" || corresp == "7" || corresp == "8" ||
corresp == "9" || corresp == "0"){
document.getElementById('lilypond').value =
document.getElementById('lilypond').value + corresp;
}
else if(document.getElementById('lilypond').value == "" && corresp != null){
document.getElementById('lilypond').value = corresp;
}
else {
val = "";
longueur = 0;
ssespace= "";
val = escape(document.getElementById('lilypond').value);
longueur = val.length;
longueur2 = longueur-3;
ssespace = val.substr(longueur2,3);
if(ssespace == "%0A" && corresp != null){
document.getElementById('lilypond').value = unescape(val) + corresp;
}
else if(corresp != null){
document.getElementById('lilypond').value =
document.getElementById('lilypond').value + corresp;
}
}
document.getElementById('brut').value = "";
var sc=document.getElementById("lilypond");
sc.scrollTop = sc.scrollHeight;
}
function enter(){
document.getElementById('lilypond').value =
document.getElementById('lilypond').value + "\n";
var sc=document.getElementById("lilypond");
sc.scrollTop = sc.scrollHeight;
}
</script>
</head>
<body>
<div align="center">
Lilyscript<br /><br />
Ecrire ici : <input type="text" name="brut" id="brut" onKeyUp="if
(event.keyCode ==
13){enter()}else{remplace(document.getElementById('brut').value)}" /><br
/><br />
<textarea cols="90" rows="8" name="lilypond" id="lilypond" ></textarea><br
/><br />
<table width=90% border=3 cellspading=1 style="font-size:14px;">
<tr>
<td colspan="44" class="titre">CORRESPONDANCES</td>
</tr>
<tr>
<td>c</td>
<td>d</td>
<td>e</td>
<td>f</td>
<td>g</td>
<td>a</td>
<td>b</td>
<td>cis</td>
<td>dis</td>
<td>eis</td>
<td>fis</td>
<td>gis</td>
<td>ais</td>
<td>bis</td>
<td>ces</td>
<td>des</td>
<td>ees</td>
<td>fes</td>
<td>ges</td>
<td>aes</td>
<td>bes</td>
<td>'</td>
<td>,</td>
<td>~</td>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
<td>9</td>
<td>0</td>
<td>/</td>
<td>*</td>
<td>-</td>
<td>+</td>
<td>^</td>
<td>_</td>
<td>es</td>
<td>is</td>
<td>r</td>
<td>s</td>
</tr>
<tr>
<td>q</td>
<td>s</td>
<td>d</td>
<td>f</td>
<td>g</td>
<td>h</td>
<td>j</td>
<td>z</td>
<td>e</td>
<td>r</td>
<td>t</td>
<td>y</td>
<td>u</td>
<td>i</td>
<td><</td>
<td>w</td>
<td>x</td>
<td>c</td>
<td>v</td>
<td>b</td>
<td>n</td>
<td>'</td>
<td>,</td>
<td>é</td>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
<td>9</td>
<td>0</td>
<td>/</td>
<td>*</td>
<td>-</td>
<td>+</td>
<td>^^</td>
<td>_</td>
<td>²</td>
<td>&</td>
<td>;</td>
<td>!</td>
</tr>
</table>
<br />
<table width=90% border=3 cellspading=1 style="font-size:14px;">
<tr>
<td colspan="2" class="titre">CORRESPONDANCES 2</td>
<td colspan="2" class="titre">CORRESPONDANCES 3</td>
<td colspan="2" class="titre">CORRESPONDANCES 4</td>
</tr>
<tr>
<td>...</td>
<td>...</td>
<td>\bar"||"</td>
<td>O</td>
<td>\version "2.12.2"...</td>
<td>Maj + V</td>
</tr>
<tr>
<td>(</td>
<td>(</td>
<td>\bar"|."</td>
<td>P</td>
<td>\transpose . . {</td>
<td>Maj + §</td>
</tr>
<tr>
<td>)</td>
<td>)</td>
<td>\bar"|:"</td>
<td>L</td>
<td>\repeat volta 2 {</td>
<td>Maj + B</td>
</tr>
<tr>
<td>[</td>
<td>AltGr + [</td>
<td>\bar":|"</td>
<td>K</td>
<td>\alternative { {</td>
<td>Maj + A</td>
</tr>
<tr>
<td>]</td>
<td>AltGr + ]</td>
<td>\partial</td>
<td>Maj + P</td>
<td>\repeat percent 2 {</td>
<td>Maj + %</td>
</tr>
<tr>
<td>{</td>
<td>AltGr + {</td>
<td>m</td>
<td>m</td>
<td>\mark ... segno" }</td>
<td>Maj + S</td>
</tr>
<tr>
<td>}</td>
<td>AltGr + }</td>
<td>maj</td>
<td>Maj + M</td>
<td>\mark ... coda" }</td>
<td>Maj + O</td>
</tr>
<tr>
<td>\times 2/3 {</td>
<td>AltGr + 3</td>
<td>sus</td>
<td>$</td>
<td>\time 2/4</td>
<td>Maj + T</td>
</tr>
<tr>
<td>\fermata</td>
<td>Maj + F</td>
<td>dim</td>
<td>AltGr + ¤</td>
<td>\relative...{</td>
<td>Maj + R</td>
</tr>
<tr>
<td>...</td>
<td>...</td>
<td>...</td>
<td>...</td>
<td>...\set stanza = "1. "</td>
<td>Maj + L</td>
</tr>
</table>
</div>
<br /><div align="right">Adrien LECLERC</div>
</body>
</html>
--
View this message in context:
http://n2.nabble.com/Lilyscript...-lisez-ce-qui-suit%2C-%C3%A7a-vaut-le-d%C3%A9tour...-tp2490274p2490294.html
Sent from the LilyPond French Users mailing list archive at Nabble.com.
- Lilyscript... lisez ce qui suit, ça vaut le détour..., legoss, 2009/03/17
- Re: Lilyscript... lisez ce qui suit, ça vaut le détour...,
legoss <=
- Re: Lilyscript... lisez ce qui suit, ça vaut le détour..., legoss, 2009/03/17
- Re: Lilyscript... lisez ce qui suit, ça vaut le détour..., lasconic, 2009/03/17
- Re: Lilyscript... lisez ce qui suit, ça vaut le détour..., legoss, 2009/03/17
- Re: Lilyscript... lisez ce qui suit, ça vaut le détour..., lasconic, 2009/03/17
- Re: Lilyscript... lisez ce qui suit, ça vaut le détour..., Valentin Villenave, 2009/03/17
- Re: Lilyscript... lisez ce qui suit, ça vaut le détour..., legoss, 2009/03/17
- Re: Lilyscript... lisez ce qui suit, ça vaut le détour..., Valentin Villenave, 2009/03/17