Intel Leopard and Smultron

2008-09-01 Thread Josh Parmenter

Hi all...

I was wondering if anyone else has seen this. I compiled lilypond  
according to the instructions here (thanks by the way!):


http://nicolas.sceaux.free.fr/

I used MacPorts for the dependencies. Running lilypond from the  
command line works great, and I have it loaded into my path without a  
problem. Running inside Terminal is fine.


However, when I try to run it within another program (e.g. Smultron) I  
get this error:


/opt/local/share/guile/1.8/srfi/srfi-1.scm:223:1: In procedure dynamic- 
link in expression (load-extension "libguile-srfi-srfi-1-v-3"  
"scm_init_srfi_1"):
/opt/local/share/guile/1.8/srfi/srfi-1.scm:223:1: file: "libguile-srfi- 
srfi-1-v-3", message: "dlopen(libguile-srfi-srfi-1-v-3.so, 9): image  
not found"


Any ideas? Why would anything compiled on a mac be looking for an .so  
lib instead of a .dylib?


Thanks for help!

Josh

**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono

*/

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Glissando angle

2008-09-03 Thread Josh Parmenter

Hi all,

I'm just getting started with LilyPond, and am trying to create a  
spatial notation, and using Glissandos to show duration. My question  
has to do with the middle three notes in the example below.


1) For the connection between the B-flat to the C, then the C to the B- 
flat, is there a way to either just tell the Glissandos to be flat OR  
to predict what value I need for the #'right #'Y parameter? Or - is  
there a way to just draw flat lines from a note head that I just  
haven't found?
2) Assuming that glissandos are the way to go here, is there a way to  
avoid the collision between the C and the flat in the second B-flat?


Thanks for your help.

Best,

Josh

\header {
  tagline = ##f
  composer = ##f
}

\paper {
  paper-width = 14\cm
  paper-height = 7\cm
  top-margin = 0.1\cm
  left-margin = 0.1\cm

}

\include "english.ly"

lowerLower = \new Voice = "lowerLower" {
  \voiceTwo
  \override Glissando #'thickness = 5
  \override Stem #'transparent = ##t
  \override Glissando #'bound-details #'right #'Y = #2
  a4 \glissando s s \once \override NoteHead #'transparent = ##t a4 s s
  \once   \override Glissando #'bound-details #'right #'Y = #2.5
  bf4 \glissando
  \once   \override Glissando #'bound-details #'right #'Y = #3
  c'4 \glissando s s
  bf8
  a4 \glissando s s
  \once \override NoteHead #'transparent = ##t a4
}

\score {
\new Staff = "bass" <<
  \override Staff.TimeSignature #'transparent = ##t
  \override Staff.BarLine #'transparent = ##t
  \clef bass
  \time 4/4
  \lowerLower
>>

}

**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono

*/

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Glissando angle

2008-09-03 Thread Josh Parmenter

Thanks Neil (and yes... I remember meeting!).

Best,

Josh


On Sep 3, 2008, at 1:46 PM, Neil Thornock wrote:


Hi Josh,
Warm welcome lilyland (we met at BYU last year, if you remember).

This should do the trick.

\override Glissando #'bound-details #'right #'padding = #2

Neil


On Wed, Sep 3, 2008 at 2:15 PM, Josh Parmenter  
<[EMAIL PROTECTED]> wrote:

Hi all,

I'm just getting started with LilyPond, and am trying to create a  
spatial notation, and using Glissandos to show duration. My question  
has to do with the middle three notes in the example below.


1) For the connection between the B-flat to the C, then the C to the  
B-flat, is there a way to either just tell the Glissandos to be flat  
OR to predict what value I need for the #'right #'Y parameter? Or -  
is there a way to just draw flat lines from a note head that I just  
haven't found?
2) Assuming that glissandos are the way to go here, is there a way  
to avoid the collision between the C and the flat in the second B- 
flat?


Thanks for your help.

Best,

Josh

\header {
  tagline = ##f
  composer = ##f
}

