lilypond-auto
[Top][All Lists]
Advanced

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

Re: [Lilypond-auto] Issue 3154 in lilypond: option to specify the name o


From: lilypond
Subject: Re: [Lilypond-auto] Issue 3154 in lilypond: option to specify the name of Midi files for each \score block
Date: Sun, 17 Mar 2013 16:33:07 +0000

Updates:
        Owner: address@hidden

Comment #1 on issue 3154 by address@hidden: option to specify the name of Midi files for each \score block
http://code.google.com/p/lilypond/issues/detail?id=3154

The fix for issue 2343 added the ability to change the overall output file name and output file suffix via properties in theĀ \paper block. It should be possible to write a patch to generate midi file names and suffixes as in the following example:

% In source file mymusic.ly
\book {
    \paper {
       output-file="first-file"
     }
    \bookpart{
      %...some markup
      \score{
         .....music for ScoreOne
         \layout{}
         \midi{ output-file = "movement-one" }
      }
      %...more markup
      \score{
       %  .....music for ScoreTwo
         \layout{}
         \midi{ output-file = "movement-two" }
      }
    }
    % files generated:
    %   first-file.pdf
    %   movement-one.midi
    %   movement-two.midi
    %
 }

\book {
  % No output-file specified
    \bookpart{
      %...some markup
      \score{
         .....music for ScoreOne
         \layout{}
         \midi{ output-suffix = "movement-three" }
      }
      %...more markup
      \score{
       %  .....music for ScoreTwo
         \layout{}
         \midi{ output-suffix = "movement-four" }
      }
    }
    % files generated:
    %   mymusic.pdf
    %   mymusic-movement-three.midi
    %   mymusic-movement-four.midi
    %
 }

\book {
   \paper {
       output-file="third-file"
   }
   \bookpart {
      \score {
      % music for score
      \layout {}
      \midi  {}
      }
      \score {
      % music for score
      \layout {}
      \midi  {}
       }
      }
    }
% third-file.pdf - Inherited from \book or \bookpart output-file property % third-file-1.midi - suffix defaulted from number of midi files generated in
    %                       current \book or \bookpart block
% third-file-2.midi - suffix defaulted from number of midi files generated in
    %                       current \book or \bookpart block
    %
   \bookpart {
      \score {
      % music for score
      \layout {}
      \midi  {
                 output-suffix="fifth-movement"
        }
      }
      \score {
      % music for score
        \layout {}
        \midi  {
                 output-suffix="sixth-movement"
         }
       }
      }
    }
% third-file.pdf - Inherited from \book or \bookpart output-file property
    %   third-file-fifth-movement.midi  - suffix specified in \midi block
    %   third-file-sixth-movement.midi  - suffix specified in \midi block
    %
}


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

reply via email to

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