denemo-devel
[Top][All Lists]
Advanced

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

Re: [Denemo-devel] bash help needed


From: Richard Shann
Subject: Re: [Denemo-devel] bash help needed
Date: Mon, 27 Feb 2012 12:43:27 +0000

On Sun, 2012-02-26 at 22:59 -0600, Jeremiah Benham wrote:
> Does this work they way you want it:
> 
> find ./ -name "*.denemo" -exec denemo -n -a "(d-Save)(d-Quit)" '{}' \;
Thanks very much for that. 
Yes, that seems to work fine. It reveals one bug - if you have a score
with a script attached it pops up a dialog. It should just save it with
script in this case, as the non-interactive flag has been set.
BTW It did not work at first for me, because my installed version was
rather old, and I think when I recently introduced the
open-the-last-opened-file feature I, more or less inadvertently, fixed a
long standing bug with opening files from the command line. I suspect
that was what was frustrating my efforts to get the thing working
before.
Can we include this script in the release somehow,  so that people can
update old files before the next release - perhaps just in the release
notes?
I have started on the audio-mixer and have Denemo playing a source .ogg
file while simultaneously playing the Denemo score that is the
transcription. I think we should release before I commit this to main.
Can you put a release candidate onto denemo.org? After we have given a
bit of time for downloading and building and testing this then, if all
is well, you could upload the identical file to ftp.gnu.org.

Richard

> 
> Jeremiah
> 
> On 12/27/2011 04:56 AM, Richard Shann wrote:
> > The latest version in git provides backwards compatibility of trills,
> > fermata etc with older versions featuring the built-in forms.
> > This works by converting the older ones to the newer ones when saving
> > the file (easier to do than on loading).
> >
> > We will want to drop all the mechanism for supporting these old
> > built-ins in the release after next (in preparation for the
> > long-hoped-for 1.0 release?). At the same time we can drop support for
> > the old style grace support and other out-of-date stuff.
> >
> > So we need a script that recursively finds .denemo files loads and saves
> > them.
> >
> > This can be done using bash commands find and xargs, and someone kindly
> > suggested a syntax that would work even with files with spaces in the
> > filename etc. I made a careful note of what the suggestion was, and now
> > cannot find it :(
> >
> > After a bit of research I can see that
> >
> > find testdir/ -name "*.denemo" -print0 | xargs -0  load-and-save
> >
> > where load-and-save is this bash script:
> >
> > while [ "$1" != "" ]; do
> >      denemo -n -a "(d-Save)(d-Quit)" $1
> >      shift
> > done
> >
> > is something like what could be used, but quoting hell intervenes to
> > prevent this working - in this version the file is not loaded. This also
> > doesn't work (because the script is not stitched together, but remains
> > as separate tokens)
> >
> > denemo -n -a "(d-Open \"" $1 "\")(d-Save)(d-Quit)"
> >
> > Can someone put me out of my misery? I would like to include a one-liner
> > if possible with the next release which people can use to upgrade all
> > their old .denemo files to the latest format, so that we can drop the
> > old code from the release after that.
> >
> > Richard
> >
> >
> >
> > _______________________________________________
> > Denemo-devel mailing list
> > address@hidden
> > https://lists.gnu.org/mailman/listinfo/denemo-devel
> 
> 
> _______________________________________________
> Denemo-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/denemo-devel





reply via email to

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