\paper {
  paper-width = 14\cm
  paper-height = 7\cm
  top-margin = 0.1\cm
  left-margin = 0.1\cm

}

\include "english.ly"

lowerLower = \new Voice = "lowerLower" {
  \voiceTwo
  \override Glissando #'thickness = 5
  \override Stem #'transparent = ##t
  \override Glissando #'bound-details #'right #'Y = #2
  a4 \glissando s s \once \override NoteHead #'transparent = ##t a4  
s s

  \once   \override Glissando #'bound-details #'right #'Y = #2.5
  bf4 \glissando
  \once   \override Glissando #'bound-details #'right #'Y = #3
  c'4 \glissando s s
  bf8
  a4 \glissando s s
  \once \override NoteHead #'transparent = ##t a4
}

\score {
\new Staff = "bass" <<
  \override Staff.TimeSignature #'transparent = ##t
  \override Staff.BarLine #'transparent = ##t
  \clef bass
  \time 4/4
  \lowerLower
>>

}

**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

"Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to  
continual renewal; or he may strive for a revolutionary, historical  
or social palingenesis." - Luigi Nono

*/


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user




--
Neil Thornock, D.M.
Assistant Professor of Music
Composition/Theory
Brigham Young University
http://neilthornock.net


**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono

*/

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


glissandos and chords

2008-09-05 Thread Josh Parmenter

Hi all -

Does anyone have a suggestion for having the glissando drawn between  
both members of the chord in the example below?


Thanks for your help.

best,

Josh

\paper { ragged-right = ##t }
\version "2.11.58"

myGliss = {
  \clef bass
  \time 4/4
  2 \glissando 2
  }

\score {
  \new Staff \myGliss
}


**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono

*/

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: glissandos and chords

2008-09-05 Thread Josh Parmenter

thanks everyone.

If nothing else, I have a better idea about how to use the search  
now... will do that first from here on.


Thanks,

josh

On Sep 5, 2008, at 1:50 PM, Kieren MacMillan wrote:


Hi Werner (et al):


Hmm.  Searching for `kieren' and `glissando' yields nothing.


Ha! You're right… I was confusing that with another thread I posted  
to (search for 'kieren' and 'glissandi' to find it).


Anyway, as I suspected, a search for 'double glissando' turns up  
some useful info, including:
   


Cheers,
Kieren.


**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono

*/



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: texi2html docs

2008-09-05 Thread Josh Parmenter
I agree! Very nice! As I am just learning how to use LilyPond - it is  
already making things faster.


Is it possible to download the document to have a local (offline)  
copy? Or should I wget it?


Thanks,

Josh

On Sep 5, 2008, at 3:37 PM, James E. Bailey wrote:

Wow, the new documentation really shows off all of the hard work  
very well. I have just one request. It was nice that I could go up  
from the beginning of the documentation, i.e.; http://kainhofer.com/~lilypond/Documentation/user/lilypond/index.html#Top 
 to the documentation index: http://kainhofer.com/~lilypond/Documentation/index.html 
 with the "Up: (dir)" option. It may not be consistent, and I can  
certainly just click my bookmark again, but it sure was handy.

___
lilypond-devel mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-devel


**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono

*/

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: slant of tremolo-beams - again

2008-09-08 Thread Josh Parmenter

Hi Anders,

for what it's worth, I agree with you (I seem to remember that  
conversation!)


Josh

On Sep 8, 2008, at 9:06 AM, [EMAIL PROTECTED] wrote:


Seems the Dillon example (showing violin-music) didnt get too far, but
point is illustrated well with first example.  If anyone wants to see
more 'real-life' examples of slanted on-stem tremolos in beamed
note-groups, tell me and ill send some.


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono

*/



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


one measure per line

2008-09-08 Thread Josh Parmenter
I've been searching through the docs and online, and i think the  
keywords I am using are making this difficult... does anyone have a  
suggestion for how I can set up parameters so that lilypond only  
allows one measure per line?


Thanks for any help.

