Favicon

Re: jpedal slowness

Does it realize at all? My experience was that I needed to close the 
document and reopen. This closing and reopening is done automatically 
when you run lilypond with the toolbar button (or menu item).

Bert

Francisco Vila wrote:
> Hello,
> the PDF viewer that comes with jedit (jPedal) seems to wait a long
> time before realizing that the file has changed, is it a known issue?
> I am using the very latest versions of sun jre, jedit and lilypondtool.
>   
Francisco Vila | 29 Nov 01:50

Re: jpedal slowness

2008/11/29 Bertalan Fodor (LilyPondTool) <lilypondtool <at> organum.hu>:
> Does it realize at all? My experience was that I needed to close the
> document and reopen. This closing and reopening is done automatically when
> you run lilypond with the toolbar button (or menu item).

In my experience, doing that the window stays open, only its contents
are cleared (not immediately but after a variable wait), and then
(again after a variable wait sometimes rather long) finally shows the
output. The feel is otherwise quick, I usually work with gedit+evince
under Linux+Gnome and the response for small files is absolutely
instantaneous, less than 1 second. Only jpedal seems not to finish
thinking for ages.

--

-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org
Favicon

Re: jpedal slowness


> and then
> (again after a variable wait sometimes rather long) finally shows the
> output. 
It may happen because of some jpedal or lilypondtool bug (we do some 
administration work upon loading the file).
Could you send me a lilypond and pdf file to let me try whether it still 
happens on my development version?

Thanks,

Bert
Martin Tarenskeen | 29 Nov 15:33

Re: jpedal slowness

On Sat, Nov 29, 2008 at 01:50:35AM +0100, Francisco Vila wrote:

> are cleared (not immediately but after a variable wait), and then
> (again after a variable wait sometimes rather long) finally shows the
> output. The feel is otherwise quick, I usually work with gedit+evince
> under Linux+Gnome and the response for small files is absolutely
> instantaneous, less than 1 second. Only jpedal seems not to finish
> thinking for ages.

I'm using a little home-brewed script that does the following things 
automatically:

1. If I start the script with a lilypond file as argument, lilypond 
processes the file with --ps option (postscript only). No time is 
waisted to convert the ps to pdf. 

2. Two windows are opened: One window with gv shows the postscript 
picture, one xterm window running vim to edit the lilypond source. Both 
windows are automatically placed and correctly dimensioned to fit next 
to each other on my screen. gv is called with the "-watch" option and 
automatically sets the zoom to 50% ( -scale=-2 ) to show more of my 
page.

3. If I edit the source, everytime I save this is detected by an endless 
loop in my script, lilypond is called and a new postscript is created. 
This is detected by gv thanks to the -watch option. Et voila, the score 
can be seen almost instantaneously!

4. And all this can be done without ever touching the 
mouse :-)
(Continue reading)

Johan Vromans | 29 Nov 20:53
Favicon

Re: jpedal slowness

Martin Tarenskeen <m.tarenskeen <at> zonnet.nl> writes:

> 3. If I edit the source, everytime I save this is detected by an endless 
> loop in my script, lilypond is called and a new postscript is created. 
> This is detected by gv thanks to the -watch option. Et voila, the score 
> can be seen almost instantaneously!

I use this approach for other purposes so I know it well.
However, in the case of LP typesetting I've learned to appreciate the
point and click facility to quickly jump from the score into the
source...

-- Johan
Martin Tarenskeen | 30 Nov 17:38

Re: jpedal slowness

On Sat, Nov 29, 2008 at 08:53:06PM +0100, Johan Vromans wrote:
> Martin Tarenskeen <m.tarenskeen <at> zonnet.nl> writes:
> 
> > 3. If I edit the source, everytime I save this is detected by an endless 
> > loop in my script, lilypond is called and a new postscript is created. 
> > This is detected by gv thanks to the -watch option. Et voila, the score 
> > can be seen almost instantaneously!
> 
> I use this approach for other purposes so I know it well.
> However, in the case of LP typesetting I've learned to appreciate the
> point and click facility to quickly jump from the score into the
> source...

