Re: Video generation, bash script, keeps sync in spite of tempo changes

2016-09-07 Thread Phil Hézaine

On 06/09/2016 14:22, Knut Petersen wrote:

Hi everybody!

I think some people might be interested in the files attached.

JSBI1.ly is a sample document (Bach Invention No. 1) that demonstrates
the syntax.
It includes some insane tempo changes and a bad layout to force pages
with a variable
number of systems. You'll see that despite of this video and audio keeps
synchronized.

videohelper.ily includes some code to generate a helper file during the
lilypond run.

mkvideo is a bash script that generates videos from the lilypond output,
following
instructions generated during the lilypond run. mkvideo use the
following tools

ls, sort, tail, uniq, grep, sed, bc, gs, pdftk, fluidsynth, sox, ffmpeg
and the
 /usr/share/sounds/sf2/FluidR3_GM.sf2 sound file.

Put the attached files into a seperate directory, don't forget "chmod
700 mkvideo",
and execute

lilypond JSBI1
   ./mkvideo

mkvideo is pretty fast (lilypond time here approximately 1.6 seconds, video
generation time less than 9 seconds on an i4790K system)

cu,
 Knut


Hi Knut,

It seems there are 2 errors in videohelper.ily, line 128 and 146:

GNU LilyPond 2.18.2
Traitement de « JSBI1.ly »
Analyse...
Interprétation en cours de la musique...[8][16]
Pré-traitement des éléments graphiques...
Détermination du nombre optimal de pages...
Répartition de la musique sur une page...
Dessin des systèmes...
Sortie mise en page vers « JSBI1.ps »...
Conversion à « ./JSBI1.pdf »...
videohelper.ily:146:2: Erreur : GUILE a signalé une erreur pour 
l'expression débutant ici

#
 (format out "~a~a~a" "LILYSOURCE=" (ly:parser-output-name) ".ly\n")
Wrong number of arguments to #
Interprétation en cours de la musique...[8][16]
Pré-traitement des éléments graphiques...
Détermination du nombre optimal de pages...
Répartition de la musique sur 7 à 8 pages...
Dessin des systèmes...videohelper.ily:128:20: In expression (grob::when 
(car m)):

videohelper.ily:128:20: Unbound variable: grob::when

Phil.




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


Re: understanding midi files

2014-01-27 Thread Phil Hézaine

Le 26/01/2014 22:32, k...@aspodata.se a écrit :

  I'm experimenting with midi file to lilypond conversion since
midi2ly creates files that are hard to read for me, and thus makeing
it hard to use its output. Yes I can write a program to tidy up its
output, and I did so, but looking at the dump of a midi file with
this simple program:

/// midi.pl:
#!/usr/bin/perl -w

use strict;
use MIDI;

sub proc_file($);
my $file;
foreach $file (@ARGV) {
 proc_file($file);
}


sub proc_file($) {
 my $file = shift;

 my $opus = MIDI::Opus-new({ 'from_file' = $file });
 $opus-dump({ dump_tracks = 1 });
}
///

I started to experimenting extracting e.g. header data etc. in
the program:

  http://turkos.aspodata.se/git/musik/bin/miditoly.pl

(Which is work in progress.)

Looking at midi files created with NoteWorthy Composer, e.g.:

  http://www.cipoo.net/downloads/midi/LottiAminAgnus.mid

it should be possible to create a good readable .ly files.
Dumping this midi file with midi.pl, it easy to identify
what goes where.

If you can create example files (midi and pdf) created from
notesetting programs, perhaps we can identify heuristics for a
nice conversion to ly-code.

Idéas and suggested conventions for the generated code are also
welcome.

Regards,
/Karl Hammar


Hi,

Perhaps you don't know midicomp.
Here the latest version:
https://github.com/markc/midicomp

It gives you all information on a midifile.
As you know Perl there is a tiny exemple to use it with midicomp in the 
README.

Perhaps it's worth to try a nice conversion to ly-code.
HTH.
Phil.

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


Re: why you don't contribute to Mutopia

2014-01-04 Thread Phil Hézaine

Le 04/01/2014 13:27, Federico Bruni a écrit :

2014/1/2 Phil Hézaine philippe.heza...@free.fr


2. Licenses

Currently Mutopia accepts only transcriptions licensed as public domain,
CC
By, CC By-Sa:
http://www.mutopiaproject.org/legal.html

I don't know what led to this decision, but I can imagine that at least CC
By-Sa-Nc would be preferred by some.



And what about Free Art License which is recommended by the Free Software
Foundation. IMHO it's really a Free license.



I don't know if it adds much to what the licenses above provide.
Simplification is a good principle...


Art Libre a fait le choix du libre; Creative Commons a fait celui du 
libre choix.


The structure of Art Libre is Copyleft.
One big difference is the acknowledgement of the Berne's Convention.
The Free Art License is effective in all the countries which signed up 
these agreement.

So far it is not the case for CC License (I don't know for CC 4.0).

There are also discussions about a compatibility between CC and FAL (or 
LAL = Licence Art Libre).


http://wiki.creativecommons.org/4.0/Compatibility

 Potential compatible licenses
FAL

In CC's view, FAL 1.3 is a strong candidate for two-way compatibility 
with BY-SA 4.0. Discussions are currently underway that we hope will 
allow remixing between two similarly-spirited but currently separate 
islands of content. We are working through details of what adjustments 
may need to be made in order to accomplish this goal. We will be vetting 
those fully with our communities between now and d3 (draft3). It is 
possible that some tweaks may needed to be made to our licenses to make 
that happen, affecting current drafting. In terms of operationalizing 
such a statement on the CC side either through a reference in the 
license itself or inclusion on our existing (empty) webpage [link], this 
is an open question that will be addressed once more progress is made. 
For now, d2 contains the same compatibility language as 3.0 and 
maintains the definition of Creative Commons Compatible License and 
structure.


Cheers.
Phil.

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


Re: why you don't contribute to Mutopia

2014-01-02 Thread Phil Hézaine

Le 01/01/2014 19:01, Federico Bruni a écrit :

Dear Lilyponders

some recent posts in this list made me think about the weaknesses of
Mutopia and why people who may contribute to it are not doing so.
I'd like to have some feedback from you. Which change in the Mutopia
interface/decisions would make you start contributing or contributing more?

I can see these big problems:


 [snip...]



2. Licenses
Currently Mutopia accepts only transcriptions licensed as public domain, CC
By, CC By-Sa:
http://www.mutopiaproject.org/legal.html

I don't know what led to this decision, but I can imagine that at least CC
By-Sa-Nc would be preferred by some.


And what about Free Art License which is recommended by the Free 
Software Foundation. IMHO it's really a Free license.


Seems like IMSLP has the same problem with this license!
 It's impossible to tell you what kind of problems are relevant, it's 
totally esoteric from IMSLP.

I don't understand the arguments against this choice, if they exists.


Thanks for the feedback.
Federico



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


Re: Multi column page setup

2013-04-04 Thread Phil Hézaine

Le 04/04/2013 15:25, Urs Liska a écrit :

If you don't find a lilypond-wise solution (which I'm afraid) yo'll probably 
have to define a 1/16th paper size with suitably small margins and use an 
external tool (suggestions depending on your OS and output format) to arrange 
them on the full paper.

HTH
Urs



Hanns Holger Rutz cont...@sciss.de schrieb:


hello,

how can I set up lilypond to use a multiple column page layout. I have
very short independent scores, and I would like to arrange them in four
example four columns next to each other. It doesn't matter whether the
grid goes left-to-right then top-to-bottom or the other way round.

thanks, ..h.h..


Hi,
I don't know if it helps but I have found the ly file attached in my 
archives. Don't know the author.

Phil.


\version 2.14.0
%\version 2.15.1

\pointAndClickOff

#(set-global-staff-size 24)

% This creates a simple grid of single measure/two staff scores (mini scores). The 'mini scores' are used within a
% \markup construct. Then by creating an 'invisible system' as a 'frame' and attaching these 'mini scores' as
% \markups to notes within the 'invisible system' it is possible to create the grid effect.
% The single 'mini score' on its own in the first line is just to show one on its own.
% By adjusting the global-staff-size and the X offset of the mini-score contruction (below) it is possible to create more or less mini-scores per line.

\paper {
  % Indent of 0\mm required to make first markup align with the measure below as without it
  % the first measure of the invisible score is indented and throws off the alignment of the first
  % mini score
  indent = 0\mm
  % This just spaces out the 'grid' evenly, top-to-bottom
  ragged-last-bottom = ##f
  % uncomment this line to remove the default LilyPond tag at the bottom of the page
  % tagline = #ff
}

  % 'musicall' is the name of the 'invisible score + \markups of the 'mini scores'' used in the final \score
  % construct at the end of the file
musicall = {

  % \textlengthOn is required to keep the horizontal spacing consistent else the 'mini scores' will collide
  % or touch each other.
  \textLengthOn

  % Each measure in the invisible score that the \markup is attached to is a semi-breve
  % the tweak moves the mini score, to the left - adjust as necessary. #-10 seems about right
  % for this page and staffsize.
  c1-\tweak #'X-offset #-10 ^\markup {

  % This is the construct of the 'mini score'. In this specific case the time-signature was not needed
  % so the \override in the mini score removes the timesignature.
\score {

  \new Staff \relative c' {  \override Staff.TimeSignature #'stencil = ##f \clef treble c4 d e f }
  \new Staff \relative c' {  \override Staff.TimeSignature #'stencil = ##f \clef bass c4 d e f }


  % The \layout { } is required. Do not remove it.
\layout { }
  }
}

% The manual \break just forces the number of mini scores that are horizontally spaced
% This can be placed as required and with a combination of the \tweak above, the staffsize you can create
% different sized grids of mini scores.
  \break

% The following are just a repeat of the above but with a \repeat unfold 4 + break to just show how to quickly
% create a number of mini scores...

\repeat unfold 4 { 
  c1-\tweak #'X-offset #-10 ^\markup {
\score {
  
\new Staff \relative c' { \override Staff.TimeSignature #'stencil = ##f \clef treble c4 d e f }
\new Staff \relative c' { \override Staff.TimeSignature #'stencil = ##f \clef bass c4 d e f }
  
\layout { }
}
  }
} \break

\repeat unfold 4 { 
  c1-\tweak #'X-offset #-10 ^\markup {
\score {
  
\new Staff \relative c' { \override Staff.TimeSignature #'stencil = ##f \clef treble c4 d e f }
\new Staff \relative c' { \override Staff.TimeSignature #'stencil = ##f \clef bass c4 d e f }
  
\layout { }
}
  }
} \break

\repeat unfold 4 { 
  c1-\tweak #'X-offset #-10 ^\markup {
\score {
  
\new Staff \relative c' { \override Staff.TimeSignature #'stencil = ##f \clef treble c4 d e f }
\new Staff \relative c' { \override Staff.TimeSignature #'stencil = ##f \clef bass c4 d e f }
  
\layout { }
}
  }
} \break

