problem with compillation of a large file

2010-12-09 Thread Stefan Thomas
Dear community,
I have a proplem with a large score.
When I run lilypond, I get at the end the error message
Preprocessing graphical objects...:9:110: In procedure
procedure-name in expression (procedure-name stil-proc):

> :9:110: Wrong type argument in position 1: #f
>
I can compile without problems all the parts of the score, but not the score
itself.
I also tried it with
export LILYPOND_GC_YIELD=10
but without any success.
The strange thing is:
with the same machine I could compile the same file without problems, just a
few months ago.
I don't understand this ...
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


How to parenthesize a time signature

2010-12-09 Thread Jonathan Wilkes
Greetings Lilypouncers,
 Is there a quick way to parenthesize a simple time signature?  
I'm not sure whether this is standard or not, but I used it once or 
twice at the beginning of a score that shows an excerpt from, say, the 
middle of a piece, to make it clear that the time signature also 
applied to the music leading up to the excerpt.  (I think I used it a 
long time ago in a copy job for a musicologist, but I can't be sure.)

Thanks,
Jonathan


  

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


Re: ANDLINUX: Easy virtualization option

2010-12-09 Thread Mike Blackstock
I hadn`t noticed that - thx for pointing it out. I`ll keep an eye out for
64-bit version.

On Tue, Dec 7, 2010 at 6:52 PM, Marc Mouries  wrote:

> thanks for passing the info. that's interesting. Too bad is supports only
> 32 bits OS.
>
> On Dec 6, 2010, at 8:54 PM, Mike Blackstock wrote:
>
> I've attached a screenshot of Ubuntu and Windows 7 running concurrently on
> a  1 gig netbook (yeah, believe it or not). andlinux has a somewhat
> different approach to virtualization, described here:
> http://www.techwandering.com/2008/02/20/andlinux
> -an-easy-way-to-run-linux-applications-right-on-your-windows-desktop/  In
> a nutshell, the linux kernel is recompiled as a native windows app, and it's
> much faster than either virtualbox or vmware.
>
> 500 meg download is at andlinux.org - if anybody wants to try it and has
> questions, ask away. It works unbelievably well - I've used vmware, and I
> wouldn;t dream of switching back.
>
> -Mike ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Tremolo beams between more than two notes

2010-12-09 Thread Reinhold Kainhofer
Am Mittwoch, 8. Dezember 2010, um 15:22:57 schrieb Phil Holmes:
> Yes - the code gets confused as the breves get higher:
> 
> \version "2.13.41"
> 
> \relative c' {
>   \repeat "tremolo" 4 { f16 a d a }
>   \repeat "tremolo" 4 { a16 b e b }
>   \repeat "tremolo" 4 { b d f d }
> }
> 
> You want a bug report, Reinhold?

Yes. Note, however, that this also happens with two-note tremolos:

\version "2.13.41"

\relative c' {
  \repeat "tremolo" 8 { f16 b }
  \repeat "tremolo" 8 { b16 e }
  \repeat "tremolo" 8 { d16 g }
  \repeat "tremolo" 8 { f16 b }
}