I managed to make a modified version of my script work including 
point-and-click facility (well, sort of) using xpdf and gvim. But I have 
to hit "R" to reload a newly created pdf with Xpdf. And in gvim I have 
to hit a key to exit a message that appears now and then at the 
bottom of the screen. The less key- and mouseclicks I need to get what I 
want, the better.

I would like to be able to use acroread or evince if possible. I don't 
think the lilypond documentation is very clear on this subject. Only a 
short example tells me how to configure xpdf. There have been posts 
about this subject in the mailing list. But more help and examples in 
the documentation would be nice.

Another problem:

I have just installed Fedora 10 on a Asus EeePC 900 minilaptop. Also 
installed Lilypond and my script. Now I have a really lightweight 
(Continue reading)

Favicon

Re: jpedal slowness

>
> I did take a short look at kdelily (or was it lilykde ?) and 
> jedit/lilypondtool. I was impressed at first sight, but in the end I 
> liked my own fast and lightweight approach better.
>   
Lightweight? In what sense?
With jedit/lilypondtool you surely need to install Java, Jedit & 
Lilypondtool from. But after that you only need one app and you have 
everything without tedious configuration of point-and-click and whatnot. 
You only need to configure the path to lilypond binary and shortcuts if 
you wish to.
With LilyPondTool I just press F7, that saves the file, compiles with 
LilyPond and reloads the PDF, then I switch to the viewer with Alt-TAB 
(if it is not already visible).

Bert
Martin Tarenskeen | 1 Dec 09:08

Re: jpedal slowness

On Mon, Dec 01, 2008 at 01:10:24AM +0100, Bertalan Fodor (LilyPondTool) wrote:

>> I did take a short look at kdelily (or was it lilykde ?) and  
>> jedit/lilypondtool. I was impressed at first sight, but in the end I  
>> liked my own fast and lightweight approach better.
>>   
> Lightweight? In what sense?
With only vim and lilypond I have a working setup that installs and runs 
easily on my low-end EeePC laptop. 

> With jedit/lilypondtool you surely need to install Java, Jedit &  
> Lilypondtool from. But after that you only need one app and you have  
> everything without tedious configuration of point-and-click and whatnot.  

I have installed lilypond/jedit/lilypondtool on a Windows XP laptop and 
it works fine indeed. But I hardly use this laptop.

On my Linux laptop I prefer Vim because I use it for everything. 
Personal taste.

--

-- 

Martin 
Favicon

Re: jpedal slowness

Martin Tarenskeen wrote:
On Mon, Dec 01, 2008 at 01:10:24AM +0100, Bertalan Fodor (LilyPondTool) wrote:
I did take a short look at kdelily (or was it lilykde ?) and jedit/lilypondtool. I was impressed at first sight, but in the end I liked my own fast and lightweight approach better.
Lightweight? In what sense?
With only vim and lilypond I have a working setup that installs and runs easily on my low-end EeePC laptop.
I run jEdit/LilyPondTool on my EEE 901 as well :-)
On my Linux laptop I prefer Vim because I use it for everything. Personal taste
I agree, the best is to stick with one favorite editor.

Bert
_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
Jonathan Kulp | 29 Nov 15:40

Re: jpedal slowness