Josh

**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono

*/

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: one measure per line

2008-09-08 Thread Josh Parmenter

Thanks David... that actually gives me some ideas.

Josh

On Sep 8, 2008, at 11:03 AM, David Bobroff wrote:

I'm not sure that LilyPond has a parameter to set to do what you  
want. What springs to my mind is using \break to achieve the effect  
you want.


Let's assume your piece is in 4/4 and is 25 measures long.

myBreaks = {
\repeat unfold 25 {
s1 \break
}

}

Then, in your \score block use \myBreaks inside << >> with your  
music expression.  This will force a break after every measure.


Hope this helps.

-David

Josh Parmenter wrote:
I've been searching through the docs and online, and i think the  
keywords I am using are making this difficult... does anyone have a  
suggestion for how I can set up parameters so that lilypond only  
allows one measure per line?

Thanks for any help.
Josh
**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/
“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether  
actively or passively, consciously or unconsciously, he makes  
choices in this regard. He may be conservative or he may subject  
himself to continual renewal; or he may strive for a revolutionary,  
historical or social palingenesis." - Luigi Nono

*/

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user




**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono

*/



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: one measure per line

2008-09-09 Thread Josh Parmenter

brilliant! Thanks all.

Josh

On Sep 8, 2008, at 11:52 PM, Mark Polesky wrote:


Josh,

Let's say you have 100 measures in your score.
Either of these will work:

\layout {
 ragged-right = ##t
 system-count = #100
}

\paper {
 ragged-right = ##t
 system-count = #100
}

Cheers,
Mark



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono

*/



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: one measure per line

2008-09-09 Thread Josh Parmenter

again, thanks! these both help quite a bit!

Best

Josh

On Sep 9, 2008, at 12:07 AM, Dmytro O. Redchuk wrote:


2008/9/9 Mark Polesky <[EMAIL PROTECTED]>:

Josh,

Let's say you have 100 measures in your score.
Either of these will work:


I would say:

Let's say you have N measures in your score.
Either of these will work:

\layout {
ragged-right = ##t
system-count = #K
}

\paper {
ragged-right = ##t
system-count = #K
}

Where K is a number greater than N.

So, one could write:
system-count = #

and this would do the job.

Cheers,
Mark


--  
Dmytro O. Redchuk



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono

*/



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: size of bass clef

2008-09-10 Thread Josh Parmenter
Hmm... a FInale user that thinks they are picky about how things look?  
ironic...


In answer to your question... you can set the font-size :

\paper {
  ragged-right = ##t

}

\score {
  {
\clef bass
\override Staff.Clef #'font-size = 20
c4 d e f
  }
  }

Hope that helps.

Josh


On Sep 10, 2008, at 9:05 AM, Stefan Thomas wrote:


Dear Lilypond-users,
a friend of mine (he uses finale and he can be very stressing with  
note-typing things) is of the opinion, that the bass-clef in  
lilypond is to small.

Is it possible to change the size of the bass clef?
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono

*/

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


beaming

2008-09-14 Thread Josh Parmenter
Hi all... I am trying to understand the Beam #'beaming property, and  
can't seem to figure out the syntax to override the settings. As a  
short example, what I would like to do is tell the middle beam not to  
draw. None of these syntaxes throws an error, but none seems to change  
any settings. Any suggestions / examples? Thanks for you help.


Josh

%% SuperCollider output from Sat Sep 13 21:16:43 2008

\layout {
  #'ragged-right ##t
}
\include "english.ly"
%Voice0
flute = \new Voice = "flute" {
%  \override Voice.Beam #'beaming = #'((0 . #t) (1 . #f) (2 . #t))
%  \override Voice.Beam #'beaming = #'((0 1 2) . (#t #f #t))
%  \override Voice.Beam #'beaming #'(0 1 2) = #'(#t #f #t)
%  \override Voice.Beam #'beaming #'1 = ##f
d'64 [
e'64
f'64
g'64
a'64
bf'64
cs''64
d''64]

}
\score {
<<
\new Staff = "flute" <<
\clef treble
\time 4/4
\key d \minor
\flute
>>
>>
}

