[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Denemo-devel] Beginner questions (cross-staff, PNG selection export
From: |
Richard Shann |
Subject: |
Re: [Denemo-devel] Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour) |
Date: |
Tue, 27 Aug 2019 10:04:59 +0100 |
On Tue, 2019-08-27 at 08:55 +0200, Lib Lists wrote:
> > > > > 4. As I'm writing a manual, where each movement is a separate
> > > > > exercise, I'd like at some point to batch export all the
> > > > > movements as
> > > > > individual files. Is it possible?
> > > >
> > > > Do you mean separate PDFs?
> > >
> > > Yes, at the moment separate PDFs, but in the future it might be
> > > useful
> > > to export as well as PNGs or SVGs.
> >
> > The following script does what you want
> >
> > 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
> > (let loop ((count (d-GetMovementsInScore)))
> > (if (> count 0)
> > (begin
> > (d-GoToPosition count 1 1 1)
> > (d-PrintMovement)
> > (d-ExportPDF (string-append (d-GetFilename) "-Movement-"
> > (number->string count) ".pdf"))
> > (loop (1- count)))))
> > 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><
> >
> > but if you put it in the Scheme Window and execute it what happens
> > is
> > that it keeps asking if you want to interrupt the typesetting of
> > one
> > movement to go on to the typesetting of the next, as well as
> > telling
> > you that your PDF has been created for each movement.
> > So you need to run it non-interactively - put the script into a
> > file
> > say /home/rshann/Desktop/MovementPrint.scm and then run
> >
> > denemo -n -i "/home/rshann/Desktop/MovementPrint.scm"
> > /home/rshann/musicScores/Molter/SonataAMaj.denemo.gz
> >
> > which loads my file
> >
> > /home/rshann/musicScores/Molter/SonataAMaj.denemo.gz
> >
> > and executes the Scheme in the script on it. (My file is
> > compressed,
> > hence the .gz but it doesn't need to be, any .denemo file will do.)
>
> Hi, if I run Denemo from the terminal I get the following error.
> Also,
> I tried to run the script from the Scheme Script pop-up but nothing
> happened (I tried both pressing Enter and 'Execute Script', not sure
> if there's a difference).
Pressing Enter executes the Scheme syntax in the CLI text box (CLI =
Command Line Interface, a Scheme interpreter) while Execute executes
the Scheme syntax that has been put in the text window below.
>
> dyld: Library not loaded: /opt/local/lib/guile18/libguile.17.dylib
> Referenced from:
> /Applications/Denemo.app/Contents/Resources/bin/denemo
> Reason: image not found
> Abort trap: 6
It seems that it can't find the guile library - there is an environment
variable GUILE_LOAD_PATH which may need setting - if so you could do
this in a script that calls denemo...
Why this should be happening I can't imagine (though I don't recall
which system you are on :( )
Richard
- [Denemo-devel] Print View behaviour (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour)), (continued)
- [Denemo-devel] Print View behaviour (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour)), Richard Shann, 2019/08/15
- Re: [Denemo-devel] Print View behaviour (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour)), Lib Lists, 2019/08/19
- Re: [Denemo-devel] Print View behaviour (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour)), Richard Shann, 2019/08/19
- Re: [Denemo-devel] Print View behaviour (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour)), Lib Lists, 2019/08/20
- Message not available
- Re: [Denemo-devel] Print View behaviour (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour)), Joe Wilkinson, 2019/08/20
- [Denemo-devel] Main Window too wide, Richard Shann, 2019/08/21
- Re: [Denemo-devel] Print View behaviour (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour)), Richard Shann, 2019/08/20
- Re: [Denemo-devel] Print View behaviour (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour)), Lib Lists, 2019/08/26
- Re: [Denemo-devel] Print View behaviour (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour)), Richard Shann, 2019/08/26
- Re: [Denemo-devel] Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour), Lib Lists, 2019/08/27
- Re: [Denemo-devel] Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour),
Richard Shann <=