Console output is:
Processing `trem.ly'
Parsing...
Interpreting music... 
Preprocessing graphical objects...
programming error: Grob direction requested while calculation in progress. 
continuing, cross fingers
programming error: Grob direction requested while calculation in progress. 
continuing, cross fingers
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
trem.ly:6:24: warning: weird stem size, check for narrow beams
  \repeat "tremolo" 8 { 
d16 g }
Layout output to `trem.ps'...
Converting to `./trem.pdf'...


That problem also appears in 2.12.x, so it hasn't crept in recently...

Cheers,
Reinhold
-- 
--
Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org

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


musescore

2010-12-09 Thread Jan Nieuwenhuizen
This is smart pr


http://www.facebook.com/l.php?u=http%3A%2F%2Fmusescore.org%2Fen%2Fabout%2Ftestimonials&h=cd3b2

also note they have 1500 fans on #fb today!

Greetings, Jan

-- 
Jan Nieuwenhuizen  | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar®  http://AvatarAcademy.nl  


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


Re: How to parenthesize a time signature

2010-12-09 Thread Mark Polesky
Jonathan Wilkes wrote:
> Is there a quick way to parenthesize a simple time
> signature?

There's a quick way to bracketify a time signature:
http://lsr.dsi.unimi.it/LSR/Item?id=169

To get real parentheses requires a little more tweaking.
Maybe someone who has already done this will chime in.  If
not, I don't have time right now, but someone could tweak
the idea in this post to accomplish it:
http://lists.gnu.org/archive/html/lilypond-user/2009-05/msg00401.html

- Mark


  

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


Re: musescore

2010-12-09 Thread Nils Gey
We will see where this leads. 

"Set course to intercept, Number One"

Nils, out.

http://www.denemo.org


On Thu, 09 Dec 2010 11:49:57 +0100
Jan Nieuwenhuizen  wrote:

> This is smart pr
> 
> 
> http://www.facebook.com/l.php?u=http%3A%2F%2Fmusescore.org%2Fen%2Fabout%2Ftestimonials&h=cd3b2
> 
> also note they have 1500 fans on #fb today!
> 
> Greetings, Jan
> 
> -- 
> Jan Nieuwenhuizen  | GNU LilyPond http://lilypond.org
> Freelance IT http://JoyofSource.com | Avatar®  http://AvatarAcademy.nl  
> 
> 
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
> 

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


Re: Extracting pitch names from music

2010-12-09 Thread Michael Ellis
Just found the markup macro in the docs.  Changing

(ly:grob-set-property! grob 'text new-name)

to

(ly:grob-set-property! grob 'text (markup #:italic #:smaller new-name))

does what I'm looking for.  Is this the "right" way to handle issues like
this? By that question, I think  I really mean "Is there any downside to
using Scheme to solve problems like this?"

Cheers,
Mike


On Thu, Dec 9, 2010 at 1:02 PM, Michael Ellis wrote:

> Putting the \midi block inside a separate \score block solved the audio
> doubling issue.  I could still use some suggestions regarding how to control
> the font properties of the NoteNames output.  With lyrics, I can do things
> like
>
> \context {
>  \Lyrics
> %% Pack stanzas a little closer vertically
> minimumVerticalExtent = #'(0 . 0)
>  %% decrease lyric font size by 1 increment
>  \override LyricText #'font-size = #-1
>}
>
> Thanks,
> Mike
>
>
>
> On Tue, Dec 7, 2010 at 3:40 PM, Michael Ellis 
> wrote:
>
>> Thanks Valentin, that's quite helpful.  I ended up taking an approach you
>> suggested in a previous 
>> postto
>>  this list.  Using the NoteNames context with alternative note names seems
>> to be doing pretty much everything I want.
>>
>> Here's a revised version of my script that works as desired:
>>
>> % Moveable Do as lyrics example
>>
>> % define solfege pitchnames
>> pitchnames = #`(
>> (do . ,(ly:make-pitch -1 0 NATURAL))
>>  (re . ,(ly:make-pitch -1 1 NATURAL))
>> (mi . ,(ly:make-pitch -1 2 NATURAL))
>> )
>>
>> #(ly:parser-set-note-names parser pitchnames)
>>
>> % Apparently, LilyPond reverts to dutch names when
>>  % using the NoteNames context. The following
>> % workaround was posted by V. Villenave at
>> % http://lists.gnu.org/archive/html/lilypond-user/2010-10/msg00687.html
>>
>> newnames =
>> #`(("c" . "do")
>>("d" . "re")
>>("e" . "mi"))
>>
>> myNoteNames =
>> #(lambda (grob)
>>(let* ((default-name (ly:grob-property grob 'text))
>>   (new-name (assoc-get default-name newnames)))
>>  (ly:grob-set-property! grob 'text new-name)
>>(ly:text-interface::print grob)))
>>
>> % compose as though in C major
>>  mynotes =  \relative do' {\key do \major do2 re4( mi4) }
>>
>> % transpose to desired key
>> melody = \transpose do mi  { \mynotes }
>>
>> % Produce score with solfege names as lyrics
>> \score {
>> <<
>> \new Voice = "myVoice" {
>>  \melody
>> }
>> \context NoteNames \with {
>>\override NoteName #'stencil = #myNoteNames
>> } { \mynotes }
>>
>> >>
>> }
>> \version "2.12.3"
>>
>>
>> This approach seems to work ok with a larger example where I defined all
>> the chromatic solfege names.  The only issue I seem to be encountering in
>> the larger example is an unintended doubling of voices on the midi output.
>> Does the NoteNames engraver produce a midi stream by default?  If so, how
>> can I turn it off?
>>
>> My midi section looks like
>>
>>  \midi {
>> %% voodoo that lets us specify instrument in melody
>>  \context {
>>\Staff
>>\remove "Staff_performer"
>>  }
>>  \context {
>>\Voice
>>\consists "Staff_performer"
>>  }
>> }
>>
>>
>> Cheers,
>> Mike
>>
>>
>>
>> On Tue, Dec 7, 2010 at 11:41 AM, Valentin Villenave <
>> valen...@villenave.net> wrote:
>>
>>> On Tue, Dec 7, 2010 at 4:35 PM, Michael Ellis 
>>> wrote:
>>> > It seems to me that the best solution would be to use LilyPond's
>>> built-in
>>> > Scheme interpreter to extract the pitch names while the file is being
>>> > processed. I've made some attempts to use map with ly:note-pitchname,
>>> but so
>>> > far no success. This is probably because I know squat about Scheme,
>>> > especially as used in LilyPond scripts.
>>>
>>> Here's an attempt of a patch I recently made, that might give you some
>>> pointers:
>>>
>>> diff --git a/scm/chord-name.scm b/scm/chord-name.scm
>>> index 7f5909b..2853102 100644
>>> --- a/scm/chord-name.scm
>>> +++ b/scm/chord-name.scm
>>> @@ -59,15 +59,38 @@
>>>   (make-hspace-markup (if (= alteration SHARP) 0.2 0.1))
>>>   
>>>
>>> +(define (note-names-vector alist)
>>> +  "Extract note names from a pitchnames ALIST."
>>> +  (let ((name-ls '()))
>>> +(map (lambda (x)
>>> +  (let* ((pitch (cdr x))
>>> + (alteration (ly:pitch-alteration pitch)))
>>> +(if (eq? alteration 0)
>>> +(set! name-ls (cons
>>> +   (string-capitalize (symbol->string (car
>>> x)))
>>> +   name-ls)
>>> + alist)
>>> +(list->vector (reverse name-ls
>>> +
>>> -(define-public (note-name->markup pitch lowercase?)
>>> +(define-public (note-name->markup pitch lowercase? . input-language)
>>>  "Return pitch markup for PITCH."
>>> -  (make-line-markup
>>> -   (list
>>> -(make-simple-markup
>>> - (conditional-strin

Re: How to parenthesize a time signature

2010-12-09 Thread Carl Sorensen



On 12/9/10 8:28 AM, "Mark Polesky"  wrote:

> Jonathan Wilkes wrote:
>> Is there a quick way to parenthesize a simple time
>> signature?
> 
> There's a quick way to bracketify a time signature:
> http://lsr.dsi.unimi.it/LSR/Item?id=169
> 
> To get real parentheses requires a little more tweaking.
> Maybe someone who has already done this will chime in.  If
> not, I don't have time right now, but someone could tweak
> the idea in this post to accomplish it:
> http://lists.gnu.org/archive/html/lilypond-user/2009-05/msg00401.html
> 
\version "2.13.42"

\relative c'' {
  \override Staff.TimeSignature #'stencil = #(lambda (grob)
(parenthesize-stencil (ly:time-signature::print grob) 0.1 0.4 0.4 0.1 ))
  \time 2/4
  a4 b8 c
}


HTH,

Carl


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


Odd output

2010-12-09 Thread Marco Correia
Hi,

I just started using lilypond, so it is very possible that I'm making some 
mistake.

When compiling this example:

\include "english.ly"
{
\clef treble
\time 4/4
<<
 { fs'4 } 
 \\ 
 { f'4 } 
>>
}

I see two notes on fs (occupying the same position but with stems up and 
down). There is no indication that f is there.

Is this supposed to/ how do I fix it? 

Thanks!
Marco

-- 
Marco Correia 

-- 
--
Marco Correia

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


Re: How to parenthesize a time signature

2010-12-09 Thread Vicente Solsona
On Thu, 09 Dec 2010 01:36:23 +0100, Jonathan Wilkes   
wrote:



Greetings Lilypouncers,
 Is there a quick way to parenthesize a simple time signature?
I'm not sure whether this is standard or not, but I used it once or
twice at the beginning of a score that shows an excerpt from, say, the
middle of a piece, to make it clear that the time signature also
applied to the music leading up to the excerpt.  (I think I used it a
long time ago in a copy job for a musicologist, but I can't be sure.)

Thanks,
Jonathan


it is possible to put it between square brackets:

http://lilypond.org/doc/v2.12/input/lsr/lilypond-snippets/Staff-notation#Time-signature-in-parentheses

a *very* rough method to put it into "rounded" parenthesis could be:

---8<-

\version "2.12.3"

#(define ((parenthesize-time up down) grob)
  (grob-interpret-markup grob
(markup #:override '(baseline-skip . 0) #:number
  (#:line (
  #:vcenter "("
  (#:column (up down))
  #:vcenter ")" )

\relative c'' {

  \override Staff.TimeSignature #'stencil = #(parenthesize-time "2" "4")
  \time 2/4
  a4 b8 c
}

---8<-

you can hopefully tweak it further to suit your needs...

greetings,

Vicente


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


Re: lilypond cameo

2010-12-09 Thread Brett McCoy
On Wed, Dec 8, 2010 at 11:03 AM, Vicente Solsona  wrote:

> the following comments in the original video page
> (http://vimeo.com/17419652) are remarkable:
>
> Q. "Brilliant. Love the guitar solo! Sibelius or Finale?"
> A. "LilyPond"

Awesome!

-- 
Brett W. McCoy -- http://www.electricminstrel.com

"In the rhythm of music a secret is hidden; If I were to divulge it,
it would overturn the world."
    -- Jelaleddin Rumi

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


lilypond cameo

2010-12-09 Thread Vicente Solsona

dear lilyponders,

just received this from planet.linuxaudio.org:

http://createdigitalmusic.com/2010/12/utterly-brilliant-fan-made-jonathan-coulton-music-video-with-lilypad-notation-cameo/

the following comments in the original video page
(http://vimeo.com/17419652) are remarkable:

Q. "Brilliant. Love the guitar solo! Sibelius or Finale?"
A. "LilyPond"

~(:-D

greetings,

Vicente


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


Re: Extracting pitch names from music

2010-12-09 Thread Valentin Villenave
On Thu, Dec 9, 2010 at 7:02 PM, Michael Ellis  wrote:
> Putting the \midi block inside a separate \score block solved the audio
> doubling issue.  I could still use some suggestions regarding how to control
> the font properties of the NoteNames output.  With lyrics, I can do things
> like
> \context {
>  \Lyrics
> %% Pack stanzas a little closer vertically
> minimumVerticalExtent = #'(0 . 0)
>  %% decrease lyric font size by 1 increment
>  \override LyricText #'font-size = #-1
>}

You should be able to do something similar with
\context {
 \NoteNames
 \override NoteName #'foo = #bar
}

> Just found the markup macro in the docs.  Changing
>     (ly:grob-set-property! grob 'text new-name)
> to
>
>     (ly:grob-set-property! grob 'text (markup #:italic #:smaller new-name))
>
> does what I'm looking for.  Is this the "right" way to handle issues like
> this? By that question, I think  I really mean "Is there any downside to
> using Scheme to solve problems like this?"

Well, the downside is the need to use a Scheme function at all in the
first place :-)

But since you're using one anyway, you might as well fiddle with it to
your liking. That being said, I hope I'll be able to "fix" the note
names function soon, which may make things simpler (e.g. having the
ability to choose your note-names language, etc.)

Cheers,
Valentin.

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


Directions for setting up LyX 2.0 with lilypond 2.13+ on OS X

2010-12-09 Thread Henry Flurry
There are multiple ways to get this done, but there appears to be only one way 
sanctioned by the lilypond folks.

Most of the directions on this list talk of adding the 
.../LilyPond.app/Contents/Resources/bin to the $PATH in order to get LyX to 
work, but the problem with this is that it exposes at least one commonly used 
application (gs) that is NOT compiled to work properly when executed outside of 
the lilypond environment.  In fact, if LyX finds this gs instead of a properly 
installed gs, it will fail.

Apparently, in OS X, lilypond's gs is not meant to be exposed.  You need to set 
up a set of scripts which execute the lilypond, lilypond-book, etc. files 
directly.  See http://lilypond.org/macos-x.html  "macosx on the command line" 
for details on how to do this.

So, here are my steps:

- Download and install LilyPond.app 2.13 or greater.

- Create scripts lilypond, lilypond-book, and convert-ly and put them into 
~/bin.  See http://lilypond.org/macos-x.html  "macosx on the command line" for 
details on how to do this.

- Start up LyX, and add a full path name to your ~/bin into the Lyx -> 
Preferences -> Paths -> PATH prefix field.  In my LyX, I add at the end of the 
existing paths the text:

:/Users/flurry/bin

- Press the Save button on the Preferences panel.

- QUIT and RESTART LyX !!!  It seemed to me that this PATH was not updated for 
the following reconfigure command until I quit and restart LyX.

- Choose from the menu:  LyX -> Reconfigure.  This tells LyX to reconfigure 
itself and enable the appropriate modules.

- Quit and Restart LyX again, so that the new modules are loaded.

- Open the lilypond lyx example document.  You'll find it at:  
.../LyX.app/Contents/Resources/examples/lilypond.lyx

- You should see at the end of the document the music examples render in a few 
seconds.

IF you use a direct path to the lilypond's bin (e.g., 
/Applications/LilyPond.app/Contents/Resources/bin), then it is possible for LyX 
to called the gs that is located in this directory.  This will fail.  If you 
are going to use this path, then it needs to be at the END of your Path 
directory listed above - not the beginning.

HOWEVER, note that the lilypond developers do not sanction using this bin in 
any PATH environments.  Doing so exposes executables that will not function 
properly outside of the lilypond environment.

Thanks!
Henry Flurry


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


Re: musescore

2010-12-09 Thread Marc Mouries
i just tried it and it took me forever to enter 5 notes and add text about the 
notes.
However, looking at the lilypond file generated from MuseScore, this reminded 
me how big the size of the lilypond file is compared to the number of notes.
%=
%   created by MuseScore Version: 0.9.6.3
%  December 9, 2010
%=

\version "2.12.0"



#(set-default-paper-size "a4")

\paper {
  line-width= 190\mm
  left-margin   = 10\mm
  top-margin= 10\mm
  bottom-margin = 20\mm
  %%indent = 0 \mm 
  %%set to ##t if your score is less than one page: 
  ragged-last-bottom = ##t 
  ragged-bottom = ##f  
  %% in orchestral scores you probably want the two bold slashes 
  %% separating the systems: so uncomment the following line: 
  %% system-separator-markup = \slashSeparator 
  }

\header {
title = "Test-Score"
}

APnovoiceAA = \relative c'{
\set Staff.instrumentName = #"Piano"
\set Staff.shortInstrumentName = #"Pno."
\clef treble
%staffkeysig
\key c \major 
c4 ^\markup {\upright  "C"} d ^\markup {\upright  "D"} e ^\markup {\upright  "E"} f ^\markup {\upright  "F"}  | % 1
r1  | % 2
r  | % 3
r  | % 4
r \bar "|."\bar "|." 
}% end of last bar in partorvoice

 

AvoiceBA = \relative c{
\set Staff.instrumentName = #""
\set Staff.shortInstrumentName = #""
\clef bass
%staffkeysig
\key c \major 
r1  | % 1
r  | % 2
r  | % 3
r  | % 4
r \bar "|."\bar "|." 
}% end of last bar in partorvoice


\score { 
<< 
\context PianoStaff <<
\set PianoStaff.instrumentName="Piano" 
\context Staff = APnopartA << 
\context Voice = APnovoiceAA \APnovoiceAA
\set Staff.instrumentName = #""
\set Staff.shortInstrumentName = #""
>>


\context Staff = ApartB << 
\context Voice = AvoiceBA \AvoiceBA
\set Staff.instrumentName = #""
\set Staff.shortInstrumentName = #""
>>


>> %end of PianoStaffA


  \set Score.skipBars = ##t
  %%\set Score.melismaBusyProperties = #'()
  \override Score.BarNumber #'break-visibility = #end-of-line-invisible %%every bar is numbered.!!!
  %% remove previous line to get barnumbers only at beginning of system.
   #(set-accidental-style 'modern-cautionary)
  \set Score.markFormatter = #format-mark-box-letters %%boxed rehearsal-marks
   \override Score.TimeSignature #'style = #'() %%makes timesigs always numerical
  %% remove previous line to get cut-time/alla breve or common time 
  \set Score.pedalSustainStyle = #'mixed 
   %% make spanners comprise the note it end on, so that there is no doubt that this note is included.
   \override Score.TrillSpanner #'(bound-details right padding) = #-2
  \override Score.TextSpanner #'(bound-details right padding) = #-1
  %% Lilypond's normal textspanners are too weak:  
  \override Score.TextSpanner #'dash-period = #1
  \override Score.TextSpanner #'dash-fraction = #0.5
  %% lilypond chordname font, like mscore jazzfont, is both far too big and extremely ugly (olagu...@start.no):
  \override Score.ChordName #'font-family = #'roman 
  \override Score.ChordName #'font-size =#0 
  %% In my experience the normal thing in printed scores is maj7 and not the triangle. (olagunde):
  \set Score.majorSevenSymbol = \markup {maj7}
  >>

  %% Boosey and Hawkes, and Peters, have barlines spanning all staff-groups in a score,
  %% Eulenburg and Philharmonia, like Lilypond, have no barlines between staffgroups.
  %% If you want the Eulenburg/Lilypond style, comment out the following line:
  \layout {\context {\Score \consists Span_bar_engraver}}
}%% end of score-block 

#(set-global-staff-size 20)


I like however the page that allows to sync scores with youtube videos.
Check it out it's really nice. http://musescore.com/node/855


-- Marc

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


RE: musescore

2010-12-09 Thread Ed Ardzinski


 

A friend sent me a link about it recently and I looked over the 1st few 
tutorials, but did not go any further.  It seemed to be a decent concept from 
the little I saw.
 
Does anyone have an opinion if it's a good manuscript program?  Not that I am 
interested in stopping my use of Lilypond...
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Extracting pitch names from music

2010-12-09 Thread Michael Ellis
Putting the \midi block inside a separate \score block solved the audio
doubling issue.  I could still use some suggestions regarding how to control
the font properties of the NoteNames output.  With lyrics, I can do things
like

\context {
 \Lyrics
%% Pack stanzas a little closer vertically
minimumVerticalExtent = #'(0 . 0)
 %% decrease lyric font size by 1 increment
 \override LyricText #'font-size = #-1
   }

Thanks,
Mike


On Tue, Dec 7, 2010 at 3:40 PM, Michael Ellis wrote:

> Thanks Valentin, that's quite helpful.  I ended up taking an approach you
> suggested in a previous 
> postto 
> this list.  Using the NoteNames context with alternative note names seems
> to be doing pretty much everything I want.
>
> Here's a revised version of my script that works as desired:
>
> % Moveable Do as lyrics example
>
> % define solfege pitchnames
> pitchnames = #`(
> (do . ,(ly:make-pitch -1 0 NATURAL))
>  (re . ,(ly:make-pitch -1 1 NATURAL))
> (mi . ,(ly:make-pitch -1 2 NATURAL))
> )
>
> #(ly:parser-set-note-names parser pitchnames)
>
> % Apparently, LilyPond reverts to dutch names when
> % using the NoteNames context. The following
> % workaround was posted by V. Villenave at
> % http://lists.gnu.org/archive/html/lilypond-user/2010-10/msg00687.html
>
> newnames =
> #`(("c" . "do")
>("d" . "re")
>("e" . "mi"))
>
> myNoteNames =
> #(lambda (grob)
>(let* ((default-name (ly:grob-property grob 'text))
>   (new-name (assoc-get default-name newnames)))
>  (ly:grob-set-property! grob 'text new-name)
>(ly:text-interface::print grob)))
>
> % compose as though in C major
> mynotes =  \relative do' {\key do \major do2 re4( mi4) }
>
> % transpose to desired key
> melody = \transpose do mi  { \mynotes }
>
> % Produce score with solfege names as lyrics
> \score {
> <<
> \new Voice = "myVoice" {
>  \melody
> }
> \context NoteNames \with {
>\override NoteName #'stencil = #myNoteNames
> } { \mynotes }
>
> >>
> }
> \version "2.12.3"
>
>
> This approach seems to work ok with a larger example where I defined all
> the chromatic solfege names.  The only issue I seem to be encountering in
> the larger example is an unintended doubling of voices on the midi output.
> Does the NoteNames engraver produce a midi stream by default?  If so, how
> can I turn it off?
>
> My midi section looks like
>
>  \midi {
> %% voodoo that lets us specify instrument in melody
>  \context {
>\Staff
>\remove "Staff_performer"
>  }
>  \context {
>\Voice
>\consists "Staff_performer"
>  }
> }
>
>
> Cheers,
> Mike
>
>
>
> On Tue, Dec 7, 2010 at 11:41 AM, Valentin Villenave <
> valen...@villenave.net> wrote:
>
>> On Tue, Dec 7, 2010 at 4:35 PM, Michael Ellis 
>> wrote:
>> > It seems to me that the best solution would be to use LilyPond's
>> built-in
>> > Scheme interpreter to extract the pitch names while the file is being
>> > processed. I've made some attempts to use map with ly:note-pitchname,
>> but so
>> > far no success. This is probably because I know squat about Scheme,
>> > especially as used in LilyPond scripts.
>>
>> Here's an attempt of a patch I recently made, that might give you some
>> pointers:
>>
>> diff --git a/scm/chord-name.scm b/scm/chord-name.scm
>> index 7f5909b..2853102 100644
>> --- a/scm/chord-name.scm
>> +++ b/scm/chord-name.scm
>> @@ -59,15 +59,38 @@
>>   (make-hspace-markup (if (= alteration SHARP) 0.2 0.1))
>>   
>>
>> +(define (note-names-vector alist)
>> +  "Extract note names from a pitchnames ALIST."
>> +  (let ((name-ls '()))
>> +(map (lambda (x)
>> +  (let* ((pitch (cdr x))
>> + (alteration (ly:pitch-alteration pitch)))
>> +(if (eq? alteration 0)
>> +(set! name-ls (cons
>> +   (string-capitalize (symbol->string (car
>> x)))
>> +   name-ls)
>> + alist)
>> +(list->vector (reverse name-ls
>> +
>> -(define-public (note-name->markup pitch lowercase?)
>> +(define-public (note-name->markup pitch lowercase? . input-language)
>>  "Return pitch markup for PITCH."
>> -  (make-line-markup
>> -   (list
>> -(make-simple-markup
>> - (conditional-string-downcase
>> -  (vector-ref #("C" "D" "E" "F" "G" "A" "B") (ly:pitch-notename
>> pitch))
>> -  lowercase?))
>> -(accidental->markup (ly:pitch-alteration pitch)
>> +  (let* ((get-pitchnames (lambda (x)
>> +  (ly:assoc-get (string->symbol x)
>> +language-pitch-names)))
>> +(alist (get-pitchnames default-language)))
>> +(if input-language
>> +   (cond ((string? input-language)
>> +  (set! alist (get-pitchnames input-language)))
>> + ((boolean? input-language))
>> + (set! alis

RE: Odd output

2010-12-09 Thread James Lowe
Hello


-Original Message-
From: lilypond-user-bounces+james.lowe=datacore@gnu.org on behalf of Marco 
Correia
Sent: Fri 12/10/2010 0:35
To: lilypond-user@gnu.org
Subject: Odd output
 
Hi,

I just started using lilypond, so it is very possible that I'm making some 
mistake.

When compiling this example:

\include "english.ly"
{
\clef treble
\time 4/4
<<
 { fs'4 } 
 \\ 
 { f'4 } 
>>
}

I see two notes on fs (occupying the same position but with stems up and 
down). There is no indication that f is there.

Is this supposed to/ how do I fix it? 

--

I believe this is the known issue documented

Someone maybe able to give some better solutions but for instance you can

--

\include "english.ly"
{
\clef treble
\time 4/4
<<
 { fs'?4 } 
% This moves the second note to the right adjust the number as you see fit
 \once \override NoteColumn #'force-hshift = #1.7
 \\ 
 { f'!4 } 
>>
}

--

There is also a snippet in the documentation

http://lilypond.org/doc/v2.13/Documentation/snippets/simultaneous-notes#displaying-complex-chords

that might help.

and see

http://lilypond.org/doc/v2.13/Documentation/notation/multiple-voices#collision-resolution

also see the 'known issue' at the bottom of this page - believe this applies 
here even though 'chords' are mentioned.

James

PS To anyone else who knows, if this known issue does apply in this case, then 
it might be a good idea to not use the word 'chord' as that can mean different 
things to different types of musicians - if you see what I mean. We could 
therefore edit the documentation?

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


RE: lilypond cameo

2010-12-09 Thread James Lowe
Hmm..that video was only slightly more annoying than a bouncing ball over 
lyrics...for those that want to 'show me the money'...it all starts with 
LilyPond at about 2:11.

Although he obviously doesn't like the  'sans' Font for Chords

;)

James


-Original Message-
From: lilypond-user-bounces+james.lowe=datacore@gnu.org on behalf of Brett 
McCoy
Sent: Fri 12/10/2010 0:49
To: Vicente Solsona
Cc: lilypond-user@gnu.org
Subject: Re: lilypond cameo
 
On Wed, Dec 8, 2010 at 11:03 AM, Vicente Solsona  wrote:

> the following comments in the original video page
> (http://vimeo.com/17419652) are remarkable:
>
> Q. "Brilliant. Love the guitar solo! Sibelius or Finale?"
> A. "LilyPond"

Awesome!

-- 
Brett W. McCoy -- http://www.electricminstrel.com

"In the rhythm of music a secret is hidden; If I were to divulge it,
it would overturn the world."
    -- Jelaleddin Rumi

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


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


RE: How to parenthesize a time signature

2010-12-09 Thread James Lowe
Carl,


-Original Message-
From: lilypond-user-bounces+james.lowe=datacore@gnu.org on behalf of Carl 
Sorensen
Sent: Fri 12/10/2010 0:06
To: Mark Polesky; lilypond-user@gnu.org; Jonathan Wilkes
Subject: Re: How to parenthesize a time signature

On 12/9/10 8:28 AM, "Mark Polesky"  wrote:

> Jonathan Wilkes wrote:
>> Is there a quick way to parenthesize a simple time
>> signature?
> 
> There's a quick way to bracketify a time signature:
> http://lsr.dsi.unimi.it/LSR/Item?id=169
> 
> To get real parentheses requires a little more tweaking.
> Maybe someone who has already done this will chime in.  If
> not, I don't have time right now, but someone could tweak
> the idea in this post to accomplish it:
> http://lists.gnu.org/archive/html/lilypond-user/2009-05/msg00401.html
> 
\version "2.13.42"

\relative c'' {
  \override Staff.TimeSignature #'stencil = #(lambda (grob)
(parenthesize-stencil (ly:time-signature::print grob) 0.1 0.4 0.4 0.1 ))
  \time 2/4
  a4 b8 c
}


---

I tried to add this to the LSR (along with the other example from Vincente) but 
your snippet failed to compile there. I assume therefore that this will only 
work with a 2.13.x version?

James

PS @LSR People, I have added both examples and this one has most of the 'meat' 
commented out with '[Needs LSR Update] in title which I think is the correct 
policy? Also the original example should probably have its title changed to 
'bracket' rather than 'parenthesis' only that these last two examples 
explicitly use the 'parenthesis grob/engraver' (?).

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


Re: lilypond cameo

2010-12-09 Thread Jan Warchoł
2010/12/10 James Lowe 
>
> Hmm..that video was only slightly more annoying than a bouncing ball over 
> lyrics...for those that want to 'show me the money'...it all starts with 
> LilyPond at about 2:11.
>
> Although he obviously doesn't like the  'sans' Font for Chords

I don't like it too, it doesn't blend nicely with rest of the score.
Perhaps it's because of Feta font, which is quite ornamental and chord
font is not (i think they would blend quite good with some finale
scores)... I have the impression that the chord names with default
font are yelling at me: "here we are and we are brutal! yeah, the
notes are subtle but we, we are like hit in your face"
;)
Seriously though, have you considered changing the default font for chords?

cheers,
Janek

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