**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono

*/

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: png cropping

2008-09-17 Thread Josh Parmenter

You can set the tagline to "" in the \header block.

%% SuperCollider output from Wed Sep 17 12:58:57 2008

\paper {
#(set-paper-size "letter")
}
\include "english.ly"
\header {
tagline = ""
}
%Voice0
soprano = \new Voice = "soprano" {
< c' ef' g'>4
< b f' g'>4
< af bf c' d' e' fs' af' bf'>2
}
\score {
<<
\new Staff = "soprano" <<
\clef treble
\time 4/4
\key c \minor
\soprano
>>
>>
}


Josh

On Sep 17, 2008, at 12:41 PM, Patrick Horgan wrote:


Jonathan Kulp wrote:
This is an old thread but I found it in my email box and thought  
I'd respond because I've recently written a script to handle this  
sort of thing.  I share with some trepidation since last time I  
shared a script, someone pointed out to me that there was already a  
lilypond command-line option that performed exactly the same thing :)
This is wonderful   If there was a way from the lilypond command  
line to suppress a footer that would make it even better.  We  
wouldn't see things like snippet 464 which has a snippet, a huge  
amount of white space, and then a footer.  Of course you can go into  
your favorite editor and crop manually, but if the footer wasn't on  
there, this script could handle it automagically, and instead of  
having to go in and edit the lilypond file to get rid of the footer,  
could just invoke lilypond with the appropriate command line;)


Patrick


Ok so this script requires the "netpbm" package of image  
manipulation programs.  Anyone who builds Lilypond from source  
probably has it already, but it's easy to get under Linux and Mac.   
for Ubuntu I do "sudo apt-get install netpbm" and for mac "sudo  
port install netpbm".  I see that there's a Windows version but  
I've never tried to install that because I rarely use Windows.  So  
far the script works perfectly for Linux and Mac OSX 10.4 (maybe  
10.5 but I can't try it b/c I don't have one).  A couple of lines  
are different in the Mac version because of the different image  
viewer and different way of invoking lilypond at the command line.


What I find useful about the script is that it prompts the user for  
the desired output resolution and format.  So far I've run it  
successfully at resolutions from 72 to 1200 dpi in png, jpeg, and  
tiff formats.  I suppose you could use any image format for which  
there is a "pnmto___" program, substituting the appropriate text  
for the format.  The script will look for whatever format you type  
in there.


Note, if you want a musical example suitable for inserting in a  
word-processed doc or web page, you might want to remove or comment  
out the header block of your file.


Once you've saved and made the file executable (I keep it in my / 
bin directory so it's in my $PATH), just do "lilyimage foobar.ly"  
and enter the resolution and format when prompted.


I copy below the Linux and Mac versions.  It would be cool if  
someone made it work on Windows, to :)


Linux version of "lilyimage" script

#!/bin/bash

#*#
# Script for making image files from lilypond source  #
# suitable for use as musical examples to insert in a #
# document or web page.   #
#*#

# get filename from first argument
srcfile="`basename $1`"
# get filename without .ly extension
STEM="`basename $1 .ly`"

# determine output directory
OUTDIR="`dirname $1`"

# ask for output resolution
echo -n "Enter output resolution in DPI (72, 100, 300, 600, etc.): "
# gather resolution input
read RES

# ask for desired final output format
echo -n "Enter desired output format (jpeg, png, tiff): "
# gather format input
read FORMAT

cd $OUTDIR

# run lilypond on file with png output for further processing...
lilypond --format=png -dresolution=$RES $srcfile

# The next commands crop the png file so that
# it only includes the example instead of an entire page.
# First convert image to pnm for processing with netpbm tools
pngtopnm $STEM.png > $STEM.pnm

# crop all the white space off
pnmcrop -white $STEM.pnm > $STEM-cropped.pnm

