Re: min size svg, how to

2021-02-25 Thread David Pirotte

> 1-crop

> I am trying to produce 'min sized' svg images, but I fail. As an
> example:
> ...
> which I compile using this command:
>   lilypond -dcrop --svg test-2.ly

I am sorry for the 'noise', I actually missed that lilypond creates a
test-2-cropped.svg, so everything is fine wrt 1- 

> 2-[crop/staff] margins?

Now that it works perfectly, is it possible to adjust I(to add) top,
left, bottom, right (staff) margins?

Thanks,
David


pgpwD5dJWuyLJ.pgp
Description: OpenPGP digital signature


min size svg, how to

2021-02-25 Thread David Pirotte
Hello

1-  crop

I am trying to produce 'min sized' svg images, but I fail. As an
example:

\version "2.22"

\paper{
  indent=0\mm
  oddFooterMarkup=##f
  oddHeaderMarkup=##f
  bookTitleMarkup = ##f
  scoreTitleMarkup = ##f
  page-breaking = #ly:one-line-breaking
}

\layout {
}

\relative {
  g'4 f e f
  g2 c,
  \bar "|."
}

which I compile using this command:

lilypond -dcrop --svg test-2.ly

I obtain the attached image (screenshot of eog test-2.svg ...], where
one can see it has been horizontally cropped, but not vertically, how
can I achieve a crop in both direction?


2-  [crop/staff] margins?

If I succeed to crop in both direction, is there a way, using variables
further adjust top, left, bottom, right (staff) margins?

Thanks,
David



pgpxgWEsk4EeH.pgp
Description: OpenPGP digital signature


Re: Replace sub-string

2020-05-23 Thread David Pirotte
Hello,

> On 2020-05-22 8:38 pm, Freeman Gilmore wrote:
> > Is there a procedure, to replace 'all' occurrences of a sub-string
> > within a string. with a string?
> > If so please give an example.  
 
> regexp-substitute/global [1] should do the job.
 
> [1]: 
> https://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/Regexp-Functions.html#Regexp-Functions
 
> 
 
> (regexp-substitute/global #f
>"(c|sh|w)ould of"
>"I would of done that if I could of."
>'pre 1 "ould have" 'post)
> ...

Fwiw, I wrote a none regex version, inspired by a similar code I found
in guix, it is here [1], feel free to snarf it ... Guile 3.0 also has a
version, in (ice-9 string-fun), a complete diff implementation [2] ...

David

[1] Grip - string-replace-all

http://git.savannah.nongnu.org/cgit/grip.git/tree/grip/string.scm

[2] Guile 3.0 - string-replace-substring


http://git.savannah.gnu.org/cgit/guile.git/tree/module/ice-9/string-fun.scm?h=master


pgp23oQY86n3V.pgp
Description: OpenPGP digital signature


Re: scheme-question about accumulating lists of lists

2019-04-22 Thread David Pirotte
Hello THomas,

> ...
> Now `core-guile-condition´ feels like a case for `match´, but I
> couldn't make it work.
> Is this a bad use case and alist searching is always preferable?

I would do this:

