[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Score numbering

From: Gianmaria Lari
Subject: Re: Score numbering
Date: Sun, 2 Dec 2018 15:14:40 +0100

On Sun, 2 Dec 2018 at 11:32, Pierre Perol-Schneider <address@hidden> wrote:
Hi Gianmaria,
I don't understand what  (add-score #{ \score { {c} \midi{}} #} ) stands for (copy/paste typo?)

You're right Pierre.  Copy and paste the following code that it's almost the same except for the \midi{}.

\version "2.19.82"
#(define nextcount
   (let  ((counter 0))
     (add-score #{ \score { {c} \midi{}} #} )
     (lambda ()
       (set! counter (1+ counter))
       (number->string counter))))

mymusic = {
  a b c' d'
\score {
  \new Staff \with {instrumentName=\markup \circle #(nextcount)} \new Voice \mymusic 

mymusic = {
  c' d' e' f'
\score {
  \new Staff \with {instrumentName=\markup \circle #(nextcount)} \new Voice \mymusic 

This code will engrave a single document with two scores, numbered  1 and 2 and generate 3 (three) midi files with the following name:
  • document.mid - an empty-like midi file with name
  • document-1.mid
  • document-2.mid  
The reason is that in this way the midi file document-1.mid contains the audio for the score 1 etc.
If I don't generate the empty like midi file the document.mid would contain the audio file for the score 1 and the document-1.mid would contain the audio file for the score 2.

I hope I have been enough clear.
Ciao, g.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]