# convert to end format
pnmto$FORMAT $STEM-cropped.pnm > $STEM.$FORMAT

# removes pnm and ps files
rm *.pnm $STEM.ps

# open final image as background process in "Eye of Gnome" Image  
Viewer

eog $STEM.$FORMAT &

%%%

Mac version of script:

#!/bin/bash

#*#
# Script for making image files from lilypond source  #
# suitable for use as musical examples to insert in a #
# document or web page.   #
#*#

# get filename from first argument
srcfile="`basename $1`"
# get filename without .ly extension
STEM="`basename $1 .ly`"

# determine output directory
OUTDIR="`dirname $1

Re: png cropping

2008-09-19 Thread Josh Parmenter
I've been following this, and just tested the latest version on OSX...  
quite nice guys!


Perhaps the -V flag can be set to not open the image after it is done?  
This utility will be great for mass creating images (as most command  
line tools are), but having Preview open each one up will get very  
tiring... perhaps if the is no -V passed in, that step can be skipped?


Again - quite nice!

Josh

On Sep 19, 2008, at 2:20 PM, Jonathan Kulp wrote:

Ok I've caught on to your version-control comments at the top and  
have started adding to them.  This time I added two things to the  
script:


1) recognition of the computer's OS (only Linux or Mac at this  
point), and appropriate changes to the commands to accommodate.   
After this change, the script works exactly the same (from user's  
perspective) on both my Ubuntu and Mac OSX 10.4 systems :)  I used  
to have to keep separate versions of the script for each one.


2) added a "known issue" comment that the script doesn't handle  
spaces in directory names.  It fails at line 43 (cd $currentdir) if  
the directory of the lilypond source file has a space in the name.


Patrick Horgan wrote:

Jonathan Kulp wrote:

Patrick!  It's all working beautifully now.
I must say that you are most awesomely cool.  How wonderful to find  
someone that digs in in the best linux/Unix tradition and puts  
together a string of programs to achieve a desired result.  Hats  
off to you.
Working on this script is making me understand the genius of the  
Unix model.  Someone with no programming experience like me can make  
something that gets a job done using a bunch of tiny tools.  Really  
fun!



... much cool stuff elided...
p.s. now that we have a tool with a version number, I might try  
learning how to write a brief manpage for it.  Good idea?
A most excellent idea!  manedit is your friend.  Complete wysiwyg  
man editor.  Its help has a complete and easy tutorial.  On ubuntu  
it's just *sudo apt-get install manedit*.  Since you're doing that  
I'm adding a -a (about) with your name and mine, some more comments  
so others can modify it more easily, and will call it version  
1.1.1.  I also added a -V=viewer, so I could use, for example  
evince if the output format was ps.  N.B. evince doesn't display  
transparency so if you use it with transparent gifs or pngs you  
might think the transparency gone, but it's not.

Cool.  I'll try this after the kids are in bed tonight.

   One feature it really needs is an ability to handle the  
situation where the output for file.ly is for example, file- 
page1.png and file-page2.png.  You'd have to get a wildcard list of  
things that matched $STEM*.png and loop over them to do the  
conversions, then something like $viewer $STEM*.$FORMAT & at the  
end.  That would make it work as it currently does for most things,  
there'd just be one thing in the list, but still work for the case  
where there's something there.  A generic wildcard is best because  
someone might have done a #(define output-suffix "blablabla") and  
we want to support that case too.  eog will bring up all the pages  
and let you page up and page down through them, and evince will  
bring a a window for each file.  There's enough examples in the  
script so that you could figure out how to do it if you would.  We  
could call it 1.1.2;)  If you don't have time let me know and I'll  
get to it sometime.  If you do, change the version in the script,  
add to the changelog at the top and send me a copy:)  Maybe we  
could donate it to the lilypond project.