Martin Tarenskeen wrote:
> On Sat, Nov 29, 2008 at 01:50:35AM +0100, Francisco Vila wrote:
> 
>> are cleared (not immediately but after a variable wait), and then
>> (again after a variable wait sometimes rather long) finally shows the
>> output. The feel is otherwise quick, I usually work with gedit+evince
>> under Linux+Gnome and the response for small files is absolutely
>> instantaneous, less than 1 second. Only jpedal seems not to finish
>> thinking for ages.
> 
> I'm using a little home-brewed script that does the following things 
> automatically:
> 
> 1. If I start the script with a lilypond file as argument, lilypond 
> processes the file with --ps option (postscript only). No time is 
> waisted to convert the ps to pdf. 
> 
> 2. Two windows are opened: One window with gv shows the postscript 
> picture, one xterm window running vim to edit the lilypond source. Both 
> windows are automatically placed and correctly dimensioned to fit next 
> to each other on my screen. gv is called with the "-watch" option and 
> automatically sets the zoom to 50% ( -scale=-2 ) to show more of my 
> page.
> 
> 3. If I edit the source, everytime I save this is detected by an endless 
> loop in my script, lilypond is called and a new postscript is created. 
> This is detected by gv thanks to the -watch option. Et voila, the score 
> can be seen almost instantaneously!
> 
> 4. And all this can be done without ever touching the 
> mouse :-)
> 
> I did take a short look at kdelily (or was it lilykde ?) and 
> jedit/lilypondtool. I was impressed at first sight, but in the end I 
> liked my own fast and lightweight approach better.
> 
> If anyone is interested I can make it publically available. But I have 
> to polish it a little bit first to make it more configurable to 
> different needs (screensizes, file locations, etc.)
> 
> 
> _______________________________________________
> lilypond-user mailing list
> lilypond-user <at> gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 
I'd love to try this out.  Would I be able to use it with a different 
editor?  I know some very basic Vim but am not that comfortable with it.

Jon

--

-- 
Jonathan Kulp
http://www.jonathankulp.com
Martin Tarenskeen | 29 Nov 16:38

Re: jpedal slowness

On Sat, Nov 29, 2008 at 08:40:28AM -0600, Jonathan Kulp wrote:
> Martin Tarenskeen wrote:

>> I'm using a little home-brewed script that does the following things  
>> automatically:

>> I did take a short look at kdelily (or was it lilykde ?) and  
>> jedit/lilypondtool. I was impressed at first sight, but in the end I  
>> liked my own fast and lightweight approach better.
>>
>> If anyone is interested I can make it publically available. But I have  
>> to polish it a little bit first to make it more configurable to  
>> different needs (screensizes, file locations, etc.)

> I'd love to try this out.  Would I be able to use it with a different  
> editor?  I know some very basic Vim but am not that comfortable with it.

