X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Ffr%2Fextending%2Fprogramming-interface.itely;h=541b744b495f11aee56f7f18f2f4a0ff436d3bca;hb=958e95822083954cad00e0a598eb9f12ceba67b9;hp=053c9db626605935c83e2466a83308447c5fb198;hpb=dc612d0a8ce95d5de2afca4632d71e9f85057590;p=lilypond.git diff --git a/Documentation/fr/extending/programming-interface.itely b/Documentation/fr/extending/programming-interface.itely index 053c9db626..541b744b49 100644 --- a/Documentation/fr/extending/programming-interface.itely +++ b/Documentation/fr/extending/programming-interface.itely @@ -1,14 +1,14 @@ @c -*- coding: utf-8; mode: texinfo; documentlanguage: fr -*- @ignore - Translation of GIT committish: 5a6340b7f319802a7313c0e6b82eef96909cde42 + Translation of GIT committish: e8c4826ed3fca952984600bcce60b53e76aff5d2 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.19.12" +@c \version "2.19.22" @c Translators: Valentin Villenave, Jean-Charles Malahieude @c Translation checkers: Gilles Thibault @@ -60,7 +60,7 @@ Les blocs de code LilyPond ressemblent à En voici un exemple basique : @lilypond[verbatim,quote] -ritpp = #(define-event-function (parser location) () +ritpp = #(define-event-function () () #{ ^"rit." \pp #} ) @@ -132,7 +132,7 @@ D'une manière générale, une fonction Scheme se définit ainsi : @example fonction = #(define-scheme-function - (parser location @var{arg1} @var{arg2}@dots{}) + (@var{arg1} @var{arg2}@dots{}) (@var{type1?} @var{type2?}@dots{}) @var{corps}) @end example @@ -304,7 +304,7 @@ valeur spéciale -- la seule valeur qui satisfasse au prédicat @example noPointAndClick = #(define-void-function - (parser location) + () () (ly:set-option 'point-and-click #f)) @dots{} @@ -359,7 +359,7 @@ Une fonction musicale se définit ainsi : @example fonction = #(define-music-function - (parser location @var{arg1} @var{arg2}@dots{}) + (@var{arg1} @var{arg2}@dots{}) (@var{type1?} @var{type2?}@dots{}) @var{corps}) @end example @@ -449,7 +449,7 @@ l'aide d'une variable @code{pair?} : @example manualBeam = #(define-music-function - (parser location beg-end) + (beg-end) (pair?) #@{ \once \override Beam.positions = #beg-end @@ -467,7 +467,7 @@ pourra alors être inclus dans l'expression musicale : @lilypond[quote,verbatim,ragged-right] manualBeam = #(define-music-function - (parser location beg end) + (beg end) (number? number?) #{ \once \override Beam.positions = #(cons beg end) @@ -519,7 +519,7 @@ auraient retrouvé leurs valeurs par défaut à la sortie de la fonction. @example crossStaff = -#(define-music-function (parser location notes) (ly:music?) +#(define-music-function (notes) (ly:music?) (_i "Create cross-staff stems") #@{ \temporary \override Stem.cross-staff = #cross-staff-connect @@ -541,7 +541,7 @@ une part de programmation en Scheme. @lilypond[quote,verbatim,ragged-right] AltOn = #(define-music-function - (parser location mag) + (mag) (number?) #{ \override Stem.length = #(* 7.0 mag) @@ -554,8 +554,8 @@ AltOff = { \revert NoteHead.font-size } -\relative c' { - c2 \AltOn #0.5 c4 c +\relative { + c'2 \AltOn #0.5 c4 c \AltOn #1.5 c c \AltOff c2 } @end lilypond @@ -567,7 +567,7 @@ s'applique à une expression musicale : @lilypond[quote,verbatim,ragged-right] withAlt = #(define-music-function - (parser location mag music) + (mag music) (number? ly:music?) #{ \override Stem.length = #(* 7.0 mag) @@ -578,8 +578,8 @@ withAlt = \revert NoteHead.font-size #}) -\relative c' { - c2 \withAlt #0.5 { c4 c } +\relative { + c'2 \withAlt #0.5 { c4 c } \withAlt #1.5 { c c } c2 } @end lilypond @@ -602,7 +602,7 @@ fonction sans argument comme ici, @example displayBarNum = #(define-music-function - (parser location) + () () (if (eq? #t (ly:get-option 'display-bar-numbers)) #@{ \once \override Score.BarNumber.break-visibility = ##f #@} @@ -649,9 +649,9 @@ dans @code{c'\pp}. Voici de quoi vous permettre de mentionner n'importe quelle nuance : @lilypond[quote,verbatim,ragged-right] -dyn=#(define-event-function (parser location arg) (markup?) +dyn=#(define-event-function (arg) (markup?) (make-dynamic-script arg)) -\relative c' { c\dyn pfsss } +\relative { c'\dyn pfsss } @end lilypond Vous pourriez obtenir le même résultat avec une fonction musicale, à @@ -1344,9 +1344,9 @@ desaturate = (ly:context-pushpop-property context grob 'color new-color))) (for-each desaturate-grob '(NoteHead Stem Beam))) -\relative g' { +\relative { \time 3/4 - g8[ g] \desaturate g[ g] \desaturate g[ g] + g'8[ g] \desaturate g[ g] \desaturate g[ g] \override NoteHead.color = #darkred \override Stem.color = #darkred \override Beam.color = #darkred @@ -1362,7 +1362,7 @@ comment @code{ly:context-pushpop-property} est utilisé à la fois pour un @lilypond[quote,verbatim] desaturate = #(define-music-function - (parser location music) (ly:music?) + (music) (ly:music?) #{ \applyContext #(lambda (context) @@ -1380,11 +1380,11 @@ desaturate = (for-each revert-color '(NoteHead Stem Beam))) #}) -\relative g' { +\relative { \override NoteHead.color = #darkblue \override Stem.color = #darkblue \override Beam.color = #darkblue - g8 a b c + g'8 a b c \desaturate { d c b a } g b d b g2 } @@ -1435,7 +1435,7 @@ sur la ligne médiane ou bien directement à son contact. (< (abs (ly:grob-property grob 'staff-position)) 2)) (set! (ly:grob-property grob 'transparent) #t))) -\relative c' { +\relative { a'4 e8 <<\applyOutput #'Voice #blanker a c d>> b2 } @end lilypond @@ -1498,11 +1498,11 @@ et dans le fichier @file{define-grobs.scm} --, pourra accéder à la valeur usuelle de la propriété : @example -\relative c'' @{ +\relative @{ \override Flag.X-offset = #(lambda (flag) (let ((default (ly:flag::calc-x-offset flag))) (* default 4.0))) - c4. d8 a4. g8 + c''4. d8 a4. g8 @} @end example @@ -1536,8 +1536,8 @@ sa syntaxe. Par exemple, le code suivant produit une erreur de syntaxe @example F = \tweak font-size #-3 -\flageolet -\relative c'' @{ - c4^\F c4_\F +\relative @{ + c''4^\F c4_\F @} @end example @@ -1555,8 +1555,8 @@ F = #(let ((m (make-music 'ArticulationEvent (ly:music-property m 'tweaks))) m) -\relative c'' @{ - c4^\F c4_\F +\relative @{ + c''4^\F c4_\F @} @end example @@ -1634,10 +1634,10 @@ rehaussé. (eq? (car (last-pair siblings)) grob)) (ly:grob-set-property! grob 'extra-offset '(-2 . 5))))) -\relative c'' { +\relative { \override Tie.after-line-breaking = #my-callback - c1 ~ \break + c''1 ~ \break c2 ~ 2 } @end lilypond