Patrick
Yes.  I haven't thought much about multiple-page documents yet  
because for me the object of the script is to produce small images  
of musical examples to use in a research paper or on a website.  Are  
there situations where you want multiple-page examples with  
whitespace cropped like this?  I could see where it'd be nice to  
make a longer document's background transparent.  It's certainly  
worth a try to deal with a longer file.  The more flexible the  
script is, the better, after all. I'll poke around with it this  
weekend, perhaps.


Most recent version attached.

Jon

--
Jonathan Kulp
http://www.jonathankulp.com
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono

*/



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: png cropping

2008-09-19 Thread Josh Parmenter
Not on OSX. You are using the 'open' command, and this will open the  
file regardless of the viewer that is passed in.


Josh

On Sep 19, 2008, at 2:51 PM, Patrick Horgan wrote:


Josh Parmenter wrote:
I've been following this, and just tested the latest version on  
OSX... quite nice guys!


Perhaps the -V flag can be set to not open the image after it is  
done? This utility will be great for mass creating images (as most  
command line tools are), but having Preview open each one up will  
get very tiring... perhaps if the is no -V passed in, that step can  
be skipped?

If you enter -V="" then it will do that. (or just -V= )

Patrick


**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono

*/



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: png cropping

2008-09-19 Thread Josh Parmenter

That makes sense as well.

Josh

On Sep 19, 2008, at 3:09 PM, Patrick Horgan wrote:


Jonathan Kulp wrote:
Thanks for trying it out, Josh!  Glad to hear it worked for you on  
OSX.   Patrick has been dealing with the flags, and I don't really  
understand how to do them, so my very dirty solution would be  
simply to comment out the last bit of the script that opens the  
file :).  I can see how this would be tiresome if you were running  
it on a bunch of files.
It would be cool to have a -q (quiet) mode that didn't have any  
output, just quietly did it's work, and never popped up a viewer.   
Of course it would return a status to tell you if it was successful.


Patrick


Jon

Josh Parmenter wrote:
I've been following this, and just tested the latest version on  
OSX... quite nice guys!


Perhaps the -V flag can be set to not open the image after it is  
done? This utility will be great for mass creating images (as most  
command line tools are), but having Preview open each one up will  
get very tiring... perhaps if the is no -V passed in, that step  
can be skipped?


Again - quite nice!

Josh





**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono

*/



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: png cropping

2008-10-02 Thread Josh Parmenter
If you are familiar with scripting, and have Windows, use it as a  
template. But my guess is you will need to find different utilities to  
do the conversion and cropping. This is pretty straight-forward to do,  
since most of these utilities run just fine on linux and mac (though  
most scripts check for the system that is running, and make  
adjustments as needed). The hard work I would say is done (great job  
Jonathan and Patrick!). There is no reason you couldn't use this  
script as a template and make something similar for Windows. I know  
Jonathan used this project as an impetus to learn how to script...  
rather then just complaining, perhaps you can do the same.


Best,

Josh

On Oct 2, 2008, at 12:21 PM, Tomas Valusek wrote:




Jonathan Kulp napsal(a):
After much revision, addition, and general fussing about with it,  
I'm happy to post the official version of what we're calling  
"lily2image," a  script for converting lilypond source files to  
cropped image files in many different formats suitable for  
insertion into documents (theses, research papers, etc) or web  
pages.  This works equally on Mac and Linux, but not on Windows.


Not on Windows :-( ... Just great :-(

TomV




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono

*/



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Automatic indentation in Vim

2008-11-13 Thread Josh Parmenter

On Nov 13, 2008, at 1:37 PM, Jonathan Kulp wrote:

Sorry, folks, but why does this email on Vim show up on the thread  
about Lilypond being excessively slow on Vista?  (My email app is  
set to sort incoming mail by thread.)  This has happened on a couple  
of other threads recently, too.  Does this happen if someone hits  
reply-all to a thread and changes the subject line?  Thunderbird  
thinks it belongs with the old thread.


Yes - it probably does (since information is placed into the email  
header when you hit reply). Please start new threads with new topics!


Best,

Josh


Jon
--
Jonathan Kulp
http://www.jonathankulp.com


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


**
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono

*/



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user