X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Ffr%2Fextending%2Fscheme-tutorial.itely;h=5b512bcd9dfb62b48c6a776f7373b9856202dce5;hb=13da8b27aabc5d5a752d00ed1e2b99ad20f0f264;hp=73af515fa5951160667f6e20c9bfc013e9dada63;hpb=d5307870fe0ad47904daba73792c7e17b813737f;p=lilypond.git diff --git a/Documentation/fr/extending/scheme-tutorial.itely b/Documentation/fr/extending/scheme-tutorial.itely index 73af515fa5..5b512bcd9d 100644 --- a/Documentation/fr/extending/scheme-tutorial.itely +++ b/Documentation/fr/extending/scheme-tutorial.itely @@ -1,14 +1,14 @@ @c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- @ignore - Translation of GIT committish: 446dc1f3ac9bfff6bfee31de929698b0425da6fe + Translation of GIT committish: ea78e54687b8beb80958e55bcd3ddfbe90ab5967 When revising a translation, copy the HEAD committish of the version that you are working on. For details, see the Contributors' Guide, node Updating translation committishes.. @end ignore -@c \version "2.15.20" +@c \version "2.17.6" @c Translators: Jean-Charles Malahieude @@ -732,6 +732,11 @@ L'immédiateté de l'opérateur @code{$} peut entraîner des effets indésirables dont nous reparlerons à la rubrique @ref{Saisie de variables et Scheme} ; aussi est-il préférable d'utiliser un @code{#} dès que l'analyseur grammatical le supporte. +Dans le cadre d'une expression musicale, une expression qui aura été +créée à l'aide d'un @code{#} sera interprétée comme étant de la musique. +Elle ne sera cependant pas recopiée avant utilisation. Si la structure +qui l'abrite devait être réutilisée, un appel expicite à +@code{ly:music-deep-copy} pourrait être requis. @funindex $@@ @funindex #@@ @@ -933,20 +938,17 @@ dernière partie de notre fonction pourrait s'écrire ainsi : @example ... -@{ $@@newLa @} +@{ #@@newLa @} @end example Ici, chaque élément de la liste stockée dans @code{newLa} est pris à son tour et inséré dans la liste, tout comme si nous avions écrit @example -@{ $(premier newLa) $(deuxième newLa) @} +@{ #(premier newLa) #(deuxième newLa) @} @end example -Now in all of these forms, the Scheme code is evaluated while the -input is still being consumed, either in the lexer or in the parser. - -Dans ces deux dernières forme, le code Scheme est évalué alors même que +Dans ces deux dernières formes, le code Scheme est évalué alors même que le code initial est en cours de traitement, que ce soit par le @emph{lexer} ou par le @emph{parser}. Si le code Scheme ne doit être exécuté que plus tard, consultez la rubrique @@ -984,7 +986,7 @@ la valeur associée. Voici comment procéder selon la syntaxe de LilyPond : @example -\override Stem #'thickness = #2.6 +\override Stem.thickness = #2.6 @end example Cette instruction ajuste l'apparence des hampes. Une entrée @@ -1019,7 +1021,7 @@ correspond à l'abscisse (coordonnée X) et le @code{cdr} à l'ordonnée (coordonnée Y). @example -\override TextScript #'extra-offset = #'(1 . 2) +\override TextScript.extra-offset = #'(1 . 2) @end example Cette clause affecte la paire @code{(1 . 2)} à la propriété @@ -1218,7 +1220,7 @@ fichier indépendant : @example @{ - $(with-output-to-file "display.txt" + #(with-output-to-file "display.txt" (lambda () #@{ \displayMusic @{ c'4\f @} #@})) @} @end example @@ -1616,7 +1618,7 @@ Par acquis de conscience, vérifions que tout ceci fonctione : We have seen how LilyPond output can be heavily modified using commands like -@code{\override TextScript #'extra-offset = ( 1 . -1)}. But +@code{\override TextScript.extra-offset = ( 1 . -1)}. But we have even more power if we use Scheme. For a full explanation of this, see the @ref{Scheme tutorial}, and @ref{Interfaces for programmers}. @@ -1632,7 +1634,7 @@ TODO Find a simple example @lilypond[quote,verbatim,ragged-right] padText = #(define-music-function (parser location padding) (number?) #{ - \once \override TextScript #'padding = #padding + \once \override TextScript.padding = #padding #}) \relative c''' { @@ -1654,16 +1656,16 @@ We can use it to create new commands: @lilypond[quote,verbatim,ragged-right] tempoPadded = #(define-music-function (parser location padding tempotext) - (number? string?) + (number? markup?) #{ - \once \override Score.MetronomeMark #'padding = $padding + \once \override Score.MetronomeMark.padding = #padding \tempo \markup { \bold #tempotext } #}) \relative c'' { \tempo \markup { "Low tempo" } c4 d e f g1 - \tempoPadded #4.0 #"High tempo" + \tempoPadded #4.0 "High tempo" g4 f e d c1 } @end lilypond @@ -1674,7 +1676,7 @@ Even music expressions can be passed in: @lilypond[quote,verbatim,ragged-right] pattern = #(define-music-function (parser location x y) (ly:music? ly:music?) #{ - $x e8 a b $y b a e + #x e8 a b $y b a e #}) \relative c''{