That's one of the things that should be configurable before I publish 
the script. The nice thing about an editor like vim running in an xterm 
window is that I can give command line options to xterm to determine the 
dimensions and position of the window. Same thing with gv. I don't know 
how I can do that with (for example) gedit and evince. ( But there are a 
lot of things I don't know :-) )

Anyway, keep reading this list. I'll be back soon.

--

-- 

Martin
Francisco Vila | 29 Nov 16:49

Re: jpedal slowness

2008/11/29 Martin Tarenskeen <m.tarenskeen <at> zonnet.nl>:
> That's one of the things that should be configurable before I publish
> the script. The nice thing about an editor like vim running in an xterm
> window is that I can give command line options to xterm to determine the
> dimensions and position of the window. Same thing with gv. I don't know
> how I can do that with (for example) gedit and evince. ( But there are a
> lot of things I don't know :-) )

I think that sadly this cannot be done neither with gedit nor evince.
--

-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org
Martin Tarenskeen | 29 Nov 17:23

Re: jpedal slowness

On Sat, Nov 29, 2008 at 04:49:08PM +0100, Francisco Vila wrote:
> 2008/11/29 Martin Tarenskeen <m.tarenskeen <at> zonnet.nl>:
> > That's one of the things that should be configurable before I publish
> > the script. The nice thing about an editor like vim running in an xterm
> > window is that I can give command line options to xterm to determine the
> > dimensions and position of the window. Same thing with gv. I don't know
> > how I can do that with (for example) gedit and evince. ( But there are a
> > lot of things I don't know :-) )
> 
> I think that sadly this cannot be done neither with gedit nor evince.

Not a very big problem. My script can still be used then, but after 
startup the user will have to manually position the windows the way he 
wants them on screen.

--

-- 

Martin
Johan Vromans | 29 Nov 20:25
Favicon

Re: jpedal slowness

Martin Tarenskeen <m.tarenskeen <at> zonnet.nl> writes:

> Not a very big problem. My script can still be used then, but after 
> startup the user will have to manually position the windows the way he 
> wants them on screen.

You may wish to take a look at devilspie.
http://burtonini.com/blog/computers/devilspie

-- Johan
   Chord is alive! http://chordii.sourceforge.net
Jonathan Kulp | 29 Nov 16:56

Re: jpedal slowness

Martin Tarenskeen wrote:

> 
>> I'd love to try this out.  Would I be able to use it with a different  
>> editor?  I know some very basic Vim but am not that comfortable with it.
> 
> That's one of the things that should be configurable before I publish 
> the script. The nice thing about an editor like vim running in an xterm 
> window is that I can give command line options to xterm to determine the 
> dimensions and position of the window. Same thing with gv. I don't know 
> how I can do that with (for example) gedit and evince. ( But there are a 
> lot of things I don't know :-) )
> 
> Anyway, keep reading this list. I'll be back soon.
> 

No worries.  I'm keen to try it with Vim.  Please post!

Jon
--

-- 
Jonathan Kulp
http://www.jonathankulp.com
Francisco Vila | 29 Nov 16:21

Re: jpedal slowness

2008/11/29 Martin Tarenskeen <m.tarenskeen <at> zonnet.nl>:
> I'm using a little home-brewed script that does the following things
> automatically:
I am very interested. Do you run Windows or Linux?
--

-- 
Francisco Vila. Badajoz (Spain)
http://www.paconet.org
Martin Tarenskeen | 29 Nov 16:39

Re: jpedal slowness

On Sat, Nov 29, 2008 at 04:21:02PM +0100, Francisco Vila wrote:
> 2008/11/29 Martin Tarenskeen <m.tarenskeen <at> zonnet.nl>:
> > I'm using a little home-brewed script that does the following things
> > automatically:
> I am very interested. Do you run Windows or Linux?

Linux only. I don't know a thing about Windows. 

--

-- 

Martin
Martin Tarenskeen | 29 Nov 18:16

Re: jpedal slowness

Hi Lilypond, Abcm2ps, Mup users,

I'm attaching the shell script I was talking about. It works for 
Lilypond files, but also for ABC and MUP music score source files.
Before using take a look inside the script with your editor and 
change the settings to match your needs.

Comments and bugfixes are welcome !

-- 

Martin Tarenskeen

On Sat, Nov 29, 2008 at 03:33:30PM +0100, Martin Tarenskeen wrote:

> I'm using a little home-brewed script that does the following things 
> automatically:
> 
> 1. If I start the script with a lilypond file as argument, lilypond 
> processes the file with --ps option (postscript only). No time is 
> waisted to convert the ps to pdf. 
> 
> 2. Two windows are opened: One window with gv shows the postscript 
> picture, one xterm window running vim to edit the lilypond source. Both 
> windows are automatically placed and correctly dimensioned to fit next 
> to each other on my screen. gv is called with the "-watch" option and 
> automatically sets the zoom to 50% ( -scale=-2 ) to show more of my 
> page.
> 
> 3. If I edit the source, everytime I save this is detected by an endless 
> loop in my script, lilypond is called and a new postscript is created. 
> This is detected by gv thanks to the -watch option. Et voila, the score 
> can be seen almost instantaneously!
> 
> 4. And all this can be done without ever touching the 
> mouse :-)
> 
> I did take a short look at kdelily (or was it lilykde ?) and 
> jedit/lilypondtool. I was impressed at first sight, but in the end I 
> liked my own fast and lightweight approach better.
> 
> If anyone is interested I can make it publically available. But I have 
> to polish it a little bit first to make it more configurable to 
> different needs (screensizes, file locations, etc.)
Attachment (medit.sh): application/x-sh, 2345 bytes
_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
Jonathan Kulp | 29 Nov 20:46

Re: jpedal slowness

Martin Tarenskeen wrote:
> Hi Lilypond, Abcm2ps, Mup users,
> 
> I'm attaching the shell script I was talking about. It works for 
> Lilypond files, but also for ABC and MUP music score source files.
> Before using take a look inside the script with your editor and 
> change the settings to match your needs.
> 
> Comments and bugfixes are welcome !
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> lilypond-user mailing list
> lilypond-user <at> gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user

Hi Martin,

Thanks for posting this.  I'm trying to make it work now but having 
trouble.  I'm getting this error message:

[: 81: filename.ly: unexpected operator

Line 81 has the closing "fi" (I added a line at the top for the geany 
editor, so this is probably line 80 in your original file).

At first it wouldn't run at all but then I saw that my lilypond path was 
different so I fixed that and it ran lilypond when I first hit enter but 
then just got the error message above endlessly until pressing ^C.

Any idea what could be wrong?

Thanks,

Jon
--

-- 
Jonathan Kulp
http://www.jonathankulp.com
Martin Tarenskeen | 30 Nov 07:52

Re: jpedal slowness

> Hi Martin,
>
> Thanks for posting this.  I'm trying to make it work now but having  
> trouble.  I'm getting this error message:
>
> [: 81: filename.ly: unexpected operator
>
> Line 81 has the closing "fi" (I added a line at the top for the geany  
> editor, so this is probably line 80 in your original file).
>

0. What OS are you using ?

1. What shell are you running ? ( The script was made for sh or bash )

2. What line did you add at the top ?

3. Is "filename.ly" an existing, correct lilypond file or are you trying 
to start a new project ? To script needs either an error free existing 
lilypond file, or a new filename + an existing error free 
LILYPOND_INITFILE defined in the header of the script. Did you edit the 
variable LILYPOND_INITFILE to point to a valid lilypond file that you 
want to use as a template ? 

4. Another thing to try: make sure the file has unix lineendings by 
running the dos2unix utility on it. Sometimes mail clients screw up 
attachments. I'll attach a gzipped version of the script to prevent 
this. Maybe you could also try this one.

5. Currently the only way to quit the script is hitting Control-C. A 
little bit rude, I admit. If anyone can think of a more elegant solution 
please let me know.

We should be able to make things work. No problems on my system.

--

-- 

Martin Tarenskeen

Attachment (medit.sh.gz): application/x-gzip, 1061 bytes
_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user
Nick Payne | 29 Nov 02:58
Favicon

RE: jpedal slowness

On my system, using jEdit on Vista, the PDF gets reloaded when I click on
the jPedal window to make it topmost.

Nick

> -----Original Message-----
> From: lilypond-user-bounces+nick.payne=internode.on.net <at> gnu.org
> [mailto:lilypond-user-bounces+nick.payne=internode.on.net <at> gnu.org] On
> Behalf Of Bertalan Fodor (LilyPondTool)
> Sent: Saturday, 29 November 2008 11:36
> To: Francisco Vila
> Cc: lilypond-user
> Subject: Re: jpedal slowness
> 
> Does it realize at all? My experience was that I needed to close the
> document and reopen. This closing and reopening is done automatically
> when you run lilypond with the toolbar button (or menu item).
> 
> Bert
> 
> Francisco Vila wrote:
> > Hello,
> > the PDF viewer that comes with jedit (jPedal) seems to wait a long
> > time before realizing that the file has changed, is it a known issue?
> > I am using the very latest versions of sun jre, jedit and
> lilypondtool.
> >
> 
> 
> 
> _______________________________________________
> lilypond-user mailing list
> lilypond-user <at> gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.176 / Virus Database: 270.9.11/1816 - Release Date:
> 27/11/2008 19:53

Gmane