[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bonjour
From: |
NOreply |
Subject: |
Re: Bonjour |
Date: |
Fri, 30 Nov 2018 11:16:12 -0700 (MST) |
Bonjour,
Je reviens sur sur sujet qui parle de Ooolilypond et de latex. Je trouve que
Lilypond est très performant pour écrire du texte, surtout si on utilise
quelques raccourci.
Personnellement, j'utilise lilypond pour mélanger texte et musique.
Voir ici:
http://lilybin.com/zbuym6/1
%%%%%%%%%%%% LE CODE
% QUELQUES SIMPLIFICATIONS DE CODES
%new Staff
pt = #(define-music-function (parser location mus) (ly:music?) #{ { \new
Staff { \compressFullBarRests $mus } } #})
%sauter une ligne
"y" = \markup { \vspace #1 } "yy" = \markup { \vspace #2 }
%taille police
h = #(define-scheme-function (parser location taille texte )( number?
markup? ) #{ \markup { \fontsize #taille #texte } #})
% en gras
gr = #(define-scheme-function (parser location text1 )( markup? ) #{
\markup { \bold \wordwrap-string #text1 } #})
% un texte
tx = #(define-scheme-function (parser location text1 )( markup? ) #{
\markup { \wordwrap-string #text1 } #})
%plusieurs blocs texte sur une même ligne
"\\\\" = #(define-scheme-function (parser location text1 text2 )( markup?
markup? ) #{ \markup { #text1 #text2 } #})
% new Staffgroup
"I" = #(define-music-function (parser location mus ) ( ly:music? ) #{
\new StaffGroup $mus #})
% de la musique dans un markup
"m" = #(define-scheme-function (parser location m1 ) ( ly:music? ) #{
\markup { \translate #'( 0 . 0.5 ) \score { $m1 \layout { indent = 0 } }
} #})
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\yy
\h 6 \gr "1 Ceci est une première section"
\y
\tx "voici une jolie partition:"
\m \I << \pt { c' d' e' } \pt {\clef bass c d e } >>
\y
\h 6 \gr "2 Ceci est une première section"
\\ " Voici un petit fragment de partition:" \m { c' d' e' }
--
Sent from: http://lilypond-french-users.1298960.n2.nabble.com/
- Bonjour, address@hidden, 2018/11/21