(define (is-spanner? grob)
  (match grob
((g-key . g-vals)
 (let ((meta (assq-ref g-vals 'meta)))
   (and meta
(eq? (assq-ref meta 'class)
 'Spanner)
g-key)

Which you could generalize:

(define (lp-grob-is-a? grob class)
  (match grob
((g-key . g-vals)
 (let ((meta (assq-ref g-vals 'meta)))
   (and meta
(eq? (assq-ref meta 'class)
 class)
g-key)

Then filtering becomes:

(define grobs
  '((Name-1 . ((foo . x)
   (bar . y)
   (buzz . z)
   (meta . ((name . Name-1)
(class . Spanner)
(ifaces . (i1 i2 i3))
(Name-2 . ((foo . m)
   (bar . n)
   (buzz . o)
   (meta . ((name . Name-2)
(class . Not-a-Spanner)
(ifaces . (i4 i5 i6))
(Name-3 . ((foo . m)
   (bar . n)
   (buzz . o)
   (meta . ((name . Name-3)
(class . Spanner)
(ifaces . (i7 i8 i9

scheme@(guile-user)> (filter-map
(lambda (grob)
  (lp-grob-is-a? grob 'Spanner))
grobs)
$6 = (Name-1 Name-3)

> As a side note.
> I'd like to download the "Guile Reference Manual" as one big-page
> .html, but couldn't find any for 2.9.1.
> Not yet done?

No, but you could locally build it, using the glib gendoc.sh script, let me 
know if
you need help with this, I can cook sometig for you ...

David.


pgpDLtncfEjE5.pgp
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: scheme-question about accumulating lists of lists

2019-04-21 Thread David Pirotte
Hi Thomas,

> ...
> Thanks again!

You're welcome.

I used 'funny' (weird) procedure and variable names, but if the procedure is to 
be
exposed to your users, and with the objective of making it simple to use, read 
and
maintain, as you described later in your answer, you could write it as - using
(ice-9 match):

(define (lp-map proc lp-list)
  "Apply PROC to each element of LP-LIST. An LP-LIST must be a list of
lists of items - (cons '(a b c) (cons '(d e f) (cons '(g h i) '( -
or a list of lists of items plus a pair of list of items - (cons '(a b
c) (cons '(d e f) '(g h i))).  Each sublist item must
statisfy (not (pair? item)).  The result(s) of the procedure
applications are saved and returned in a list."
  (let loop ((lp-list lp-list)
 (result '()))
(match lp-list
  ((elt . rest)
   (if (pair? elt)
   (loop rest
 (cons (proc elt) result))
   (reverse! (cons (proc lp-list) result
  (()
   (reverse! result)

This version also matches the built-in map argument order. If you need an 
lp-map that
accepts more then an lp-list, let me know:   "lp-map proc lp-list1 lp-list2 ..."

Now, it is worth pointing that if the above code is ok, it is not very robust: 
it
strongly depends on well formed LP-LIST, and will fail otherwise, as (not
very well) described in the procedure comment, consider this example:

(define bad-lp-list
  (cons '(a b c) (cons '(1 2 3) '((x) y z

scheme@(guile-user)> (lp-map car bad-lp-list)
$2 = (a 1 x y)

> I think you're wrong.
> It's not in the guile-1.8-docs, but below worked:

Oh, great.

> ...
> Among keeping things simple is the attempt to use very little
> additional guile-modules.

I am all in favor of simplicity (who would not?), though I don't agree that not
using additional Guile modules does (always) help to achieve that goal.

> Whether 'pattern matching' will be useful to hide complexity to make
> life easier for our users or whether it adds an abstraction layer,
> which would make it even harder for users to write their own
> guile-code, I can't judge currently.

Ok, I believe it does help a lot, maybe even more scheme beginners actually, 
and so
do our maintainers, here is an extract of the (latest) manual, section "6.6.8 
Pairs":

...
Since a very common operation in Scheme programs is to access the car 
of a
car of a pair, or the car of the cdr of a pair, etc., the procedures 
called
caar, cadr and so on are also predefined. However, using these 
procedures is
often detrimental to readability, and error-prone. Thus, accessing the
contents of a list is usually better achieved using pattern matching
techniques (see Pattern Matching).
...

But of course do as you wish, there is nothing 'wrong' writing good scheme code 
using
'old' destructuring techniques, but it will, always imo, be more difficult to 
read
and maintain.

David.


pgpWdxXCqa_hL.pgp
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: scheme-question about accumulating lists of lists

2019-04-20 Thread David Pirotte
Hi Thomas,

> ...
> Thanks pointing me to this possibility, in my use-case I then could do:
> (define (p) (cons '(1 2 3) '(4 5 6)))
> (define l1 '(a b c))
> (define l2 '(x y z))
> (cons* l1 l2 (car (p)) (cdr (p)) '())
> =>  
> ((a b c) (x y z) (1 2 3) (4 5 6))

Yes, if you can (you mentioned the code was not yours and couldn't be
changed ...) that would be a lot cleaner, imo, and will let you use 'built-in'
scheme, guile and srfi-1 procedures that work on lists, as mentioned in my first
answer.

> > (define (blue-walk blue proc)
> >   (let loop ((blue blue)
> >  (result '()))
> > (match blue
> >   ((a . rest)
> >(if (pair? a)
> >(loop rest
> >  (cons (proc a) result))
> >(reverse! (cons (proc (cons a rest))
> >result
> >   (()
> >(reverse! result)

In the above code, I am performing an extra and therefore useless cons, here
is a correction (not a bug, but one should _always_ avoid consing whenever 
possible):

(define (blue-walk blue proc)
  (let loop ((blue blue)
 (result '()))
(match blue
  ((a . rest)
   (if (pair? a)
   (loop rest
 (cons (proc a) result))
->   (reverse! (cons (proc blue)
   result
  (()
   (reverse! result)

> My guile-knowledge is mostly limited to what LilyPond needs.
> As far as I can tell (ice-9 match) isn't used in our source.
> So I need to study your `blue-walk´ from scratch.

In this particular case, match is 'convenient', but not really indispensable - 
and I
see now it's not in guile-1.8.  Here is a version that does not need match 
(though
you might not even need it if you can (cons* a b c ... '()) as you mentioned 
here
above):

(define (fox-walk fox proc)
  (let loop ((fox fox)
 (result '()))
(if (null? fox)
(reverse! result)
(let ((a (car fox)))
  (if (pair? a)
  (loop (cdr fox)
(cons (proc a) result))
  (reverse! (cons (proc fox)
  result)))

Now, if/when you (lily devs I mean, not just you of course) plan to use 2.0, 
2.2 or
3.0 (2.9.1 is it is ...) [*], it is highly recommended to use match 'everywhere'
you'd use car, cdr, cadr ... but not only, look at the "7.7 Pattern Matching"
section of a recent manual for more ...  the code is/becomes a lot more 
readable,
and match is not only extremely powerful, but also extremely fast (no figures, 
but
it's being said there is no penalty compared to using 'older' destructuring
techniques ... (referred to, among guilers, 'the car cdr hell' :))

David.

[*] I know why the change hasn't been made, I don't expect any answer here,
just mentioning that if/when ... (saying this so you save your energy 
and to
avoid to start yet another conversation on this already deeply discussed
mater among you ...)


pgp_tUmxGgAZD.pgp
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: scheme-question about accumulating lists of lists

2019-04-19 Thread David Pirotte
Hi again,

Replying twice to myself in a row, how is that :)
A little tired I guess ...

> > Note that the above will only work if the last 'blue item' has 3 elements, 
> > you'd
> > need to adapt for other use case (which also 'speak' in favor of the cleaner
> > approach.  

> Actually, I didn't like what I wrote, here is a slightly better code:

And here is a corrected version: the code in the mail I'm answering now would 
not
return proper (expected) results for any other operator then car ... this one 
will
let you really walk :)

(use-modules (ice-9 match))

(define blue
  (cons '(a b c) (cons '(1 2 3) '(x y z

(define fox
  (cons '(a b c) (cons '(1 2 3) (cons '(x y z) '()

(define (blue-walk blue proc)
  (let loop ((blue blue)
 (result '()))
(match blue
  ((a . rest)
   (if (pair? a)
   (loop rest
 (cons (proc a) result))
   (reverse! (cons (proc (cons a rest))
   result
  (()
   (reverse! result)

scheme@(guile-user)> (load "blue.scm")
;;; note: source file /usr/alto/projects/guile/blue.scm
;;; ...
scheme@(guile-user)> (blue-walk blue car)
$2 = (a 1 x)
scheme@(guile-user)> (blue-walk fox car)
$3 = (a 1 x)
scheme@(guile-user)> (blue-walk blue cdr)
$4 = ((b c) (2 3) (y z))
scheme@(guile-user)> (blue-walk fox cdr)
$5 = ((b c) (2 3) (y z))

Cheers,
David


pgpj47BxMMxuy.pgp
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: scheme-question about accumulating lists of lists

2019-04-19 Thread David Pirotte
Hi again,

> Note that the above will only work if the last 'blue item' has 3 elements, 
> you'd
> need to adapt for other use case (which also 'speak' in favor of the cleaner
> approach.

Actually, I didn't like what I wrote, here is a slightly better code:

(use-modules (ice-9 match))

(define (blue-walk blue proc)
  (let loop ((blue blue)
 (result '()))
(match blue
  ((a . rest)
   (if (pair? a)
   (loop rest
 (cons (proc a) result))
   (reverse! (cons a result
  (()
   (reverse! result)

It solves the above note (it avoids to have to know how many elements the last 
pair
has), and also let you process both 'your' structure and  the 'cleaner' one:

(define blue
  (cons '(a b c) (cons '(1 2 3) '(x y z

(define fox
  (cons '(a b c) (cons '(1 2 3) (cons '(x y z) '()

scheme@(guile-user)> (load "blue.scm")
;;; note: source file /usr/alto/projects/guile/blue.scm
;;;   newer than ...
scheme@(guile-user)> (blue-walk fox car)
$2 = (a 1 x)
scheme@(guile-user)> (blue-walk blue car)
$3 = (a 1 x)


Cheers,
David


pgpq3Krn_OVTN.pgp
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: scheme-question about accumulating lists of lists

2019-04-19 Thread David Pirotte
Hi Thomas,

> Failing example:
> (map
>   car
>   (cons '(a b c) (cons '(1 2 3) '(x y z

> One way to make it work is to convert the initial pair (cons '(1 2 3)
> '(x y z)) to a list of lists, i.e (cons '(1 2 3) (list '(x y z)))
> The question is: is it the only and/or best way?

It sounds a lot cleaner to me, because, in the end, it is as if:

(cons '(a b c) (cons '(1 2 3) (cons '(x y z) '(

which is 'consistent all the way down, so to speak, and will let you use 
build-in
scheme ops like map, fold, ...

If you want to keep the original structure though, I'd use (ice-9 match) and
recurse:

(use-modules (ice-9 match))

(define blue
  (cons '(a b c) (cons '(1 2 3) '(x y z

(define (blue-walk blue proc)
  (let loop
  ((blue blue)
   (result '()))
(match blue
  ((x y z)
   (reverse! (cons x
   result)))
  ((a . rest)
   (loop rest
 (cons (proc a) result))

scheme@(guile-user)> (load "blue.scm")
;;; compiling /usr/alto/projects/guile/blue.scm
;;; compiled 
/home/david/.cache/guile/ccache/2.2-LE-8-3.A/usr/alto/projects/guile/blue.scm.go
scheme@(guile-user)> (blue-walk blue car)
$8 = (a 1 x)

Note that the above will only work if the last 'blue item' has 3 elements, 
you'd need
to adapt for other use case (which also 'speak' in favor of the cleaner 
approach.

David


pgpE8DMTMeHFF.pgp
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Which Linux distro for Lilypond

2017-01-13 Thread David Pirotte
Hello,

> I never tried to compile lilypond with a guile version higher than
> 2.0.13, so I can't say anything about it.

I (really) recommend you to do so: guile 2.2 is due to be released in a month or
two, at the very most. 2.1.5 beta is the latest [1], 2.1.6 will be released in 
a few
days (and I think it fixes a(some) utf8 related bug(s).

At this point in time Thomas, if I was in your position, I would not spend time 
to
get things done for 2.0, I would skip 2.0 and work on 2.2 instead, it is too 
late,
and imo totally useless, 2.2 is an order of magnitude better then 2.0, for 
numerous
reasons (read the NEWS since its first release...). Not only that, but when 2.2 
is
released, support to 2.0 will be kept to the very strict minimum... Don't loose 
your
time here, it is my advice, maybe a bit more then 2c this time...

Cheers,
David

[1] http://lists.gnu.org/archive/html/guile-devel/2016-12/msg5.html


pgp4JwddiA_Br.pgp
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Which Linux distro for Lilypond

2017-01-07 Thread David Pirotte
Hello,

> ...
> I already had the vague thought how much work it might be to explore
> other scheme-dialects, adjust whole lilypond to use them and drop
> guile entirely.
> ...

For info, someone claimed on irc (#guile, freenode) that he/she is closed to
compile/use lilypond using guile-2.1:

https://gnunet.org/bot/log/guile/2017-01-05

[12:44:11] for the first time in several years, I
can use lilypond (on Guile 2.1) to compile my infinite hands sheet 
notes!

On this same guile log, further below, you may follow a conversation between 
the user
and wingo (1 of the 3 guile maintainers) on what he/she considers 'the last 
problem
to solve' ...

Cheers,
David


pgpHWIBqn80is.pgp
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Bach - Brahms Chaconne ... for left hand

2016-11-18 Thread David Pirotte
Mark,


> http://www.free-scores.com/download-sheet-music.php?pdf=1288

Thank you,
And to Gilles and SoundsFromSound as well

David.


pgpmBYLJJH6RB.pgp
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Bach - Brahms Chaconne ... for left hand

2016-11-17 Thread David Pirotte
Hello,

Does anyone know if a lilypond free score exists for this piece:

Bach - Brahms Chaconne (Violin Partita - V) No. 2 in D minor, BWV 1004:
arranged for piano left hand

I couldn't find it, but I'm not [by far] the best when it comes to searching for
something on the web...

Many thanks,
David


pgpoVwd1RNcIe.pgp
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Solution to 7 over sqr(71) time against integer polyrhythms

2016-11-16 Thread David Pirotte


> We'll wait while you whip that right out and show that png file to us. 
> Remember, it is a poor carpenter who blames his tools. 

So you finally admit it:  you are a poor carpenter


pgpORFobQUwMQ.pgp
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Potential improvements to the homepage?

2016-08-28 Thread David Pirotte
Hello David,

> > I was talking about the source code of these web sites,  

> The "source code of these web sites" is also written in Texinfo.

Nope,  Guile, Guix and the other examples I gave all have their web-site source 
code
written in scheme.

> That's because Guile does not have its web site written in Texinfo.
> LilyPond does.

Guile's web-pages were not using sxml before the rewrite either, and it is in 
the
perspective of a redesign/rewrite that I suggested to consider scheme/sxml, and
in that respect, it does not matter actual pages are written in texinfo.

But I understand you and most people who answered my suggestion believe
it is not a good approach for Lilypond web pages, especially in regards of the
translation in multiple languages.

David

ps: for info, guile has a  'Texinfo Processing' module and manual entry



pgpxkohFtwLjV.pgp
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Potential improvements to the homepage?

2016-08-27 Thread David Pirotte
Hello Urs,

> ...
> >> Still needs to be tied into the translation process and means another
> >> technology the translators need to master.  
> >
> >Translators would edit the strings , then run 'make www'
> > ...

> So that explains something.
> You think LilyPond's website and docs are maintained as HTML files? Not at 
> all!

Nope, I never said the doc was written and maintained in 'html' :). You can 
follow
the doc link on Guile's web-site, for example, which, as Guix, Guile-Gnome...,
also has its doc written in texinfo:

Guile -> Learn -> Reference Manuals -> Guile-2.0

and choose what ever format you prefer, for example

https://www.gnu.org/software/guile/manual/guile.html

I was talking about the source code of these web sites, and why, imo, this 
approach
is a good candidate for a new lily web site.  There would be no 'interference' 
with
the lily doc and its translations.  Guile's doc hasn't change, not even a single
modif, because of it's new web-site :)

David


pgpE5PnmWb5qr.pgp
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Potential improvements to the homepage?

2016-08-27 Thread David Pirotte

> > Don't be! You'll get use to it a lot faster then you think! It
> > actually reads almost as if it was English [and *nod* a lot easier
> > then the corresponding html page], here is a simplified example. The
> > schema is the same for all pages:
> >
> >   import
> > utils
> > shared
> >
> >   define the page
> >
> >   `(html (@ (lang "en"))
> >  ,(html-page-header "About");; defined in shared
> >  (body
> >   ,(html-page-description)  ;; dito
> >   ,(html-page-links);; dito
> > 
> > ,(html-page-footer)))   ;; dito
> >
> > The page content can be as simple as
> >
> >   (div (@ (id "content-box"))
> >(article
> > (h1 "About the Project")
> > (p "Lylipond is ...")))  

> Still needs to be tied into the translation process and means another
> technology the translators need to master.

Translators would edit the strings , then run 'make www' [or what ever target is
made], and because of this approach, they would have a lot less work and less
'bugs', since header, navbar and footer text are 'shared' by all pages.

But yes, they would have to know at least a bit about this representation, is 
this
not also true wrt html? If so, then their knowledge is transferable with almost 
no
effort, and the above argument that an  sxml tree is easier to read, imo at 
least,
also makes it easier to translate. If a translator can read and translate 

Alfie

he/she surely can do so on the sxml representation

(parrot (@ (type "African Grey")) (name "Alfie"))

Do they edit html pages now [or use a web 'design' gui tool]? If they do [edit 
html
pages directly], I would consider this approach the best candidate, no need to 
be a
top notch schemer to implement it, it is real fun to play with actually, and as 
I
said, some work to build the first time, a lot less work and bugs to maintain it
later on...

My 2c



pgprhzY8npspL.pgp
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Potential improvements to the homepage?

2016-08-27 Thread David Pirotte

> > ... or rather strings in a scheme file? Here's a scary example:
> > http://git.savannah.gnu.org/cgit/guix/guix-artwork.git/tree/website/www/about.scm
> >   

> This approach, at least this example, is totally missing CSS/JavaScript
> integration that makes (and, unfortunately, often breaks) modern web sites.
> What would be the benefits?

This is a total lack of knowledge and therefore misunderstanding on your side, 
both
of the links I pointed, guix and guile web sites extensively use css [did you 
really
look at the source code?]

javascript however, unless libre as in what is stated and described by the fsf 
and
gnu projects should never be used anyway

Cheers,
David


pgpJrnvcWS8QI.pgp
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Potential improvements to the homepage?

2016-08-26 Thread David Pirotte
Hi Federico,

> Il giorno mer 24 ago 2016 alle 0:00, David Pirotte <da...@altosw.be> ha 
> scritto:

> > The first thing, imo, would be to have these pages rewritten in 
> > scheme, Guile scheme
> > I mean of course :), with the portion of the code that holds the 
> > content being
> > expressed using sxml, see below for examples.  

> ... or rather strings in a scheme file? Here's a scary example:
> http://git.savannah.gnu.org/cgit/guix/guix-artwork.git/tree/website/www/about.scm

From someone how can fluently read lily source code, scary? :) All lilypond 
users
know a bit of scheme right? :)

Don't be! You'll get use to it a lot faster then you think! It actually reads 
almost
as if it was English [and *nod* a lot easier then the corresponding html page], 
here
is a simplified example. The schema is the same for all pages:

  import
utils
shared

  define the page

  `(html (@ (lang "en"))
 ,(html-page-header "About");; defined in shared
 (body
  ,(html-page-description)  ;; dito
  ,(html-page-links);; dito

,(html-page-footer)))   ;; dito

The page content can be as simple as

  (div (@ (id "content-box"))
   (article
(h1 "About the Project")
(p "Lylipond is ...")))

The complexity of the content of a page is not due to sxml, but the the 
complexity of
page itself, to the complexity of its design and how much css tweaks you're 
using.

The hard work is in the design, the translation to guile scheme is relatively 
easy:
one of the lily maintainers should ask Luis if he'd be interested: and he is a
schemer to, he did the design for Guile's web-pages _and_ wrote the source code 
as
well ... 

David



pgp6n7DfN6fXl.pgp
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Potential improvements to the homepage?

2016-08-23 Thread David Pirotte
Hello,

> >>> Would a CMS like WordPress be a good candidate for a complete rewrite?  

I would not do that.

The first thing, imo, would be to have these pages rewritten in scheme, Guile 
scheme
I mean of course :), with the portion of the code that holds the content being
expressed using sxml, see below for examples. It is a real winner, drastically
reduce bugs/quirks and the maintenance time. Once done, all you need to do is 
either
add news entries and run make, upload.

Two beautiful examples, imo:

GNU Guix
https://www.gnu.org/software/guix/

Source code:

http://git.savannah.gnu.org/cgit/guix/guix-artwork.git/tree/website

GNU Guile
https://www.gnu.org/software/guile/

Source code:
http://git.savannah.gnu.org/cgit/guile/guile-web.git

The author of these two is

Luis Felipe López Acevedo
http://sirgazil.bitbucket.org/

on his page there is a texinfo css you may want to look at as well

Maybe Luis would be happy to participate to the design, I really don't know but 
it
would not cost anything to ask him ...

Another example, cool too but not as beautiful (because I wrote them :) and 
couldn't
count on the help of a designer and css expert, so nice but a bit 'old 
fashioned'
as well):

GNU Foliot

http://www.gnu.org/software/foliot/

I did not upload the source codeyet, but it is gpl as well.

Cheers,
David.






pgpoHu03zIQbC.pgp
Description: OpenPGP digital signature
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Please how to use the Scheme debugger?

2014-05-28 Thread David Pirotte
Mark,

  (use-modules (ice-9 readline))
 readline is not provided in this Guile installation

The Guile Reference Manual version 2.0.11 says:

4.4.2 Readline

To make it easier for you to repeat and vary previously entered 
expressions,
or to edit the expression that you’re typing in, Guile can use the GNU
Readline library.

Which means you need to install the GNU Readline library if you want to use it:

apt-get install readline-common libreadline6 libreadline6-dev

This said, if you really want to hack in guile, you'll do yourself a favor in
investing a little of your time to study and use emacs and geiser instead:

http://www.emacswiki.org/
http://www.emacswiki.org/emacs/Scheme

For Scheme, a new Emacs mode is available: Geiser. It supports 
Guile
and Racket (previously known as PLT Scheme). On Debian or 
Ubuntu, it
can be installed with sudo apt-get install geiser.

http://www.nongnu.org/geiser/

Cheers,
David

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


Re: Problem: incompatible Lilypond and Guile

2014-05-23 Thread David Pirotte
Mark,

 Then I downloaded  Guile 2.0.11 from the gnu.org website and tried to build
 it.

 Configure failed (also off topic).

This step is tells you that there is a dependency problem, and that guile
2.0.11, which is _very_ _very_ stable :), won't compile, don't even try :)

If you can't find out by yourself what the problem is [check your config.log,
especially for the libgc [conservative garbage collector for C and C++ ], gcc 
and
automake], then send an email to guile-u...@gnu.org, and if you wish join us on 
irc
#guile at freenode...

 So why does the gnu.org website http://www.gnu.org/software/guile/
 say that Guile 2.0.11 is stable?

Because it is the latest stable version of guile :)

Cheers,
David

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


Re: MusicXML

2013-04-25 Thread David Pirotte

 Doing it in scheme does seem to offer some nice advantages.  I looked into it 
 and
 found that there's SXML, a scheme version of XML:

for info [in guile 2]:
http://www.gnu.org/software/guile/manual/html_node/SXML.html#SXML

what is the priority of lilypond being built upon guile-2, if there still is, 
and
if, how far is lilypond from effectively being built upon guile-2 ?

(david pirotte)

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


Re: fyi - https://wiki.ubuntu.com/UbuntuFreeCultureShowcase

2010-06-24 Thread David Pirotte
Hi,

If you think it serves well lilypond, you may use mine too [it's a small piece],
which by the way is already used in the lilypond manual  [2.3 Unfretted string
instruments] [someone in this list did ask to ear it, now one interpretation is
available - on this page too]:

http://www.altosw.be/dp/

Cheers,
David

;; --

Le Thu, 24 Jun 2010 15:23:15 +0200,
Jan Nieuwenhuizen janneke-l...@xs4all.nl a écrit :

 Hi,
 
 Read about Ubuntu's free culture showcase this morning on
 Ivanka Majic's blog.  
 
 Title of the post: Art in the open.
 
 First sentence: Are you a musician?
 
 Dove right into the wiki and was saddened by the fact that
 it did not mention LilyPond.  Tweeted @ivanka and she added it!
 
 So now I'm looking for someone to take this up and send
 in a composition in LilyPond to -- save me from embarrassment
 for taking this up -- I mean, -- to win eternal fame :-)
 
 Greetings,
 Jan
 
 PS: do we have/want a special place in the new website for
 original/new compositions made with/in LilyPond?
 
 PPS: wouldn't it be nice if we had so many great composers
  in our userbase that we could stage a composition
  contest with a major release?
 

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


Re: an output question

2008-05-21 Thread David Pirotte
evince [gnome document viewer] will do that for you as well,
i am using it a lot and i am quite happy, it's been improved a
lot recently [i am using version 2.20.2]

http://www.gnome.org/projects/evince

David

;; --

Le Wed, 21 May 2008 09:55:35 +0200,
Mats Bengtsson [EMAIL PROTECTED] a écrit :

 At least on Linux machines, there are several useful tools to do these 
 things in Postscript files,
 for example psnup and pstops. Also, if you use the CUPS printer driver, 
 there's an option to lpr
 to get 2-up printing of any document.
 
 /Mats
 
 James E. Bailey wrote:
  I was just wondering if it's possible to get lilypond to print 2-up. 
  So I get two A4 sheets on one A3 sheet? I know I can do it in acrobat, 
  but I like to use acrobat as infrequently as possible, and I've 
  actually never used ghostscript directly.


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


Re: A440 Notation System

2005-01-23 Thread David Pirotte
On Sun, 23 Jan 2005 16:55:44 +0100
[EMAIL PROTECTED] wrote:

 Quoting Erik Sandberg [EMAIL PROTECTED]:
 
  On Friday 21 January 2005 10.54, John Boyle wrote:
   Hello, Lilypond users.
  
   I'd be very grateful to hear your comments on the A440 System which you
  can
   access on www.a440system.com
  
  FYI, there are some issues with that website, when viewing with Mozilla 
  Firefox:
  - Mostly, you can not open links in new windows.
  - Under Results, it omplains about a missing plugin for the MP3 file, 
  which
  
  is not possible to find.
  - If you press the links under How does it work, nothing happens.
  
  With Konqueror the page doesn't seem to work at all; there are no links from
  
 
 Had the same with Opera.

very poorly designed indeed. links can be accessed, but result is unreadable
changes at the very bottom and very narrow (quasy invisible) 'last line' of
the main screen (or is it bad superimposed images ..., difficult to say): using
galeon

david 


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


Re: Font problem, Xdvi, quite urgent.

2001-10-15 Thread David Pirotte

Amelie Zapf wrote:
 

Amelie,

if you are using a distribution that includes tetex, then
the following suggestion might help you:

1. get the latest xdvi-22.48

ftp://ftp.math.berkeley.edu/pub/Software/TeX/

2. ./configure --with-tetex (or --with-tetex=PATHLIST) (and other
   options you would want of course (but not --enable-ps..., this
   will be properly be set by this option))

3. make, make install

4. find and edit the file 'texmf.cnf', mine is in /etc/texmf/

add the following lines:

% drp/01.10.13 as recommanded by xdvi-22.48 install
PKFONTS.XDvi= .:$TEXMF/%s:$VARTEXFONTS/pk/{%m,modeless}//
VFFONTS.XDvi= .:$TEXMF/%s
PSHEADERS.XDvi  = .:$TEXMF/%q{dvips,fonts/type1}//
PSFIGURES.XDvi  = .:$TEXMF/%q{dvips,tex}//

   be carefull, these lines has to come BEFORE any occurence of the same
   variables (that would not have the extension (i.e. PKFONTS, VFFONTS ...))

this should solve your problems with respect to TeX and Latex, at least it did
for me, but there are still the other things to do which are well described in
INSTALL.txt with respect to tetex (and SuSE, the distribution I use)

hope it helps
david


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



LilyPond 1.4.8: ly2dvi error

2001-10-09 Thread David Pirotte

Hi,

i've installed, as recommanded, both

guile-1.4   in $HOME/usr/guile-1.4
LilyPond 1.4.8  PATH=$HOME/usr/guile-1.4/bin:$PATH ./configure

i still can not compile simple lily file, such as the following
one (below error message)

i tried to modify the GUILE_LOAD_PATH (because conflicting with guile-1.7
i guess) as is:

export GUILE_LOAD_PATH=~/usr/guile-1.4/share:~/usr/guile-1.4/lib

but it didn't help

;; -- error output

david@faust:~/alto/projects/lilypond/tests 70 $ export 
GUILE_LOAD_PATH=~/usr/guile-1.4/share:~/usr/guile-1.4/lib
david@faust:~/alto/projects/lilypond/tests 71 $ 
/usr/alto/staff/david/usr/guile-1.4/share:/usr/alto/staff/david/usr/guile-1.4/lib
david@faust:~/alto/projects/lilypond/tests 72 $ ly2dvi bars-1.ly
Running LilyPond...
GNU LilyPond 1.4.8lilypond: error while loading shared libraries: lilypond: undefined 
symbol: scm_make_gsubr
error: lilypond: command exited with value 32512
Traceback (most recent call last):
  File /usr/local/bin/ly2dvi, line 781, in ?
run_lilypond (files, outbase, dep_prefix)
  File /usr/local/bin/ly2dvi, line 389, in run_lilypond
system ('lilypond %s %s ' % (opts, fs))
  File /usr/local/bin/ly2dvi, line 313, in system
error (msg)
  File /usr/local/bin/ly2dvi, line 207, in error
raise _ (Exiting ... )
Exiting ... 
david@faust:~/alto/projects/lilypond/tests 73 $ 


;; -- bars-1.ly content

\score {
\notes 
\context Staff = SA  { c1 c1 c1 c1 }
\context Lyrics = LB \lyrics { _1 _ _ _ }
\context Staff = SB  { c1 c1 c1 c1 }

\paper {
  \translator {
\StaffContext
% override the type of bar we see at staff context
whichBar = #empty %generates harmless warnings.
}
  \translator {
\LyricsVoiceContext
\consists #Bar_engraver
% BarLine gets confused about size if there's no staff
BarLine \override #'bar-size = #4.0
}
  }
}

___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: LilyPond 1.4.8: ly2dvi error

2001-10-09 Thread David Pirotte

Jan Nieuwenhuizen wrote:
...
 Well, scm_make_gsubr should be in guile-1.4.  Did you adjust your
 library load path to look for guile 1.4 first?  (Hint: see what ldd
 lilypond says.)

ahhhrch! yes, thanks.

so, for other users who would want to run several guile versions, it is
important to change both (below) in the shell where lilypond is called:

GUILE_LOAD_PATH
and LD_LIBRARY_PATH
--- 

for example, in my case:

export GUILE_LOAD_PATH=~/usr/guile-1.4/share
export LD_LIBRARY_PATH=~/usr/guile-1.4/lib:$LD_LIBRARY_PATH

which leads to:

david@faust:~/alto/projects/lilypond/tests 104 $ ldd /usr/local/bin/lilypond
libguile.so.9 = /usr/alto/staff/david/usr/guile-1.4/lib/libguile.so.9 
(0x40017000)
libstdc++-libc6.2-2.so.3 = /usr/lib/libstdc++-libc6.2-2.so.3 (0x40095000)
libm.so.6 = /lib/libm.so.6 (0x400de000)
libc.so.6 = /lib/libc.so.6 (0x400fd000)
libdl.so.2 = /lib/libdl.so.2 (0x4021a000)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x4000)

 
  \consists #Bar_engraver
 
 Also, did you added an extra # sign?  LilyPond wants a string here,
 not a SCM object.

ok, thought it wanted a scheme object

___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



page numbering

2001-10-09 Thread David Pirotte

anyone know how to ask page numbering to be centered in the footer?

thanks
david

___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: not too bad for a beginner ... but i need help

2001-10-09 Thread David Pirotte

Mats Bengtsson wrote:
 
   If you want the same layout as given by \f, you should use
   ((dynamic) e)m ((dynamic) ff), ((dynamic) ppp)
   and so on.
 
  yes, but the reason i wanted to define some is because i find that the
  default font-size for all dynamics is too big (matter of taste i guess)
 
 I guess you still want the same font, though?
 
  so, i can i globally ask to reduce dynamic font size?
 
 Of course:
 
 \score{
  ...
   \paper{
 ...
 \translator{
   \ScoreContext
   DynamicText \override #'font-relative-size = #-1
 }
   }
 }

;; --

well, i tried, but it does the work only for those inserted following the
'normal syntax':\p  \ppp ...

but in my case, i have

...
#(define ppp '((dynamic) ppp))
#(define p '((dynamic) p))
...
#(define 2ped '(italic 2 Péd.))
#(define 2ped2 `(lines ,ppp ,2ped))
...
b_#`,2ped2

in which case it does not 'listen' to the translator requests to reduce dynamic
font

;; --

also, if instead i try:

...
b_\ppp_#`,2ped

then it does not compute correctly position of elements

;; --

in lylipond 1.5.15, it was better positionning \decr, here it clashes with other
indications: can't it be automatic? do i have to 'manually' ask for \decr to be lower?
(and how)

thanks
david


\include paper16.ly

% shiftI = \property Voice.NoteColumn \override #'horizontal-shift = #0
% shiftII = \property Voice.NoteColumn \override #'horizontal-shift = #1
% shiftIII = \property Voice.NoteColumn \override #'horizontal-shift = #2
% shiftIV = \property Voice.NoteColumn \override #'horizontal-shift = #3
% shiftV = \property Voice.NoteColumn \override #'horizontal-shift = #4

#(define note '(columns
  ((font-relative-size . -1) (music noteheads-2 
((font-relative-size . -3) (kern . -0.1) flags-stem)
#(define eight-note `(columns ,note ((kern . -0.1)
  (music ((raise . 10.0) flags-u3)
#(define dotted-eight-note
  `(columns ,eight-note (music dots-dot)))

#(define text-flat '((font-relative-size . -2) (music accidentals--1)))
#(define title-instr `(pour Piano et 2 Cl. en Si ,text-flat))

#(define f '((bold italic) f))
#(define f3corde `(lines ,f \treCorde))
% #(define ppp '((dynamic) ppp))
% #(define p '((dynamic) p))
#(define ppp '((bold italic) ppp))
#(define p '((bold italic) p))

#(define 2ped-legend (*) UC + Péd. droite)
#(define 2ped '(italic 2 Péd.))
#(define 2ped1 `(lines ,ppp ,2ped (*)))
#(define 2ped2 `(lines ,ppp ,2ped))
#(define pup '(italic ---/))
#(define uc '(italic UC))
% #(define uc '\unaCorda)
#(define puc `(lines ,p ,uc))

#(define init `((lines lent: sans réelle pulsation,
 (columns simplement  ,note  $\\leq$ 42

% #(define init `((lines lent: sans réelle pulsation,
%   (columns simplement  ,note   ou = à 42

\header {
  title = Prélogique
  subtitle = à Leila Bouzalgha
  composer = David PIROTTE
  opus = Opus 1
  piece = ~
  poet = ~
  % instrument = `,title-instr
  instrument = pour Piano et 2 Cl. en Si \fetachar\fetaflat
  meter = ~
  arranger = ~
  % tagline = 
  footer = prélogique
}

\score {
  \notes 
\context Staff = Cl1 {
  \property Staff.instrument = #`(lines Cl. 1 (columns (Si ,text-flat )))
  % \property Score.timing = ##f
  % \property Staff.TimeSignature \override #'style = #'()
  \time 12/4
  \clef violin
  {r2. r2. r2 r1
   r2. r2. r2 r1
  }
}
\context Staff = Cl2 {
  \property Staff.instrument = #`(lines Cl. 2 (columns (Si ,text-flat )))
  % \property Score.timing = ##f
  % \property Staff.TimeSignature \override #'style = #'()
  \time 12/4
  \clef violin
  {r2. r2. r2 r1
   r2. r2. r2 r1
  }
}
\context PianoStaff \notes 
  \context Staff = up  
\property Staff.instrument = Piano 
% \property PianoStaff.instrument = Piano
% \property Score.timing = ##f
% \property Staff.TimeSignature \override #'style = #'()
\time 12/4
\clef violin
{r2.^#`,init r2. fis'2_#`,ppp ~ fis'1^\fermata
 r2. r2. r2 r1
}
  
  \context Staff = mid 
% \property Score.timing = ##f
% \property Staff.TimeSignature \override #'style = #'()
\time 12/4
\clef bass  
{ % s1 \break
  r2. r2. r2 r1
  r2. r2. r2 r1
 }
  
  \context Staff = down 
\time 12/4
% \property Score.timing = ##f
% \property Staff.TimeSignature \override #'style = #'()
\clef bass
\property Staff.clefOctavation = #-15
\property Staff.OctavateEight \set #'text = #15
\property Staff.centralCPosition = #13
% \property Staff.pedalSustainStrings = #'(- -P P)
\relative c,
{\stemDown 
 a?2. b_#`,2ped2 c ais \decr a?2. \rced b_#`,pup c ais a?2_#`,puc r1

 a?2. b_#`,2ped2 c ais \decr a?2. \rced b_#`,pup c ais \stemUp a?2_#`,f ~ 
a1^\fermata

lilypond-1.5.15

2001-10-07 Thread David Pirotte

Hello,

just for information, i installed lilypond-1.5.15, but it does not
compile my prelogique.ly (mentionned and sent in a previous mail)
and does not compile the example that i copy-paste from
http://lilypond.org/wiki/?LilyPondHacks

guile 1.7.0
(latest cvs version (Changelog modification date:  2001-09-30))

;; -- error message

david@faust:~/alto/projects/lilypond/tests 52 $ ly2dvi bars-1.ly
Running LilyPond...
GNU LilyPond 1.5.15
Now processing: `/usr/alto/projects/lilypond/tests/bars-1.ly'
Parsing...
/usr/alto/projects/lilypond/tests/bars-1.ly:12:20: error: parse error, expecting 
`SCM_T' or `SCM_IDENTIFIER':
whichBar = empty
  ; %generates harmless warnings.


/usr/alto/projects/lilypond/tests/bars-1.ly:2:6: warning: Braces don't match:
\score
   {
error: lilypond: command exited with value 256
Traceback (most recent call last):
  File /usr/local/bin/ly2dvi, line 787, in ?
run_lilypond (files, outbase, dep_prefix)
  File /usr/local/bin/ly2dvi, line 392, in run_lilypond
system ('lilypond %s %s ' % (opts, fs))
  File /usr/local/bin/ly2dvi, line 316, in system
error (msg)
  File /usr/local/bin/ly2dvi, line 214, in error
raise _ (Exiting ... )
Exiting ... 
david@faust:~/alto/projects/lilypond/tests 53 $ 


;; -- bars-1.ly

\score {
\notes 
\context Staff = SA  { c1 c1 c1 c1 }
\context Lyrics = LB \lyrics { _1 _ _ _ }
\context Staff = SB  { c1 c1 c1 c1 }

\paper {
  \translator {
\StaffContext
% override the type of bar we see at staff context
whichBar = empty; %generates harmless warnings.
}
  \translator {
\LyricsVoiceContext
\consists Bar_engraver;
% BarLine gets confused about size if there's no staff
BarLine \override #'bar-size = #4.0
}
  }
}

___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: lilypond-1.5.15

2001-10-07 Thread David Pirotte

Han-Wen Nienhuys wrote:
 
 try removing the semi-colons.

yes, i thought about it, here is 'another' error output:

david@faust:~/alto/projects/lilypond/tests 54 $ ly2dvi bars-1.ly
Running LilyPond...
GNU LilyPond 1.5.15
Now processing: `/usr/alto/projects/lilypond/tests/bars-1.ly'
Parsing...
/usr/alto/projects/lilypond/tests/bars-1.ly:12:20: error: parse error, expecting 
`SCM_T' or `SCM_IDENTIFIER':
whichBar = empty
   %generates harmless warnings.


/usr/alto/projects/lilypond/tests/bars-1.ly:2:6: warning: Braces don't match:
\score
   {
error: lilypond: command exited with value 256
Traceback (most recent call last):
  File /usr/local/bin/ly2dvi, line 787, in ?
run_lilypond (files, outbase, dep_prefix)
  File /usr/local/bin/ly2dvi, line 392, in run_lilypond
system ('lilypond %s %s ' % (opts, fs))
  File /usr/local/bin/ly2dvi, line 316, in system
error (msg)
  File /usr/local/bin/ly2dvi, line 214, in error
raise _ (Exiting ... )
Exiting ... 
david@faust:~/alto/projects/lilypond/tests 55 $ 


;; -- bars-1.ly content

\score {
\notes 
\context Staff = SA  { c1 c1 c1 c1 }
\context Lyrics = LB \lyrics { _1 _ _ _ }
\context Staff = SB  { c1 c1 c1 c1 }

\paper {
  \translator {
\StaffContext
% override the type of bar we see at staff context
whichBar = empty %generates harmless warnings.
}
  \translator {
\LyricsVoiceContext
\consists Bar_engraver
% BarLine gets confused about size if there's no staff
BarLine \override #'bar-size = #4.0
}
  }
}

___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



latest guile cvs gives me problems

2001-10-04 Thread David Pirotte

hello,

i just downloaded the latest guile cvs for guile-core and since can not use
lilypond anymore, here is the ly2dvi output

david

david@faust:~/alto/projects/lilypond/prelogique 19 $ ly2dvi prelogique.ly
Running LilyPond...
GNU LilyPond 1.5.14.jcn1
Now processing: `/usr/alto/projects/lilypond/prelogique/prelogique.ly'
Parsing...
Interpreting music...[3]
Preprocessing elements... 
Calculating column positions... 
paper output to `prelogique.tex'...
writing header field `title' to `prelogique.title'...
writing header field `subtitle' to `prelogique.subtitle'...
writing header field `footer' to `prelogique.footer'...
writing header field `composer' to `prelogique.composer'...
writing header field `arranger' to `prelogique.arranger'...
writing header field `instrument' to `prelogique.instrument'...
writing header field `opus' to `prelogique.opus'...
writing header field `piece' to `prelogique.piece'...
writing header field `meter' to `prelogique.meter'...
writing header field `poet' to `prelogique.poet'...
ERROR: In procedure gh_scm2int:
ERROR: Wrong type argument in position 1: 4.0
error: lilypond: command exited with value 512
Traceback (most recent call last):
  File /usr/local/bin/ly2dvi, line 787, in ?
run_lilypond (files, outbase, dep_prefix)
  File /usr/local/bin/ly2dvi, line 392, in run_lilypond
system ('lilypond %s %s ' % (opts, fs))
  File /usr/local/bin/ly2dvi, line 316, in system
error (msg)
  File /usr/local/bin/ly2dvi, line 214, in error
raise _ (Exiting ... )
Exiting ... 
david@faust:~/alto/projects/lilypond/prelogique 20 $

___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: lilypond-1.5.14 compilation problem

2001-10-01 Thread David Pirotte

Jan Nieuwenhuizen wrote:
 
 try this patch

I tried, but the content of the patch seems to have a little problem, could you
send me an attached patch file ?

Thanks
David

;; -- patch output

david@faust:~/ftp/lilypond-1.5.14 29 $ patch -E -p1  lilypond-1.5.14.jcn1.diff
patching file CHANGES
patching file Documentation/footer.html.in
patching file VERSION
patching file lily/include/lily-guile.hh
patching file lily/scm-hash.cc
Hunk #1 succeeded at 14 with fuzz 1.
Hunk #3 succeeded at 142 with fuzz 1.
patching file lily/translator.cc
patching file stepmake/bin/add-html-footer.py
patch unexpectedly ends in middle of line
Hunk #2 FAILED at 226.
1 out of 2 hunks FAILED -- saving rejects to file stepmake/bin/add-html-footer.py.rej
david@faust:~/ftp/lilypond-1.5.14 30 $

___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: lilypond-1.4.8 compilation problem

2001-10-01 Thread David Pirotte

Jan Nieuwenhuizen wrote:
 
 David Pirotte [EMAIL PROTECTED] writes:
 
  hello,
 
lilypond-1.4.8 compilation problem
SuSE 7.2
Linux 2.4.4
  checking for guile-config... guile-config
  checking Guile version... 1.7.0
 
 Lots of things have changed in GUILE since 1.4.  Han-Wen chose to
 backport a subset of guile-1.5 compatibility stuff to 1.4.8.  Doing
 everything is quite some work, so it's not very likely that lilypond
 1.4 will be made compatible with the latest guile snapshots.
 
 I'd advise you to install guile-1.4.

too bad: this is not possible because I need most up-to-date guile version
for other things i do

i'll compile install 1.5.14, it may help you to have a 'tester' (once i know
a bit more about lilypond off course)

thanks
david

___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



Re: make web-doc

2001-10-01 Thread David Pirotte

Mats Bengtsson wrote:
 
 http://www.s3.kth.se/~matsb/lilypond/lilypond.ps.gz
 (using Type1 fonts throughout the document!)

great! thanks

___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



clusters: note spacing problem and other things

2001-09-30 Thread David Pirotte

Hello

;; --

I am new user of lilypond. I am a composer, a young composer, and I hope that I
will be able to write my music with lilypond. But modern music is quite
demanding and so much more difficult to typeset then ancient music.

Is there any other composers of classical contemporary music
on this list?

I hope that lilypond developpers are also willing to make it a modern typesetter
alternative to commercial software (which are not good enough anyway). It would
be so nice!

So, please and in advance, pardon my requests: it will not be to point out
things that lilypond can not do, but just things I need to be able to do, hoping
that these requests will help others (or that people on the list can help me of
course). As a lilypond beginner, I obviously probably will ask stupid
question(s) to ...

;; --


   ly2dvi (GNU LilyPond) 1.5.13


So, here is a couple of little problems I encountered, very small example to
start with

1. the following compiles ok

\score {
  \notes 
\context Staff = Cl {
  \property Staff.instrument = Cl Sib
  \time 8/4 
  \clef violin
  {r2. r2.}
  }
\context Staff = staffB {
  \time 8/4
  \clef bass
  \relative a,
  {a2. a2. b2. c2. a2is a2. b2. c2. a2is}
  }

\paper {}
}

but does not produce the expected display results: even the r2. and
the a2. does not produce the result expected, (the dot is in the note,
and not after the note)

or is it my xdvi? (it seems i have xdvik, should i get another xdvi?

;; --

2. the following does not compiles

\score {
  \notes 
\context Staff = Cl {
  \property Staff.instrument = Cl Sib
  \time 8/4 
  \clef violin
  {r2. r2.}
  }
\context Staff = staffB {
  \time 8/4
  \clef bass
  \relative a,
 {a2. a2. b2. c2. a2is. a2. b2. c2. a2is.}
% a2is. instead of a2is
  }

\paper {}
}

clusters in general are not 'displayed' properly, note spacing problems. a strange
thing is that if I do not have

  {a2. a2. b2. c2. a2is. ...}
  but
  {a2. b2. c2. a2is. ...}

  then the cluster is really badly 'computed'

is there a special feature for clusters?

;; --

3. i wanted to call staff using numbers to, but is seems not possible:

\score {
  \notes 
\context Staff = Cl1 {
...
\context Staff = Cl2 {
...

does not compile: is it the expected behavior? can't we use numbers
in staff names

;; --

4. i would like to define a piano always with 3 staff, with clef as is:

   \violin
   \bass
   \bass -15 

   how can i define a clef twice octava bassa ? (the \bass clef with the number
   15 sligthly below and right)

;; --

thanks a lot for help and understanding
david

___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user



make web-doc

2001-09-28 Thread David Pirotte

Hello,

i could compile install lilypond-1.5.13 and it seems to work fine

however, i am a new user and need the doc to build, which does not

- can anyone help me with this problem?

or

- is there a lilywebdocsite.tar.gz somewhere I could download?

thanks,
david

david@faust:~/ftp/lilypond-1.5.13 59 $ make web-doc
make --no-builtin-rules out=www -C Documentation WWW
make[1]: Entering directory `/usr/alto/staff/david/ftp/lilypond-1.5.13/Documentation'
/usr/bin/python .././stepmake/bin/add-html-footer.py --index=../../ --name LilyPond 
--version 1.5.13
--header=../Documentation/header.html.in --footer ../Documentation/footer.html.in 
./out-www/index.html out-www/index.html
Traceback (most recent call last):
  File .././stepmake/bin/add-html-footer.py, line 253, in ?
do_file (f)
  File .././stepmake/bin/add-html-footer.py, line 237, in do_file
m = re.match ('.*?!-- (@[a-zA-Z0-9_-]*@)=(.*?) --', s, re.DOTALL)
  File /usr/lib/python2.0/sre.py, line 44, in match
return _compile(pattern, flags).match(string)
RuntimeError: maximum recursion limit exceeded
make[1]: *** [footify] Error 1
make[1]: Leaving directory `/usr/alto/staff/david/ftp/lilypond-1.5.13/Documentation'
make: *** [web-doc] Error 2
david@faust:~/ftp/lilypond-1.5.13 60 $

___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user