\repeat unfold 4 { 
  c1-\tweak #'X-offset #-10 ^\markup {
\score {
  
\new Staff \relative c' { \override Staff.TimeSignature #'stencil = ##f \clef treble c4 d e f }
\new Staff \relative c' { \override Staff.TimeSignature #'stencil = ##f \clef bass c4 d e f }
  
\layout { }
}
  }
} \break


\repeat unfold 4 { 
  c1-\tweak #'X-offset #-10 ^\markup {
\score {
  
\new Staff \relative c' { \override Staff.TimeSignature #'stencil = ##f \clef treble c4 d e f }
\new Staff \relative c' { \override Staff.TimeSignature #'stencil = ##f \clef bass c4 d e f }
  
\layout { }
}
  }
} \break

\repeat unfold 4 { 
  c1-\tweak #'X-offset #-10 ^\markup {
\score {
  

Re: extending event-listener.ly

2013-03-29 Thread Phil Hézaine

Hi list,

A patch about event-listener.ly was send to:

https://codereview.appspot.com/8165043/

Phil.

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


Re: extending event-listener.ly

2013-03-28 Thread Phil Hézaine

Le 28/03/2013 15:00, Janek Warchoł a écrit :

On Thu, Mar 28, 2013 at 2:46 PM, luis jure l...@internet.com.uy wrote:

BTW, is phil's patch going be merged into lilypond's event-listener?


It can be.  Phil, please make a git-formatted patch and send a request
for merging it to bug-lilypond mailing list.  If you need help with
this, let us know.


Hi,
Yes, I need help. I don't know how to write a patch git-formatted.
But before, I think you should ask Graham if my additions are well 
written, I want to say: are there some improvements needed?

And what about the conversion of drum notes to midi pitches?
I'm not able to find a way to write a specific function for that issue.
Graham? Have you some time?

Phil.

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


Re: extending event-listener.ly

2013-03-28 Thread Phil Hézaine

Le 28/03/2013 21:44, Janek Warchoł a écrit :

Hi Phil,

On Thu, Mar 28, 2013 at 8:09 PM, Phil Hézaine philippe.heza...@free.fr wrote:

Le 28/03/2013 15:00, Janek Warchoł a écrit :

Phil, please make a git-formatted patch and send a request
for merging it to bug-lilypond mailing list.  If you need help with
this, let us know.


Hi,
Yes, I need help. I don't know how to write a patch git-formatted.


ok.  A few questions:
- what operating system do you use? (in particular, do you have some
Linux at hand?)


Linux with Gentoo.


- do you have any experience with version control?


I've no idea.


- how comfortable are you with the command line?


I get by.


But before, I think you should ask Graham if my additions are well written,
I want to say: are there some improvements needed?
And what about the conversion of drum notes to midi pitches?
I'm not able to find a way to write a specific function for that issue.


We'll put your patch up for review, and then everybody will have the
opportunity to comment on it.

cheers,
Janek


Phil.


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


Re: extending event-listener.ly

2013-03-28 Thread Phil Hézaine

Le 28/03/2013 23:36, luis jure a écrit :


on 2013-03-28 at 20:09 Phil Hézaine wrote:


And what about the conversion of drum notes to midi pitches?


mmm... i wonder if that's strictly necessary? once you get the correct
text output, as you do now, it's trivial to convert the drum notes names to
pitches with whatever program you're using to process it.


Indeed. But Lilypond knows how to do this internally. If you look at the 
sources you'll see the midiDrumPitches in drumpitch-init.ly

It will be straightforward.


on the other hand...


I want to say: are there some improvements needed?


well, this is not related to your patch, but since you're at it... ;-)

i realized that the format-text function can only process simple text
scripts, but returns an error message when using a markup.

c^accel. is OK, but:

c^\markup{ accel. } or c^\markup{ \italic { accel. }}

return errors:

Unsupported SCM value for format: (#procedure line-markup (layout props
args) (accel.))

Unsupported SCM value for format: (#procedure line-markup (layout props
args) ((#procedure italic-markup (layout props arg) accel.)))

in both cases the .notes file has an empty text line where the markups
were used.

looking at the code i see that the format-text function is very basic, i
guess it wouldn't be trivial to adapt it to handle markups?



Not for me!... err... to handle... :-)


best,

lj


Phil.


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


Re: extending event-listener.ly

2013-03-27 Thread Phil Hézaine

Le 27/03/2013 00:04, Graham Percival a écrit :

On Tue, Mar 26, 2013 at 08:12:42PM +0100, Phil Hézaine wrote:

for NoteEvent:

#(define (format-note engraver event)
(let* ((origin (ly:input-file-line-char-column
(ly:event-property event 'origin
  (print-line engraver
  note
  ;; get a MIDI pitch value.
  ;(+ 60 (ly:pitch-semitones
 (ly:event-property event 'drum-type) ;))


It would be nice if this was abstracted into a separate function:
   (get-pitch-or-drum
which would pick which type of output to produce.  Then I think we
could accept a patch to this effect without much fuss.


  ;; point and click info
  ;(ly:format point-and-click ~a ~a
  ;   (caddr origin)
  ;   (cadr origin))


I'm quite curious about this -- do drum events not have
point-and-click info?

- Graham


Hi,
Because it's MY OWN  PERSONAL  SELFISH LISTENER! :-) :-) :-)
Seriously, I join a modified event-listener.
I have pointed out the additions.
However no success about MIDI pitch values.
It will be awesome to have that.
Cheers.

@ Luis

i must be missing something, though, because i get output only if use
\drummode inside a regular Staff or a RhythmicStaff, but no output when
using a DrumStaff. any ideas why? the output of \displayMusic is the same
in all cases.


In MY OWN  PERSONAL...etc... I have added a context for a DrumVoice 
which was absent.

That's the tip.
I join -display.ly. I hope it helps you to play with the 
event-listener.

Phil.


i'm also getting a series of warnings (4) of the form:

Unsupported SCM value for format: ()

perhaps i misunderstood how to insert your code in the event-listener.ly
file?


Cheers.


 This file is part of LilyPond, the GNU music typesetter.

 Copyright (C) 2011--2012 Graham Percival gra...@percival-music.ca

 LilyPond is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 LilyPond is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with LilyPond.  If not, see http://www.gnu.org/licenses/.
%
%
%
% This file is used for Vivi, the Virtual Violinist:
%   http://percival-music.ca/vivi.html
% but it may be helpful to other researchers, either with the same
% output, or as a basis for other work in extracting music events
% from lilypond.
%
% Output format is tab-separated lines, like this:
%0.	note	57	0.2500	point-and-click 2 38
%0.	dynamic	f
%0.2500	note	62	0.2500	point-and-click 7 38
%0.5000	note	66	0.1250	point-and-click 9 38
%0.5000	script	staccato



\version 2.16.0

 Helper functions

#(define (filename-from-staffname context)
   Constructs a filename in the form
@file{@var{original_filename}-@var{staff_instrument_name}.notes} if the
staff has an instrument name.  If the staff has no instrument
name, it uses unnamed-staff for that part of the filename.
   (let* ((inst-name (ly:context-property context 'instrumentName)))
 (string-concatenate (list
  (substring (object-string (command-line))
   ;; filename without .ly part
   (+ (string-rindex (object-string (command-line)) #\sp) 2)
   (- (string-length (object-string (command-line))) 5))
  -
  (if (string? inst-name)
  inst-name
unnamed-staff)
  .notes

#(define (format-moment moment)
   (exact-inexact
(/ (ly:moment-main-numerator moment)
   (ly:moment-main-denominator moment

#(define (moment-grace-string moment)
   Prints a moment without grace note(s) as a float such as
0.25000.  Grace notes are written with the grace duration as a
separate \dashed\ number, i.e. 0.25000-0.12500.  This allows any
program using the output of this function to interpret grace notes
however they want (half duration, quarter duration?  before beat,
after beat?  etc.).
   (if
   (eq? 0 (ly:moment-grace-numerator moment))
   (ly:format ~a (format-moment moment))
   ;; grace notes have a negative numerator, so no - necessary
   (ly:format
 ~a~a
 (format-moment moment)
 (format-moment
   (ly:make-moment
(ly:moment-grace-numerator moment)
(ly:moment-grace-denominator moment))

#(define (make-output-string

Re: extending event-listener.ly

2013-03-26 Thread Phil Hézaine

Le 26/03/2013 02:29, Graham Percival a écrit :

On Mon, Mar 25, 2013 at 10:05:28PM +0100, Phil Hézaine wrote:

Le 25/03/2013 17:29, Graham Percival a écrit :

To add \parenthesize, you need to create a similar function or
extend that original one to deal with those events.  To see the
events, try:

\displayMusic { c'4 \parenthesize d' e }


Today, after the same discovery I was wondering the same question
than Luis but for drum-types (in \drummode, ie: sna, wbl... )
N.R. says: Not all lilypond music events are supported by
‘event-listener.ly’.
Is it possible to 'listen' the drums symbols?


I think the above hint should suffice.

- Graham


You're right. Though it was not evident at starting it was not so 
difficult to solve the problem. Thanks for your clarification.

I paste for Luis and others my solution.

for NoteEvent:

#(define (format-note engraver event)
   (let* ((origin (ly:input-file-line-char-column
   (ly:event-property event 'origin
 (print-line engraver
 note
 ;; get a MIDI pitch value.
 ;(+ 60 (ly:pitch-semitones
(ly:event-property event 'drum-type) ;))
 (ly:duration-string
  (ly:event-property event 'duration))
 (format-moment (ly:duration-length
 (ly:event-property event 'duration)))
 ;; point and click info
 ;(ly:format point-and-click ~a ~a
 ;   (caddr origin)
 ;   (cadr origin))
)))

For EventChord:

#(define (format-note engraver event-chord)
   (let* ((origin (ly:input-file-line-char-column
   (ly:event-property event-chord 'origin
 (print-line engraver
 note
 ;; get a MIDI pitch value.
 ;(+ 60 (ly:pitch-semitones
(ly:event-property event-chord 'drum-type) ;))
 (ly:duration-string
  (ly:event-property event-chord 'duration))
 (format-moment (ly:duration-length
 (ly:event-property event-chord 
'duration)))

 ;; point and click info
 ;(ly:format point-and-click ~a ~a
 ;   (caddr origin)
 ;   (cadr origin))
)))

then far below in the file:

#(define (format-dynamic engraver event-chord)
   (print-line engraver
   dynamic
   (ly:event-property event-chord 'text)
   ))

and finally at the bottom:
   (dynamic-event-chord . format-dynamic)


All is working, however I have an issue with the *non-orthodox* syntax I 
used for Le Puzzle du Batteur - The Drummer's 'G'igsaw.

example: bd_\ff toml_\p2
With 2.12 and 2.14 all was right. The dynamics inside a chord was 
recognized. At present time lilypond doesn't make a difference beetween 
the first and the second dynamics.

I checked out the midi with midicomp.
I have tried a ugly workaround which gives a uglier layout:
   bd2_\ff toml_\p
Lilypond says:
Avertissement : Deux événements absolute-dynamic simultanés, rejet de 
celui-ci

bd2_\ff toml
  _\p sna2_\p |
Avertissement : Événement absolute-dynamic précédent ici
bd2
 _\ff toml_\p sna2_\p |

But with the event-listener I get:
0.  notebassdrum2   0.5000
0.  dynamic ff
0.  notelowtom  2   0.5000
0.  dynamic p

Very interesting for me because the 'G'igsaw is sadly dead.
Is there a proper solution with these *non-orthodox* syntaxs apart from 
the event-listener?


Phil.

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


Re: extending event-listener.ly

2013-03-25 Thread Phil Hézaine

Le 25/03/2013 17:29, Graham Percival a écrit :

On Mon, Mar 25, 2013 at 08:58:09AM -0300, luis jure wrote:

i looked at event-listener.ly, but i'm afraid it's way over my head. i can
hardly manage some basic python, for me scheme is undecipherable.

could anyone give me a hint how to modify event-listener.ly to recognize
parenthesized notes?


Unfortunately you'll need some scheme knowledge, but if you can
get the general idea of the below function then you should be
fine:

#(define (format-note engraver event)
(let* ((origin (ly:input-file-line-char-column
(ly:event-property event 'origin
  (print-line engraver
  note
  ;; get a MIDI pitch value.
  (+ 60 (ly:pitch-semitones
 (ly:event-property event 'pitch)))
  (ly:duration-string
   (ly:event-property event 'duration))
  (format-moment (ly:duration-length
  (ly:event-property event
'duration)))
  ;; point and click info
  (ly:format point-and-click ~a ~a
 (caddr origin)
 (cadr origin)

The important bit is the (print-line ...) function.  It has a
number of arguments:
   - engraver
   - note
   - a MIDI pitch value
   - a duration (like 4.)
   - a duration (like 1.25)
   - point-and-click info

To add \parenthesize, you need to create a similar function or
extend that original one to deal with those events.  To see the
events, try:

\displayMusic { c'4 \parenthesize d' e }

oh, it looks like \parenthesize is an option to a note, rather
than a separate event:
...
 (make-music
   'NoteEvent
   'parenthesize
   #t
   'duration
   (ly:make-duration 2 0 1)
   'pitch
   (ly:make-pitch 0 1 0))
...


In that case, you need to add another argument to the
(print-line...) function to indicate whether the note is
parenthesized or not.  That requires a bunch more scheme, but this
should be enough hints for you to start reading the lilypond
scheme tutorial and the Extending manual.

A simple binary field would be enough for your personal use, but
it would be nice to have a more general approach in case people
want to add more options for notes.  Don't worry about this
general approach (required for accepted patches into mainstream
lilypond) right now; first just get the basics working for your
particular purpose.

- Graham



Hi,
Today, after the same discovery I was wondering the same question than 
Luis but for drum-types (in \drummode, ie: sna, wbl... )
N.R. says: Not all lilypond music events are supported by 
‘event-listener.ly’.

Is it possible to 'listen' the drums symbols?
Any hints will be appreciated.
Phil.

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


Re: ANN: Frescobaldi 2.0.7

2012-08-19 Thread Phil Hézaine

Le 18/08/2012 21:43, Wilbert Berendsen a écrit :

Op Fri, 17 Aug 2012 22:10:05 +0200
Phil Hézainephilippe.heza...@free.fr  schreef:


  m = textedit_match(link.url())
TypeError: expected string or buffer


this occurs when SIP, PyQt4 and Python-Poppler-Qt4 do not match.
be sure there is only one version of either, and that is compiled with
the correct SIP and PyQt4 libraries.


Indeed, python-poppler-qt4 was installed in /usr/local and there was 
recently an upgrade for PyQt4 on Gentoo.
I have reinstalled python-poppler-qt4 in /usr, so the next time 
revdep-rebuild will tell me to reinstall python-poppler-qt4.

I hope it will never happens again. Now all is OK, as usual.
Thanks for your great work, and sorry for the noise.
Frescobaldi's a must.
Cheers.
Phil.

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


Re: ANN: Frescobaldi 2.0.7

2012-08-17 Thread Phil Hézaine

Le 16/08/2012 23:12, Wilbert Berendsen a écrit :

Hi all,

it has been a long time, but Frescobaldi 2.0.7 is there. Main new stuff
is the beautiful kinetic scrolling in the music view, contributed by
Richard Cognot. With many thanks for that!

All changes:
* Translations:
   - updated: nl, cs, it, fr, es
* New features:
   - command to show music view maximized, useful on small screens
   - kinetic scrolling in the music view, making the movements easier on
 the eyes, contributed by Richard Cognot
   - music view scrollbars can be hidden via preferences-tools-music
 view
* Improvements:
   - status of Always Engrave is saved in session (wish #76)
   - the 'View' -  'Music View' submenu is now a top-level menu 'Music'
* Bugfixes:
   - fix NameError: global name 'X_OK' is not defined when a helper
 application has an absolute path
   - fix python exception when helper app does not exist, now a regular
 message is shown

Enjoy!


Hi,

I have an issue:

Traceback (most recent call last):
  File 
/usr/lib64/python2.7/site-packages/frescobaldi_app/musicview/widget.py, line 
112, in openDocument

self._links = pointandclick.links(document)
  File 
/usr/lib64/python2.7/site-packages/frescobaldi_app/musicview/pointandclick.py, 
line 75, in links

l = _cache[document] = Links(document)
  File 
/usr/lib64/python2.7/site-packages/frescobaldi_app/musicview/pointandclick.py, 
line 95, in __init__

m = textedit_match(link.url())
TypeError: expected string or buffer

Phil.

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


Re: [ANN] Schumann - Album for the Young. Version 1. (in French or German)

2012-05-10 Thread Phil Hézaine

Le 09/05/2012 19:44, Phil Hézaine a écrit :

Hi all,

This publication comes in 2 forms:

a version with FINGERING

a version without FINGERING

so the pianists, whichever they are students or professors, will use it
at their convenience, at least let's hope so.

You should also be noted that this publication is currently available
(09/May/2012) in 2 languages:

in French

in German

A complete edition in another language can be easily seen if you know
translate yourself the French or German language. If you are interested
or want to learn more, write me. I'll address you then a list already
easy to translate expressions.

The Album for the Youth of Robert Schumann is published under the terms
of the free Art license, see:

http://www.artlibre.org/licence/lal/ (fr, en, de, es, pt, it)


The Lilypond source + midi into the pdfs are in tar.bz2 format. Problems
with unpacking of this format (on Windows or Mac), you will find them in
zip format on the site.

Download at the following address:

http://superbonus.project.free.fr/spip.php?article50

Be happy.
Phil.


Hi,

An UPDATE of the German translation written in an updated spelling is 
available. (Thanks to Rainer Henkel)


By the way I forgot to disable the point-and-click option when 
compiling. Now all pdfs are really, really lighter (around ten times 
more). Please, update.

Phil.

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


[ANN] Schumann - Album for the Young. Version 1. (in French or German)

2012-05-09 Thread Phil Hézaine

Hi all,

This publication comes in 2 forms:

 a version with FINGERING

 a version without FINGERING

so the pianists, whichever they are students or professors, will use it 
at their convenience, at least let's hope so.


You should also be noted that this publication is currently available 
(09/May/2012) in 2 languages:


   in French

   in German

A complete edition in another language can be easily seen if you know 
translate yourself the French or German language. If you are interested 
or want to learn more, write me. I'll address you then a list already 
easy to translate expressions.


The Album for the Youth of Robert Schumann is published under the terms 
of the free Art license, see:


http://www.artlibre.org/licence/lal/ (fr, en, de, es, pt, it)


The Lilypond source + midi into the pdfs are in tar.bz2 format. Problems 
with unpacking of this format (on Windows or Mac), you will find them in 
zip format on the site.


Download at the following address:

http://superbonus.project.free.fr/spip.php?article50

Be happy.
Phil.

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


Re: LSR updates: was: polychords: a working solution

2012-02-25 Thread Phil Hézaine

Le 25/02/2012 15:54, David Nalesnik a écrit :



Thanks for trying this out, but I believe you're running the version with
the dummy Scheme lines I added.  (I just tried it with 2.15.22 in its
original form, and it doesn't work.)

-David


Oh! You're right. I got all muddled up! Apologies for wasting your time.
I simply wanted to say *your* file is compiling fine with 2.15.22
Phil.

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


Re: LSR updates: was: polychords: a working solution

2012-02-24 Thread Phil Hézaine

Le 24/02/2012 05:54, David Nalesnik a écrit :

Hi,

On Thu, Feb 23, 2012 at 9:27 PM, David Kastrupd...@gnu.org  wrote:



I think it was something like \lyricsto xxx \music \musicfunction
... and it would likely already do to write \lyricsto xxx { \music }
\musicfunction ...



I wasn't able to apply this to the snippet, but I managed to make the
snippet compile with 2.14.2 by adding a #(newline) within each \score block
(see attached).

-David


If it could help, compile fine here on 2.15.22 with the number version 
added.



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


Re: ANN: Frescobaldi 1.9.5, last beta before 2.0.0

2011-12-22 Thread Phil Hézaine

Le 22/12/2011 00:44, Wilbert Berendsen a écrit :

Op Tue, 20 Dec 2011 23:40:15 +0100
Phil Hézainephilippe.heza...@free.fr  schreef:


I have to install an overlay + this java
thing I don't like very much.


PortMidi itself is a small c library which should not require java.
There is some frontend tool in java but it's absolutely not needed :)



You're right. I finally installed the sunrise overlay and compiled 
portmidi-217 without java!!!. It required one dependency. cython-0.14.1

that's all. Thanks Gentoo.
Nevertheless there is a drawback.
Above all I have to launch timidity in a terminal:
  timidity -iA

Then there are 2 ways for using the midi,
1. with Alsa in standalone.

== Requested buffer size 32768, fragment size 8192
ALSA pcm 'default' set buffer size 32768, period size 16384 bytes
TiMidity starting in ALSA server mode
Opening sequencer port: 128:0 128:1 128:2 128:3

I go to the Preferences = Reglages MIDI and refresh the midi ports.
Then I select TiMidity port 0 and all is OK. Hmm... Nearly. Sometimes 
two or three notes are jerky, not all the time but more than 7 out of 10 
tries with different midifiles it happens. By default I never have an 
issue with Alsa and I run a realtime kernel. For me portmidi is the 
culprit.


2. with Jack (qjackctl)

I launch qjackctl

== jack_client_new: deprecated
jack_client_new: deprecated
TiMidity starting in ALSA server mode
Opening sequencer port: 130:0 130:1 130:2 130:3

as you see the midi port has changed. Again I refresh the midi ports in 
Frescobaldi and I must select again  TiMidity port 0 in the rolling list 
because for old times' sake I guess portmidi keep in memory the old 
port (128) not the new (130). This time the streaming is correct.


If for one reason the midi port has changed in 1. or 2. you have to 
reset the Preferences.


I don't want you spend an awful Christmas, surely not, I'm not the only 
one who appreciates your work very much. Rather consider it like a kind 
of bug report about the choice of portmidi, at least on Linux.
i'm annoyed with myself for doing such a report when Christmas is not 
too distant future. :)


Regards.
Phil.

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


Re: ANN: Frescobaldi 1.9.5, last beta before 2.0.0

2011-12-20 Thread Phil Hézaine

Le 20/12/2011 11:15, Wilbert Berendsen a écrit :

Hi all,

Frescobaldi 1.9.5 has been released


 [...]


Download:
https://github.com/downloads/wbsoft/frescobaldi/frescobaldi-1.9.5.tar.gz

Please test and enjoy; if no big bugs will be found, this will become
2.0.0 on December 26th, 2011.



Hi,

So far no problems.
Installed on Gentoo with Python 2.7,
in /usr/local with python-poppler-qt4-0.16.2
I haven't tried the MIDI yet. I'm really unwilling about portmidi which 
is not in the tree of Portage. I have to install an overlay + this java 
thing I don't like very much. Is there a hope of using Timidity 
straightforward?

Never mind about that , the midifile is always compiled in any case.
Many thanks for your work. It's beautiful and very useful.
Ah, and the point-on-click... Brilliant.

Thanks again and merry Christmas.
Phil.

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


Re: Search fir notes

2011-12-15 Thread Phil Hézaine

Le 15/12/2011 17:17, Helge Kruse a écrit :

Hello,

I already ask for the notes of a piece. I hope it is not too annoying asking 
once again. I promise I will stop with that off-topic questions.

I would like to look into the score or harp part of Antonio Vivaldi's Concerto en 
Ré Majeur RV 93 (http://www.youtube.com/watch?v=gaoWA7iroxA). I used Google and 
also tried to adopt Nick's query from my last search. Unfortunately I could not find it.

The piece is not available in the local library. Can you help me?

Please tell me, if such questions are inappropriate.


Regards,
Helge



Hi,

On imslp, for guitar or lute, nearly the harp part:

http://imslp.org/wiki/Lute_Concerto_in_D_major,_RV_93_%28Vivaldi,_Antonio%29

Phil.


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


Re: OT: Karaoke tracks?

2011-11-22 Thread Phil Hézaine

Le 22/11/2011 15:21, m...@apollinemike.com a écrit :

On Nov 22, 2011, at 1:44 PM, Henning Hraban Ramm wrote:


Hello Lilyponderers,

I engraved the notes for a songbook, using LilyPond of course.
Now the publisher wants to create an App with some (about 30) of the songs and 
needs karakoke files (MP3+G or CDG).

As far as I researched, there are only a few specialized applications that can 
create such. I'm not willing to invest the time and money for a one-time 
project.

So I'm looking for a contractor. (What would you charge?)
Input are my one-verse MIDIs (or LilyPond sources) and the complete lyrics from 
the book PDF (German folk/socialist songs).




Henning,

While I cannot take this job, the idea of singing Karaoke to German folk music 
interests me greatly.  Please keep us posted as to the final result  where one 
can get the songs!

Cheers,
MS


Hi,
Perhaps this GPL software will be very useful:

  http://www.karlyriceditor.com

Phil.





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


Le Puzzle du Batteur - The Drummer's 'G'igsaw: UPDATE

2011-07-24 Thread Phil Hézaine
Hi list,

An update for compatibility with Lilypond 2.14 is available

http://superbonus.project.free.fr/spip.php?article44


Le Puzzle du Batteur - The Drummer's 'G'igsaw

   *

Polymetric editor for Drums and Percussions based on Lilypond + GUI for
randomization. (midi timing and/or volume)

   **

  PACKAGES

You have to install:

GNU Lilypond = 2.14.0
http://lilypond.org

midicomp 0.0.4
http://midicomp.opensrc.org/midicomp-0.0.4.tar.gz

Download midicomp 0.0.4 then, in root console, move it to /usr/local
(or /usr):
# mv /YOUR/PATH/.../midicomp-0.0.4.tar.gz /usr/local  (or /usr)

Still in root, go to /usr/local  (or /usr)
# cd /usr/local (or /usr)

Unpack:
# tar -zxvf midicomp-0.0.4.tar.gz

and go to new repertory:
# cd /usr/local/midicomp-0.0.4  (or /usr)

then tape (still in root):
# make

If you choose /usr the binary should be installed in /usr/bin au-
tomagically but in the case of /usr/local I think you have to move
this file in /usr/local/bin after the compile:
# mv /usr/local/midicomp-0.0.4/midicomp /usr/local/bin

Python 2.6.x with Tk option activated.
Already in your Linux distribution.
or http://www.python.org/

GNU Bash, GNU awk and GNU sed.
by default in your Linux distribution.

As default config I use Timidity++ 2.13.2 with eawpatches. (and without
reverb!!!)

   **
Correction of a minor bug.
La Bibliothèque isn't updated yet but there is no problem for its use in
the 'G'igsaw.

Be happy.
Phil.


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


Re: ANN: J. S. Bach - 371 Chorals à 4 voix + Etudes d'anamorphoses: les différentes versions d'un choral.

2011-07-20 Thread Phil Hézaine
Hello list,

An updated version for Lilypond 2.14.1 with included tar.bz2 sources is
available:

http://superbonus.project.free.fr/spip.php?article48

Be happy.
Phil.

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


Re: Polymetric music and page breaks

2011-05-30 Thread Phil Hézaine
Le 30/05/2011 21:05, Andrea La Rose a écrit :
 
 Jan-Peter,
 
 That is fantastic work! Thanks for sharing it. Unfortunately, neither my
 math nor my coding skills are anywhere near yours. 
 
 Another issue is that I am creating a score where only parts exist at this
 point. (There was a handwritten score that I made the parts from, but that's
 on the other side of the ocean right now.) Making the kind of calculations
 you did with your uncle's piece (which I'd be interested in hearing, by the
 way) seems easier when you have a physical copy of a score.
 
 The sense I'm getting is that the only work-around at this point is to
 insert fake measures — not simply \bar  — that do line up, in order to get
 the page breaks one wants; that there is no global fix.
 
 cheers,
 Andrea

I haven't read your file yet, sorry, may be  this isn't helpful for you
but for the record I post what I wrote in tutorial of the Drummer's
'G'igsaw (a Polymetric editor for Drums and Percussions.)

(page 28):

If you write different time signatures in each track the pdf output
might become faulty. Indeed Lilypond doesn't break end of lines except
if there are synchronous each other. To avoid this issue you'll find
in Demos some tricks. First of all try to uncomment: set-global-staff-
size) at the beginning of MY-SONG.ly.
(for instance: (set-global-staff-size 16)
 In Demo-02, when agogos in Polyun track enlarge their bars
(4/4 = 5/4 = 6/4 = 7/4...) I deliberately divided up the bars. So end
of lines are in sync and I get a more readable pdf.

I don't know an another solution.

Phil.

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


The Gigsaw has a problem with midi output

2011-03-15 Thread Phil Hézaine
Hi,

Lilypond version 2.13.51.
Could somebody confirms the Lily's midi output has changed.
When i read an ascii file of the midi output I see a note Off no longer
exists. It is replaced by a note On with vol=0.
I can read it from midicomp.
Is there a reason why this output is changed?
Or is it an unwanted effect of the development version?

Thanks in advance.
Phil.

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


Re: The Gigsaw has a problem with midi output

2011-03-15 Thread Phil Hézaine
Le 15/03/2011 13:12, Phil Holmes a écrit :
 - Original Message - From: Phil Hézaine
 philippe.heza...@free.fr
 To: lilypond-user lilypond-user@gnu.org
 Sent: Tuesday, March 15, 2011 12:02 PM
 Subject: The Gigsaw has a problem with midi output
 
 
 Hi,

 Lilypond version 2.13.51.
 Could somebody confirms the Lily's midi output has changed.
 When i read an ascii file of the midi output I see a note Off no longer
 exists. It is replaced by a note On with vol=0.
 I can read it from midicomp.
 Is there a reason why this output is changed?
 Or is it an unwanted effect of the development version?

 Thanks in advance.
 Phil.

 
 There's a lot of changes going on in midi output at present.  If you
 depend on it, I'd suggest sticking with an older version for now.
 
 -- 
 Phil Holmes

Thanks for the quick answer. Is there a list of the changes I could
read. I'll like to go on to do something about my little app.

Phil.

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


Re: ANN: Les colles de Bach - The Bach's School (You've got me, there)

2011-03-08 Thread Phil Hézaine
Le 08/03/2011 09:48, Bertalan Fodor (LilyPondTool) a écrit :
 Wow! This is great.
 
 Thank you.
 
 Bert

Thanks. Just now I recall your question about the famous 'G' in:
Le Puzzle du Batteur - The Drummer's 'G'igsaw.
Well, you get the whole answer with:
Les 'colles' de Bach - The Bach's School ;-)

All the best.
Phil.

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


ANN: Les colles de Bach - The Bach's School (You've got me, there)

2011-03-07 Thread Phil Hézaine
Hi all,

Les 'colles' de Bach - The Bach's School (You've got me, there)
is the full version of Bach's Chorales transcribed
(Under Free Art License) for GNU Solfege 3.19.4
This transcription is especially for music students,
or classes of Solfege - Harmony - Counterpoint.
You first need to install the 3.19.4 and read the LISEZ-MOI-README
either on site or in the zip package.

 http://superbonus.project.free.fr/spip.php?article48

Be happy.
Phil.

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


Re: community compose with lilypond

2011-03-01 Thread Phil Hézaine
Le 01/03/2011 01:10, TaoCG a écrit :
 
 
 lilypond-5 wrote:

 I would like to compose with the community with Lilypond.



 If that is possible then the small Djembé community can start saving  
 original African Djembé music. So it will not be lost.

 Well, I am no expert in MIDI, so anyone correct me if I am wrong, but to my
 knowledge lilypond doesn't contain any soundfont at all. The MIDI-files
 generated by Lilypond are just played via the GM-Standard Soundfont that
 comes with your operating system.
 
 I suggest you to take a look at the file drumpitch-init.ly in
 usr\share\lilypond\current\ly of your Lilypond directory and analyze it
 until you understand what it does. Part of it is described here:
 http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Common-notation-for-percussion#Custom-percussion-staves
 
 I don't work with MIDI output but I believe if you make your custom
 drum-pitch tables you can alter the midi-drumpitch table accordingly, you'll
 just have to know which MIDI-representation each sound of your soundfont has
 and later make sure that your MIDI-file is played back using your djembé
 soundfont.
 
 I hope this was of some help.
 
 Regards,
 Tao

The following ly file is an extract (very simplified) from
Le Puzzle du Batteur - The Drummer's 'G'igsaw.
See:

 http://superbonus.project.free.fr/spip.php?article43

May be you'll find a comprehensive way for your project.
Even more with the melodic track.

Phil.



\version 2.12.2

\include 0-mydrums-style2.ly

\paper {
%   ragged-bottom = ##f
%   ragged-last-bottom = ##f
}


pulse = \drummode {  

 \time 6/8
  \tempo 4 = 116

bol16_\f cgho16_\mf cgl16_\mp cgl8_\f cgho16_\p boh16_\mf cgho16_\mp 
bol8_\mf r8 %|

bol8_\mf cgho16_\mf cgl16_\f cgl8_\ff cgho8_\mp boh16_\f cgho16_\mp 
bol8_\mf %|

bol16_\ff cgho16_\ff cgl16_\f cgl8_\ff cgho16_\mp boh16_\f cgho16_\mf 
bol8_\f cgho8_\f %|

bol8_\ff cgho16_\ff cgl16_\f cgl8_\ff cgho8_\mp boh16_\f cgho16_\mf 
bol8_\f %|

bol8_\mf cgho16_\mf cgl16_\f cgl8_\ff cgho8_\mp boh16_\f cgho16_\mp 
bol8_\mf %|

bol16_\ff cgho16_\ff cgl16_\f cgl8_\ff cgho16_\mp boh16_\f cgho16_\mf 
cgho16_\mf bol8_\f cgho16_\mf %|

bol8_\ff cgho16_\ff cgl16_\f cgl8_\ff cgho8_\mp boh16_\f cgho16_\mf 
bol8_\f %|

bol16_\f cgho16_\mf cgl16_\mp cgl8_\f cgho16_\p boh16_\mf cgho16_\mp 
bol8_\mf r8 %|

bol16_\f cgho16_\mf cgl16_\mp cgl8_\f cgho16_\p boh16_\mf cgho16_\mp 
bol8_\mf cgho16_\f cgho16_\mf  %|

bol8_\mf cgho16_\mf cgl16_\f cgl8_\ff cgho8_\mp boh16_\f cgho16_\mp 
bol8_\mf %|

bol8_\mf cgho16_\mf cgl16_\f cgl8_\ff cgho8_\mp boh16_\f cgho16_\mp 
bol8_\mf %|

bol16_\ff cgho16_\ff cgl16_\f cgl8_\ff cgho16_\mp boh16_\f cgho16_\mf 
cgho16_\mf bol8_\f cgho16_\mf %|

 }

 \score {

% Pour ne pas afficher les nuances sur la partition:
\override Score.DynamicText #'transparent = ##t

  \new DrumStaff \with {
drumStyleTable = #(alist-hash-table mydrums-style2)
\override DrumStaff #'TimeSignature #'style = #'()
fontSize = #1
\override StaffSymbol #'staff-space = #(magstep 1)

   }

  
\set DrumStaff.instrumentName = Drums
\set Staff.shortInstrumentName = Dr
\set DrumStaff.midiInstrument = standard kit
\override Score.MetronomeMark #'outside-staff-padding = 1
\new DrumVoice { \pulse }
  
%%



  \layout {

}

  \midi {
\context {
  \Score
  tempoWholesPerMinute = #(ly:make-moment 232 4)
  }
}
 }


\version 2.12.0

#(define mydrums-style2 '(

  (acousticbassdrum () #f -3)
  (bassdrum () #f -3)
  (sidestick cross #f 1)
  (acousticsnare () #f 1)
  (snare () #f 1)
  (handclap triangle #f 1)
  (electricsnare () #f 1)
  (lowfloortom () #f -4)
  (closedhihat cross stopped 3)
  (hihat cross #f 3)
  (highfloortom () #f -2)
  (pedalhihat cross #f -5)
  (lowtom () #f -1)
  (openhihat cross open 3)
  (halfopenhihat xcircle #f 3)
  (lowmidtom () #f 0)
  (himidtom () #f 2)
  (crashcymbala xcircle #f 5)
  (crashcymbal xcircle #f 5)
  (hightom () #f 4)
  (ridecymbala cross #f 5)
  (ridecymbal cross #f 5)
  (chinesecymbal mensural #f 5)
  (ridebell () #f 5)
  (tambourine () #f 6)
  (splashcymbal diamond #f 5)
  (cowbell triangle #f 5)
  (crashcymbalb xcircle #f 6)
  (vibraslap diamond #f 4)
  (ridecymbalb cross #f 4)

  (lobongo () #f -1)
  (openlobongo () open -1)
  (mutelobongo () stopped -1)
  (hibongo () #f 1)
  (openhibongo () open 1)
  (mutehibongo () stopped 1)

  (loconga () #f -2)
  (openloconga () open -1)
  (muteloconga () stopped -1)
  (hiconga () #f 2)
  (openhiconga () open 2)
  (mutehiconga () stopped 2)

  (hitimbale () #f -5)
  (lotimbale () #f -6)
  

Re: ANN: J. S. Bach - 371 Chorals à 4 voix + Etudes d'anamorphoses: les différentes versions d'un choral.

2011-02-25 Thread Phil Hézaine
Hi,

An updated version with included tar.bz2 sources is available:

http://superbonus.project.free.fr/spip.php?article48

Some slight inconsistencies were corrected.
Midi files of Lilypond were updated to take into account the duration of
the fermatas, which improves the scansion of a chorale.
Note however that the tempi are not relevant at all. But by changing the
\guidemidi-ly in the sources you will be able to more easily produce a
midi file that suits you.

For those wishing a really detailed analysis of Chorales (especially the
students) , I would advertise them when the time comes of the release:

Les colles de Bach - The Bach's School (You've got me, there)

for GNU Solfege which should include 352 chorales, each choral being an
exercise of musical dictation of 1, 2, 3 or 4 voices.

Because of an overlap midi problem as soon as two voices share an unison
with different durations (we don't know that in Lilypond) I'm waiting
the next version (GNU Solfege 3.19.3). The author, Tom Cato Amundsen, is
taking this issue on hand.

Be happy.
Phil.

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


Re: lilypond-book

2011-02-20 Thread Phil Hézaine
Le 19/02/2011 20:21, Peter Buhr a écrit :
 I'm attempting to use lilypond-book but have run into the following anomaly.
 
 The latex file below demonstrates the problem. There is a line 
 \input{test.ind}
 to include the index file generated by the makeindex command. Normal procedure
 is to start with an empty (0 byte) xxx.ind file, do several latex runs to
 generate a xxx.idx file, and then build the index from xxx.idx using 
 makeindex,
 do a few more latex runs to incorporate the index into the document, and Bob's
 Your Uncle. All these steps are normally accomplished via a Makefile.
 
 However, when I run lilypond-book, as in:
 
   $ lilypond-book -f latex -o out2 test.lytex 
 
 the pre-processed output file out2/test.tex has zero bytes. If I comment out
 the line \input{test.ind} and run the same lilypond-book command, 
 out2/test.tex
 has the correct pre-processed output. Moving the empty file test.ind to
 directory out2 still results in an empty test.tex file. Naming the file to
 something else does not help.
 
 So the problem seems to related to any input file having zero size results in
 the preprocessed output-file also having zero size.
 
 =
 
 \documentclass[12pt]{article}
 \makeindex
 
 \begin{document}
 
 \subsection{Chromatic Octaves}
 
 \begin{lilypond}[staffsize=23]
 \score {
   \relative c {
 a b c d e f g
   } % relative
 } % score
 \end{lilypond}
 
 \input{test.ind}  % PROBLEM LINE
 
 \end{document}
 
 =

Hi,

I think you have to put the whole path for test.ind
if your test.ind is one directory upstairs of out2 you could also write:

\input{../test.ind}

I hope it's the right solution.
Cheers.
Phil.

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


Re: lilypond-book

2011-02-20 Thread Phil Hézaine
Le 20/02/2011 14:52, Peter Buhr a écrit :
Le 19/02/2011 20:21, Peter Buhr a écrit :
 I'm attempting to use lilypond-book but have run into the following 
 anomaly.
...
I think you have to put the whole path for test.ind
if your test.ind is one directory upstairs of out2 you could also write:
 
\input{../test.ind}
 
 So I tried both of your suggestions, and this problem only gets worse.  Below
 are the two test files with the relative and absolute path-names to the 
 test.ind
 file and the output from running lilypond-book.
 
 In the first case using the relative path-name, lilypond-book cannot find file
 ../test.ind. I conjecture that lilypond-book is running in the current
 directory and not the out2 directory; hence, it is looking in the parent
 directory for test.ind and cannot find it.

Yes. Sorry. I thought you're following the process described in the
documentation. I process like this:

cd /your/current/directory)

/usr/local/bin/lilypond-book --lily-output-dir=out-lily --pdf
--output=out2  your.lytex

Note that I have already created a dir: out-lily

cd out2

pdflatex  your.tex

You'll have a error message about ../test.ind while you process the
first run and it disappears for the second (when you are in out2)

 In the second case using the absolute path-name, it DOES work. I get the
 preprocessed file test.tex in directory out2. HOWEVER!!! Look at the last
 line of the output from lilypond-book:
 
 Writing `/home/pabuhr/guitar/music/test.tex'...
 
 For some reason, lilypond-book has written a file called test.tex in the
 CURRENT directory versus directory out2. In fact, it overwrote the file
 test.tex I had in the current directory, destroying it!!!
 
 SO FOR ANYONE USING LILYPOND-BOOK, A STRONG CAUTIONARY NOTE. IT CAN DESTROY
 FILES IN THE CURRENT DIRECTORY, SO BE VERY CAREFUL.

I think there is a note in the documentation. No?

Phil.

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


Re: Lilypond-book: Adjust left page margin

2011-02-18 Thread Phil Hézaine
Le 16/02/2011 21:57, Daniel Dieterle a écrit :
 Hi,
 
 currently I'm working on a song book with lilypond-book.
 I would like to have equal page margins on the left and right of 1 cm.  So I
 configured the page layout with the LaTex geometry package. Lilypond-book
 adopts the staff length accordingly: The right space from the end of a staff
 line to the page border is 1 cm. But the left space from the page border to
 the beginning of the staff line is slightly larger. That bothers me, because
 the song text following the song notes is nomore aligned with the staff
 lines.
 
 I tried to solve this problem with two approaches:
 1) With the lilypond-book option --left-padding=AMOUNT
 2) \once \override Staff.StaffSymbol #'X-offset = #0
 
 With both approaches I have no success.
 Does anybody have an idea how I can adjust the left page margin?
 
 Thanks for any hints,
 Daniel.

Hi,

I don't understand very well your problem but there are several things:
Either it is a problem with indent.
or you're in a book class and by default Latex takes in account an inner
margin value depending of the left or right page.
or you can put a \textwidth = 510pt in your preambule
or finally if you're including a separate .ly file:
\renewcommand{\betweenLilyPondSystem}[1]{\linebreak \vspace{12pt}}
  \lilypondfile[staffsize=20,indent=1.5\cm,line-width=510\pt]{your-song.ly}
Play around with the values, of course.
May be someone on the list would be able to explain you better than me.

Phil.

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


Re: ANN: J. S. Bach - 371 Chorals à 4 voix + Etudes d'anamorphoses: les différentes versions d'un choral.

2011-02-02 Thread Phil Hézaine
Le 02/02/2011 08:41, Helge Kruse a écrit :
 
  Original-Nachricht 
 Datum: Tue, 1 Feb 2011 22:13:55 +0100
 Von: Jan Warchoł lemniskata.bernoulli...@gmail.com
 An: Phil Hézaine philippe.heza...@free.fr
 CC: lilypond-user lilypond-user@gnu.org
 Betreff: Re: ANN: J. S. Bach - 371 Chorals à 4 voix + Etudes 
 d\'anamorphoses: les différentes versions d\'un choral.

 That's great! I didn't know it was possible.
 How can i extract it? I have arichve manager called 7-zip, that
 handles tar.bz2, but it doesn't want to do anything with this pdf...

 cheers,
 Janek
 
 When I open the file in Acrobat Reader 9 and click on the .tar.bz2 file, I 
 get the message 
 
 You have selected a file that cannotbe exported from Acrobat.
 
 What's wrong? Also, I am interested in including the source in the PDF. Where 
 can I read how to do this. I hope should be possible, even if i just had some 
 trouble with it.
 
 Regards,
 Helge

Hi,

I guess you have not the tools to uncompress the tar.bz2 archive.
However Windows is totally out of my world here.

With pdftk you can include the source in the pdf:

pdftk your_input.pdf  attach_files  your_archive.tar.bz2  output out.pdf

Have fun.
Phil.

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


Re: ANN: J. S. Bach - 371 Chorals à 4 voix + Etudes d'anamorphoses: les différentes versions d'un choral.

2011-02-02 Thread Phil Hézaine
Le 02/02/2011 10:05, Phil Hézaine a écrit :
 With pdftk you can include the source in the pdf:
 
 pdftk your_input.pdf  attach_files  your_archive.tar.bz2  output out.pdf

... and you'll extract the archive with:

pdftk in.pdf  unpack_files  output /home/.../blabla/

Cheers.

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


ANN: J. S. Bach - 371 Chorals à 4 voix + Etudes d'anamorphoses: les différentes versions d'un choral.

2011-02-01 Thread Phil Hézaine
Hi,

You'll find these 2 publications at:

http://superbonus.project.free.fr/spip.php?article48

Discussing about the license on the Free Art mailing list I was
forgetting to write the copyright header inside all my files! Ough!
Fortunately Valentin was not far. His well-meaning has saved me.
He has also given me the tip about how to include the source files
inside the pdfs. Many thanks again, Valentin.
Talking of which, the included source files are tar.bz2.
Whether it's a problem for you (Windows or Mac users) to extract the
archive from the pdf you'll find a zip archive on the site.

The next step of this project is for GNU Solfege.

to Michael: I plan an update when the 2.14 is out. Perhaps the midi
files will be renewed at this time (see the Edition's Notes). Be aware
of that if you still want to use the source.

Have fun.
Phil.

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


rendering-order (Scheme) and lilypond-book

2011-01-13 Thread Phil Hézaine
Hi,

Quoted from a previous post on this list:

  \version 2.13.45

 #(define sequence-number 0)
 #(define-markup-command (score-sequence layout props sequence-number)
 (number?)
  (interpret-markup layout props
(markup #:bold #:huge (number-string sequence-number)#:fontsize 6
.)))


Is there a way to use this function when i compile with lilypond-book?
I use 12.13.45
Currently I have an
\include rendering-order.ly
in my separate files of the Chorales by Bach
and
\new PianoStaff 
#(set! sequence-number (1+ sequence-number))
\set PianoStaff.instrumentName = \markup { \score-sequence
#sequence-number }
...


but each choral is written with the number 1. (only with lilypond-book)
I have the intuition of the explanation but if someone has a solution
you're welcome.
By the way I have slightly and clumsily tweaked this function but the
dot after the digit seems to be a bit far away, I think.
Any help will be much appreciated.
Phil.


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


Re: Solfege Resources -- 404 bach chorales in Lilypond format with Movable Do solfege.

2011-01-04 Thread Phil Hézaine
Le 03/01/2011 19:28, Michael Ellis a écrit :
 Mike, Graham, Henning,
 
 Thanks again, it's all good discussion.  For the time being, I've altered
 the home page on the solfege-resources site to offer two choices of License,
 namely Free Art license in addition to CC BY-NC-AS.  I've also added a
 couple paragraphs explaining my understanding of U.S. copyright law and
 urging users to accept the CC license with commercial restriction in honor
 of Margaret GreenTree's patient labor while acknowledging that patient labor
 in itself may not create copyrightable work and therefore offering also the
 Free Art option.   I realize that it may all be legally meaningless,  but it
 seems as I close as I can come for the moment to balancing the various legal
 and ethical  considerations.
 
 I've still not heard from her.  Hopefully she's just on vacation and will
 eventually reply.
 
 I'm still open to replacing the notation in the Bach Chorales with Phil's
 work and offering those under Free Art license only.  (Phil, if you will
 send me a gmail address (needed by googlecode.com), I will authorize it for
 commit privileges on the site).   But please hold off from making extensive
 changes as I'd like to revise the lilypond files to achieve even greater
 separation between the notation and the output.  

   (skip)
 Cheers,
 Mike

Hi Mike,

You've already burst the 2011's starting blocks and you carries on with
taking a corner at top speed. ;-)
At this rate I can't follow you without finishing in a nest of cuckoos
(or, better, in a cuckoo clock). ;-) ;-)
I like very much your enthusiam, one cannot do great things without it,
but may be you misunderstood my solidarity.
Don't be hurted but I was not planning to edit the site.
My plans with the 371 chorales are a groß travail and I don't want add
more that I was fixing for myself.
My plans are as follows:
In a first wave I'll like to release a book in several parts, depending
of the spacing issues, you know, this famous problem which users and
devs are always fighting with and which is not an own Lilypond's issue.
By the way I'm currently wondering whether the duplicate chorales in
Breikopf's edition was a workaround about it. Possibly. Then it is an
well-known problem.
With this release you'll get all the separate files for the chorales
(the duplicates will be pointed out) under a Free Art license (*). Then
you could make anything you want with them and, from my point of view,
it would be a lot easier for students, musicologists... to check and
understand the Margaret's work and to form an opinion if you format my
free work as you did for Margaret Gentree. By the way don't forget she
has edited corrected chorales and also chorales with instrumental parts
which doesn't exist in Breitkopf.

In a second wave I'll like to re-use and reorganize the free sources to
release a book untitled very pompously (but it might change, it's just a
poetic idea):

J.S.Bach Chorales. Studies of anamorphosis.
(In fact, to juxtapose the same themes of chorales).

As you can see there is a groß travail to do, but be sure if you have
problems with my files I do everything one possibly can to help you
and facilitate your formatting. It's the meaning of my solidarity.
I hope you are not upset.

(*) I realize I forgot the tagline in my template. I have to add it.
Following a recent discussion on lilypond-fr where Valentin told about
photocopies of sheet music, I think I'll add this in the tagline
(without the capitals):

Copyleft: cette oeuvre est libre, vous pouvez la copier, la PHOTOCOPIER,
la diffuser et la modifier.

Is it possible?
Cheers.

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


Re: Solfege Resources -- 404 bach chorales in Lilypond format with Movable Do solfege.

2011-01-02 Thread Phil Hézaine
Le 01/01/2011 22:45, Michael Ellis a écrit :
 Hi Phil,
 Thanks for the input.  I've sent email to Margaret (whom I don't know
 personally)  asking her thoughts about the licensing.  I've not yet heard
 back from her.
 
 I confess I went with a strong non-commercial clause largely in deference to
 her work and the claims on her website.  It's a lot easier to loosen a
 license later than to tighten it after the work is in the wild.   I have
 to say that the whole copyright issue here is quite confusing.  As you point
 out, the author of the works is long dead and published editions exist that
 were never under copyright or have lapsed into the public domain.
 
 I'm certainly not trying to assert any copyright to Bach's work or
 Margaret's for that matter.  I do claim some right to the LilyPond files
 themselves, or perhaps better to say, the organization of the files to
 produce the solfege, etc, but I'm not sure how to properly express that or,
 to be truthful, whether it's even worth the bother.  I suspect you may have
 more experience than I in these areas.
 

Hi Michael,

Personnally, because your work is based on scripts, i'll put a GPL'ed
license. But I haven't to give you a piece of advice. Even I don't know
if you can mix the CC-NC-SA with GPL both in a work

 I really want to find out how Margaret feels about this before changing the
 license.  My primary intent here is to provide a useful resource for
 students of music and I don't want to get into a copyright dispute with
 anyone.  As the Chinese proverb says In death avoid hell, in life avoid the
 law courts!
 

We have exactly the same intent. I'll say: for students of music,
artists or musicologists

 I have not encountered the Free Art license before.  From a quick glance at
 the wikipedia description, it sounds almost identical to the Creative
 Commons license with only the Attribution and ShareAlike clauses but without
 the Non-commercial clause.  Is that correct?
 

Yes. And there is a recommandation from the FSF to use this license for
artistic purposes. Just a recommandation. Not more.

 Finally, however the copyright on my work sorts itself out, I'll be happy to
 include your work on my site under whatever copyright terms you like.
 Still, since we're working on the same chorales it would be great if we can
 find a way to combine our efforts to produce the best possible editions.
 

I agree. Bach and a free license are just my condition for this kind of
work.

 Cheers,
 Mike
Cheers.
Phil.

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


Re: Solfege Resources -- 404 bach chorales in Lilypond format with Movable Do solfege.

2011-01-02 Thread Phil Hézaine
Le 01/01/2011 23:30, Graham Percival a écrit :
 On Sat, Jan 01, 2011 at 10:08:38PM +0100, Phil Hézaine wrote:
 Moreover, there are chorals which aren't changed from the Public Domain.
 I've checked some of it against my sources. Well, only a little bit.
 And i'm not sure of the data integrity of her typesetting.
 
 Interesting.
 
 Then, why to claim a clause of copyright non-commercial without arguments?
 
 Well, if she made any editorial changes, the result is not in the
 public domain.  Arguably, even simply making unintentional data
 entry changes could be enough for the result to be under
 copyright.
 
 What a shame that Margaret Gentree is not on this list. We could have a
 better understanding. Are Barenreiter or Musica Budapest's sources
 closed?
 
 Unless they created an urtext edition, then yes, the notes and
 markings are under copyright.  Even if they created an urtext
 edition, the actual layout of music on the page is under
 copyright.  In the latter case, typing the notes into a text file
 (for processing with lilypond) does not infringe copyright,
 whereas making a photocopy would infringe.
 
 Could we use her work in a GNU app like GNU Solfege without
 infringements between the GPL and her license?
 
 No.  GPL does not allow you to play additional restrictions on the
 distribution of material; the CC-NC has an extra restriction (no
 commercial use).
 
 For now I plan to publish the 371 chorals from Breitkopf with a Free Art
 license,
 
 Have you checked that the Breitkopf edition is free from
 copyright?  Mutopia has a good short discussion about this:
 http://www.mutopiaproject.org/contribute.html
 
 Cheers,
 - Graham

Thanks for the informations, Graham, it's always useful.
The handy sources i have are exactly the same you find on ISMLP:


 http://imslp.org/wiki/Chorale_Harmonisations,_BWV_1-438_%28Bach,_Johann_Sebastian%29

Rédacteur:
Johann Philipp Kirnberger
Carl Philipp Emanuel Bach

Édition:
Leipzig: Breitkopf und Härtel, n.d.[1878]. Plate V.A. 10
Droit d'auteur: Public Domain

Notes:
Based on 1st edition (Leipzig: Breitkopf, 1784–1788)
2 staves, without lyrics


I think I'm right.
However I add in my typesetting the BWV references and the corrected
titles (there are a lot) from jsbchorales, and i point out the chorales
in duplicate.
Yes, in fact there are not 371 chorales in this edition!
Off course, I'll mention the origin of my references in my final work. I
think there is no copyright issue about their catalogue.
Am i wrong?

If you check the second chorale from the Breitkopf's edition against the
jsb sources (BWV 347) you'll see no difference.
The first chorale (BWV 269) has just a missing tie for the alto, 5 bars
before the end.
I don't say that to pull down the work of Margaret Gentree, it will be
ridiculous, far away of my wish, just to point out you can find chorales
of the Public Domain. Checking the whole stuff is not my purpose and may
be irrelevant for now.
Cheers.

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


Re: Solfege Resources -- 404 bach chorales in Lilypond format with Movable Do solfege.

2011-01-02 Thread Phil Hézaine
Le 02/01/2011 18:59, Michael Ellis a écrit :
 Hi Phil  Graham,
 Thanks very much for the information and discussion.  It's all
 extremely useful.  Let me see if I can paraphrase a few points that
 are influencing my thinking:
 
 We all seems to agree that:
 
1. The music of the chorales (the sequences of pitches and
 rhythms notated in the Breitkopf edition) is public domain.
2. The Breitkopf edition itself is also in the public domain.
3. Margaret Greentree's XML files do not contain any copyright
 assertions other than for the PDF output.
4. Her site has the following text in the footer of each page:
  © 1996-2010 by Margaret Greentree, some rights reserved.
 Free midi files and sets, ongoing corrections.
  This site may be browsed, referenced or linked. Download the
 ftp files, but do not use images or music for financial profit.
 Commercial use of material without permission from me or the artists
 is an infringement of rights reserved.
 
 Given the above, it seems that an important question is whether her
 reservation of rights applies to distributing material created by
 applying LilyPond to the notation sequences embodied in her XML.   I
 don't mean to sound like a lawyer here (and I'm most assuredly not
 one), but to the extent that her notes match those in public domain
 editions, one could argue that no copyright is possible.
 
 On the other hand, I'm not sure that failing to declare a copyright to
 the XML files necessarily invalidates a copyright to the digital
 representation she created and one could argue that the translation
 produced by MuseScore (via xml2ly, I think) is a purely mechanical
 re-representation of her work.
 
 As to my own contributions to this work, I am ok with dropping
 commercial clause and issuing it with either the CC license or the
 Free Art license or both.  So I think we need to wait for a response
 from Margaret.  Hopefully she will be amenable to what we would like
 to do.
 

Hi Mike,

Sorry for the trouble I cause but for the future of the project it seems
necessary. The Margaret's work is not trivial and we are discussing the
some rights reserved assertion. Besides, may be she is not alone. You
did the right thing when you send her a mail.
Be patient is the best way. Let us hope an answer in the week.
About the difference between CC / Free Art license, if I remember
correctly, the latter takes in account in a more suitable way the Berne
Convention about copyrights.

 Needless to say, another alternative would be to replace her work with
 yours, Phil.  I think you said you've got about 300 of the chorales
 already transcribed.  Is that right?  Would it be difficult to plug
 your note sequences into the format I'm using?

You're right. And with your skills I think it could be automated.
If you want I can send you the template while we are waiting for a
response. Be sure of my solidarity.

 Cheers,
 Mike

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


Re: A small but vexing problem (fermatas in several voices)

2011-01-01 Thread Phil Hézaine
Le 31/12/2010 20:33, Michael Ellis a écrit :
 Hi Phil,
 The problem is pretty well solved. I'm just cleaning up a few things
 in my scripts today.
 
  I don't have all the answers yet regarding copyrights.  Margaret
 Greentree's site seems to claim copyrights only to the PDF images and
 those are freely shared for non-commercial use.  So I'm not quite sure
 how that might apply to works derived from the MusicXML files.
 
 My thought was to release my versions with attribution to her and a
 Creative Commons license with similar conditions -- free use for
 non-commercial purposes with attribution and share-alike.
 
 Initially, I'm going to put the files into a googlecode site so it's
 easy to allow more than one person to edit them.  I'll be happy to add
 your name to the list of developers for the site.  Later on, I want
 to put up a free site that can serve PDF, midi, and mp3 files.
 
 Looking forward to working with you!
 
 Cheers,
 Mike

Hi Mike,

Formidable work! Really! You have burst the 'starting blocks' of 2011!
More deeper thoughts and decisions to this new thread:

ANN: Solfege Resources -- 404 bach chorales in Lilypond format with
Movable Do solfege.

when my head is clever, a bit later.
Happy New Year for all.
Phil.

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


Solfege Resources -- 404 bach chorales in Lilypond format with Movable Do solfege.

2011-01-01 Thread Phil Hézaine
Hi Michael and all,

Copy from the previous discussion:
Le 31/12/2010 20:33, Michael Ellis a écrit :
 Hi Phil,
 The problem is pretty well solved. I'm just cleaning up a few things
 in my scripts today.

  I don't have all the answers yet regarding copyrights.  Margaret
 Greentree's site seems to claim copyrights only to the PDF images  
 and those are freely shared for non-commercial use.  So I'm not quite
 sure how that might apply to works derived from the MusicXML files.

 My thought was to release my versions with attribution to her and a
 Creative Commons license with similar conditions -- free use for
 non-commercial purposes with attribution and share-alike.

 Initially, I'm going to put the files into a googlecode site so it's
 easy to allow more than one person to edit them.  I'll be happy to add
 your name to the list of developers for the site.  Later on, I want
 to put up a free site that can serve PDF, midi, and mp3 files.

 Looking forward to working with you!

 Cheers,
 Mike

It's not my goal to begin a troll or flames war but i'm a bit stumpled
with the licence. I have great respect for your choice and Margaret
Greentree who is a passionate artist but I want to explain my thoughts.
I have no problem with a Creative Commons - non-commercial license when
the copyright is 'alive'. I have even used it for one of my own work
for the main reason that I want to impose a percentage of redistribution
for Free Software or humanitarians goals in case of a commercial
product, even for one song. If you agree to this clause you get an
authorization and all is right. It's the rules of the game. Not
completely closed but...  Anyway, this clause didn't suit me very well
with a virtual band from linux-audio on internet. At this time they were
Free like zealots.
But in the case under discussion the copyright is 'dead', and i don't
see a valuable explanation on the site for the non-commercial use. Hence
my questions.
Moreover, there are chorals which aren't changed from the Public Domain.
I've checked some of it against my sources. Well, only a little bit.
And i'm not sure of the data integrity of her typesetting.
Then, why to claim a clause of copyright non-commercial without arguments?
What a shame that Margaret Gentree is not on this list. We could have a
better understanding. Are Barenreiter or Musica Budapest's sources
closed? I don't know for now. Is there a special wish with the license?
We don't know.
Could we use her work in a GNU app like GNU Solfege without
infringements between the GPL and her license?
Like I said it's not at all a flames war, but there are too many
questions about this.
Would you like some more? I'm neither a professional engraver nor an
editor but I'll agree with a professional publishing of the chorals,
whether it happens. With a Free Art License, for example, we need of an
advanced (progressive) editor who accepts to publish a book while the
sources are available for free on internet.
One of the deeper feature of Lilypond is the mutation of the traditional
engraving towards a computerized engraving. And all of this is GNU, it's
worth thinking about. Even more when a copyright is 'dead'.
Or I'm missing something?
 To Michael: I'm not at all a dev, a programmer, rather a poet of the
free culture and an average user of Lilypond. I'm very far away from
having your knowledge and your 'savoir-faire' in this area.
For now I plan to publish the 371 chorals from Breitkopf with a Free Art
license, and if all is right, to publish a different organisation of the
same sources later. If you agree to include this stuff on your site, it
will be a pleasure.
Be sure i appreciate your work.
Cheers.

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


Re: A small but vexing problem (fermatas in several voices)

2010-12-31 Thread Phil Hézaine
Le 31/12/2010 00:26, Alexander Kobel a écrit :
 On 2010-12-30 22:44, Michael J. O'Donnell wrote:
 Annoyance: the expressive part needs skips of the durations
 corresponding to the notes in between the expressive marks. Someday, I
 hope that LilyPond will have the facility to mark temporal points in
 various parts so that they can be aligned without counting out the beats
 correctly in each one. This would be structurally analogous to the use
 of TABs in a single line of typed material, but it would not be
 associated with lines of music, rather with entire scores.
 
 This idea of defining anchors or targets in the music is a
 long-standing [*], much-awaited request for enhancement.  See
 http://code.google.com/p/lilypond/issues/detail?id=824, and be sure to
 check out Gilles' workaround (comment #2).  I never tested Gilles' code,
 though, and I'm not sure whether it will work in the upcoming 2.14.
 
 [*] I think this idea is much older than the report filed in the tracker.
 
 Unfortunately IIUC this amounts to a quite invasive change in the whole
 LilyPond structure of parsing and handling input, and is unlikely to
 appear in the not-so-near future.  Especially since it does not increase
 overall functionality or output quality, and it's easy to overcome for
 freshly written LilyPond scores with reasonably clever variable definitions.
 
 
 Cheers,
 Alexander

Hi Michael,

If you are stopped with this issue I think I could change my files to
integrate one more variable with only the fermatas and rests. Would be
usefull for you? Anyway if I want to edit the 'breakpoints' in GNU
Solfege and avoid headaches, I need it later. However I work from the
Breitkopf's edition. It seems, at a rough guess, there aren't different
for that point but are containing only 371 chorals which are written on
2 Staffs. I've typed around 300 Chorals and I'm finally going to type
the whole thing. (ISMLP could be happy.) With a template and Frescobaldi
it isn't so difficult. Your work is very interesting for me because if i
have the ansvers about the use of a free license and the sources of
jsbchorales for a book, updating the files will be much easier. I'm
confident each of us are near the end of it, in a complementary way.
By the way, we also are near the end of 2010.
Happy New Year.
Phil.

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


Re: Can't use NoteNames twice in score block ??

2010-12-23 Thread Phil Hézaine
Le 22/12/2010 16:08, Michael Ellis a écrit :
 Carl, thanks for taking the time to figure it out!  I really appreciate the
 help. It's good to know there's a workaround.
 
 I'm undertaking a project to produce files containing all the Bach Chorales
 with solfege syllables (movable Do, La-based minor) under each part.  I'm
 starting with the MusicXML files created by Margaret Greentree at
 www.jsbchorales.net.  It turns out that MusesScore can be run in batch modes
 to produce LilyPond files.  I was able to convert all 400 of them in about
 10 minutes of run time.
 

Hi,

Welcome to the club! Thanks to Frescobaldi which saves me a lot of time,
I'm currently typesetting a bunch of Bach Chorales
from a Breitkopf  Härtel's edition. At this time I use the BWV
references of jsbchorales.net. but not the sources which are different
from mine.
It seems there are a lot of corrections but I don't know if it's allowed
to use them with the aim of a copyleft *publishing*. (Probably under a
Free Art license). More exactly whose sources are coming from? Are they
all authentified? No copyright editor behind the hood?  Has anyone more
informations?
My idea is to publish in a book different versions of a chorale one
after the other. I join 2 examples. And later, I'd like to upload the
voices as dictations in GNU Solfege.
I'm very curious of your batch modes. More about this? May be it could
be useful for a diff beetween my old reference and this new rather than
checking PDFs.

Regards.
Phil.



\version 2.12.2

 #(ly:set-option 'delete-intermediate-files #t)

  \paper {
%   between-system-padding = #0.1
%   ragged-bottom = ##f
%   ragged-last-bottom = ##f
}

  \header {
   title = (16) Es woll' uns Gott genädig sein - BWV 311
  }

  guidemidi = {
%%%\repeat volta 2 {
\tempo 4 = 78

%%%} % fin du repeat

}

  upper = {
\time 4/4
\key b \minor
\clef treble
\partial 4
\voiceOne
 { 
% SOPRANO
\set Voice.midiInstrument = acoustic grand
\relative c'' {
\repeat volta2 {
cis4 |
d4 cis b cis8 d |
e4 fis e d |
cis2\fermata r4 e |
d4 cis d b |
a4 fis8 g a4 g |
fis2.\fermata } %fin du repeat
a4 |
g4 fis e fis |
d4 e fis\fermata cis' |
d4 cis b cis8 d |
e4 d cis\fermata fis |
e8 d cis d e4 b |
a4 g! fis\fermata e |
a4 b cis8 d e4 |
d4 cis b\fermata d |
cis4 b a8 g fis g |
a4 g fis2 ~ |
fis2.\fermata
\bar |.
} % fin de relative
}

\context Voice=1 { \voiceTwo 
% ALTO
\set Voice.midiInstrument = acoustic grand
\relative c' {
\repeat volta2 {
fis4 |
fis4 fis g a |
g4 fis8 gis ais4 b |
ais2 r4 cis |
b8 a g4 a g8 fis |
e4 d8 e fis4 e8 d |
cis2. } %fin du repeat
cis4 |
d4 d cis cis |
d8 cis b4 cis fis |
fis8 gis ais4 b ais8 b |
cis8 fis, fis4 fis a! |
gis4 a e e |
e8 d e cis d4 cis |
cis8 dis e4 e8 fis g! fis |
fis8 gis a4 gis fis |
e8 fis g4 fis8 e d4 |
e2. d4 ~ |
d4 cis8 b cis4
\bar |.
} % fin de relative
\oneVoice
} 
}

  lower = {
\time 4/4
\key b \minor
\clef bass
\partial 4
\voiceOne
 { 
% TENOR
\set Voice.midiInstrument = acoustic grand
\relative c' {
\repeat volta2 {
ais4 |
b4 cis8 d e4 a, |
b8 cis d4 e fis |
fis2 r4 fis |
fis4 e d d |
e4 a,8 b c4 b |
ais2. } %fin du repeat
a4 |
b4 a a8 g fis4 |
fis4 b ais ais |
b4 e fis e8 d |
cis4 b ais! b |
b4 a b8 a gis4 |
a4 a a a |
a4 gis ais8 b cis4 ~ |
cis8 b8 e4 e a,8 b |
cis4 d d a |
a4 b cis! b ~ |
b4 ais8 gis ais4
\bar |.
} % fin de relative
}
\context Voice=1 { \voiceTwo 
% BASS
\set Voice.midiInstrument = acoustic grand
\relative c {
\repeat volta2 {
fis4 |
b4 a! g fis |
e4 d cis b |
fis'2\fermata r4 ais |
b4 e, fis g |
cis,4 d dis e |
fis2.\fermata } %fin du repeat
fis4 |
b,8 cis d4 a ais |
b4 g fis\fermata fis' |
b4 cis d cis8 b |
ais4 b fis\fermata dis |
e4 fis gis8 fis e d |
cis8 b cis a d4\fermata a'8 gis |
fis4 e8 d cis b ais4 |
b4 cis8 dis e4\fermata fis8 gis |
a4 b8 cis d4 d, |
c4 b ais b |
fis 2.\fermata
\bar |.
} % fin de relative
\oneVoice
} 
}


  \score { 

\new PianoStaff 
%\set PianoStaff.instrumentName = \markup{ \fontsize #6 { 

Re: Can't use NoteNames twice in score block ??

2010-12-23 Thread Phil Hézaine
Le 23/12/2010 18:05, Michael Ellis a écrit :
 Hi Phil! Thanks for the encouragement. I'll try to respond to all your
 questions later,  but for now here's the python script I used to invoke
 MuseScore (command line name is mscore) on the files I downloaded from
 Margaret Greentree's site. I'm running on a Mac with OS 10.6 so this should
 work on Linux, too and possibly on Windows with appropriate changes to
 accommodate the differences in path specs.
 
 cat xml2ly.py
 #!/usr/bin/env python
 
 Script that invokes mscore to convert MusicXml files in current directory
 to Lilypond files.
 
 import os, sys
 from subprocess import Popen
 import glob
 xmlfiles = glob.glob(*.xml)
 
 ## Replace with path to mscore on your system
 mscore = /Applications/MuseScore.app/Contents/MacOS/mscore
 
 for x in xmlfiles:
 print Converting %s ...%x
 ly = os.path.splitext(x)[0] + .ly
 cmd = %(mscore)s %(x)s -o %(ly)s%locals()
 print cmd
 p = Popen(cmd,shell=True)
 p.wait()
 print Done
 
 
 
 Cheers,
 Mike

Thanks Michael for sharing it. I will try it later on my Gentoo-Linux.
Cheers.

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


Le Puzzle du Batteur - The Drummer's 'G'igsaw: GNU Bash + GNU sed replace gvim

2010-08-11 Thread Phil Hézaine
Le Puzzle du Batteur - The Drummer's 'G'igsaw

   *

Polymetric editor for Drums and Percussions based on Lilypond + GUI for
randomization. (midi timing and/or volume)

   **

  PACKAGES


You have to install:
GNU Lilypond = 2.12.0
http://lilypond.org/web/install/

midicomp 0.0.4
http://midicomp.opensrc.org/midicomp-0.0.4.tar.gz
(compile in /usr/local/midicomp...
and move midicomp.bin in /usr/local/bin

Python 2.6.x with Tk option activated.
Already in your Linux distribution.

GNU Bash and GNU sed 4.2
by default in your Linux distribution.

As default midi config I use Timidity++ 2.13.2 with eawpatches.

   **

INSTALLATION

Untar the archive. (tar jxvf )
In your terminal go to your Drummer-s-Gigsaw's repertory.
cd /home/../Drummer-s-Gigsaw
and run the bash script:
sh INSTALL.sh
You are done.

   **

* In this new version you no longer need to gvim.
Thus you can use your preferred text editor or even a dedicated editor
like Frescobaldi or Lilypondtool...

* Now you can write all notes values, from whole note (1) up to
* one-hundred-and-twenty-eighth note (128) and even dotted values.

* The manual is updated. (translated in my terrible English)

* Le Puzzle du Batteur/The Drummer's 'G'igsaw is under GPLv3 or +

   **

This new version at:

http://philippe.hezaine.free.fr/spip.php?article46

Have fun.

Phil.

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


Re: The Drummer's 'G'igsaw: Upgrade + GUI for 'randomization'.

2010-06-13 Thread Phil Hézaine
Le 08/06/2010 18:41, Phil Hézaine a écrit :
 Hi all,
 
 A new version of Le Puzzle du Batteur - The Drummer's 'G'igsaw is
 available at:
 
 http://philippe.hezaine.free.fr/spip.php?article46
 
 New:
 
 - GUI for 'randomization':
 You have to install Python 2.6.x from your Linux distribution with
 an activated Tk flag, so you'll benefit from the GUI and randomization
 fonctions.
 In fact now it's possible for each note to choose a random value for
 'timing' (timestamps) and/or for Volume (dynamics).
 You'll find all details on the way to use this interface in pdf's
 application.
 
 - To edit your file /home/.vimrc is no more mandatory.
 
 - Apologies for the manual which is not totally translated yet.
 
 All comments are welcome.
 
 Have fun.
 
 Phil.

Hi all,

I was mistaken with two files when I built the package, hence an error
for the randomization process.
All seems ok now.
New corrected version at:

 http://philippe.hezaine.free.fr/spip.php?article46

Phil.


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


The Drummer's 'G'igsaw: Upgrade + GUI for 'randomization'.

2010-06-08 Thread Phil Hézaine
Hi all,

A new version of Le Puzzle du Batteur - The Drummer's 'G'igsaw is
available at:

http://philippe.hezaine.free.fr/spip.php?article46

New:

- GUI for 'randomization':
You have to install Python 2.6.x from your Linux distribution with
an activated Tk flag, so you'll benefit from the GUI and randomization
fonctions.
In fact now it's possible for each note to choose a random value for
'timing' (timestamps) and/or for Volume (dynamics).
You'll find all details on the way to use this interface in pdf's
application.

- To edit your file /home/.vimrc is no more mandatory.

- Apologies for the manual which is not totally translated yet.

All comments are welcome.

Have fun.

Phil.

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