Re: guitar inlays / labels

2012-11-23 Thread Hugh Myers
It has been practically forever since I did any serious LP work, but just
looking at you code, the ability to draw the 'dot' with the 'A' implies the
possibility of what you want IF you can a. control the vertical location of
the dot and cause it to be filled in as black. Given that, then your only
remaining concern would be the ability of overlaying an inlay with needed
dot notation as you have shown. Trivial in postscript less so here. It is
as my fellow programmers would say 'just another SMOP' Small Matter Of
Programming :) Luck...

--hsm


On Fri, Nov 23, 2012 at 3:04 AM, Curt accou...@museworld.com wrote:

 Hi, I'm thinking of generating guitar fret diagrams to drill note names
 for beginning guitar, and I've gotten this far:

 Can anyone think of a way to put the fretboard inlay markers in there?
  Either on the diagram, or as labels above or below the fret diagram in the
 right fret location?  dots on 3rd, 5th, 7th, 9th, double on the 12th.

 (lilypond code below)

 \version 2.16.00
 \include english.ly

 \paper{
   indent=0\mm
   line-width=120\mm
   oddFooterMarkup=##f
   oddHeaderMarkup=##f
   bookTitleMarkup = ##f
   scoreTitleMarkup = ##f
 }

 \score {
 
   \new Staff \with {
 \clef treble
 \remove Time_signature_engraver
 }
 \transpose c c \relative fs' {
 \override TextScript #'size = #'3.0




  a^\markup {
   \override #'(fret-diagram-details . (
(finger-code . in-dot)
(dot-label-font-mag . 0.6)
(orientation . landscape)
(xo-font-magnification . 0.4)
(fret-count . 12)
(xo-padding . 0.3))) {
  \fret-diagram-verbose
   #'( (place-fret 2 10 A inverted) )


  }
  }
 }
  

 \layout {
 \context {
  \Staff
   \remove Bar_engraver
 }
 }
 \midi {
  \context {
  \Score \with
 \settingsFrom { \tempo 4=180 }
  }
 }
 }

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


PastedGraphic-2.png___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Website easier editing

2010-05-07 Thread Hugh Myers
A somewhat pragmatic approach would be to use a single page suitably
subdivided if no scrolling is involved. Else use a two page solution.
The fewer pages a user has to link to the faster that person finds
what they are looking for.

--hsm


On Fri, May 7, 2010 at 8:13 AM, Graham Percival
gra...@percival-music.ca wrote:
 Hi all,

 Colin Campbell has been working with me on the Introduction of the
 new website.  However, we're still debating what to do with the
 Easier editing page:
    http://lilypond.org/website/easier-editing.html

 In particular, should we:
  1) list all programs that help or produce lilypond input code on
     this page, or

  2) only list a few programs here and list the rest elsewhere?
     (probably somewhere in Usage, with a link from this page
     to that location)

 When he began working, he had one opinion and I had the other.
 But over the past four months, we've switched positions like a
 finely-honed comedy act -- we still disagree, but we've both taken
 up the other person's initial position.

 The argument for #1: we have a unified place for people to look;
 it's easier to update; it's easier to find; etc.

 The argument for #2: it doesn't make sense to have algorithmic
 programming environments like Strasheela and FOMUS in the same
 list as Denemo, Frescobaldi, and LilyPondTool; having the extra
 options will only confused newbies; if we keep 4 or 5
 highlighted programs in this list and move the rest somewhere
 else, it won't be much harder to maintain the list; etc.


 I'm not particularly looking for votes on this issue -- rather,
 I'm looking for reasons for (or against) #1 and #2 that we haven't
 thought of.  It would be great if somebody said we should do #x
 because XYZ and then have us go of course!  XYZ!  That makes
 everything totally clear; we all agree due to XYZ.


 If you have other concerns about the website, please don't mention
 them here.  I'll be posting other questions once this issue is
 resolved.

 Cheers,
 - Graham


 ___
 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: documentation help seriously needed

2010-03-22 Thread Hugh Myers
Graham,

My area of expertise is editing and one of the things that often make
or break a set of docs are the indexes for each manual. Do we have any
kind of regression scheme (sorry about the pun) to check for problems
peculiar to an index? For instance does each citation in the index
lead to a page with the word in context. Given a list of key words and
concepts are they in the index? A lot of user questions can be met
with a healthy does of RTFM but that becomes increasingly harder to do
the thicker the manual(s) become(s). Some of this is problematic in
that the best time to do this is with the text frozen--- this to avoid
repeated toe-stepping-apon by repeated changes, deletions and
additions.

--hsm

On Mon, Mar 22, 2010 at 3:16 PM, Graham Percival
gra...@percival-music.ca wrote:
 No, that's fine -- we already have somebody to handle the
 git+compile+doc policy stuff.  So far I have no indication that
 he's overwhelmed with work.

 If you're up for writing a few lilypond examples (say, creating an
 example of \bendAfter using a non-integer argument), *that* could
 be useful... but I'm pretty certain (... well, pretty *hopeful*,
 at least)  that we'll have enough helpful users who can create
 such examples.

 Maybe get back in touch in a week if there doesn't seem to be any
 movement on this issue.  :)

 Cheers,
 - Graham

 On Mon, Mar 22, 2010 at 03:53:12PM -0500, Jonathan Kulp wrote:
    I should be able to handle some git committing / compile checking, and
    stuff like that if others can do the worst of the typing.
    Jon

    On Mon, Mar 22, 2010 at 3:36 PM, Graham Percival
    gra...@percival-music.ca wrote:

      Here's the current situation with the documentation.

      1. we have a number of users who know a lot about lilypond, but
      A  are not familiar with git + compiling + our doc policies.
      2. we have a doc editor on Windows who knows about
      A  git+compiling+doc policies, but knows relatively little
      A  about lilypond.
      3. we have a number of open documentation issues, some of them
      A  critical [1].

      If you belong to category 1, and think you might be able to help
      with category 3, please contact category 2 (CC'd on this email) or
      me.

      [1]
      
 http://code.google.com/p/lilypond/issues/list?can=2q=type=Documentationsort=priority

      Cheers,
      - Graham

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

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


 ___
 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: dynamic and midi velocity

2010-03-11 Thread Hugh Myers
Go right a head and implement your suggestion--- Lilypond is open
source you know...

---hsm

On Thu, Mar 11, 2010 at 8:38 AM, David Raleigh Arnold
d...@openguitar.com wrote:
 On Saturday 06 March 2010 03:12:11 David Kastrup wrote:
 David Raleigh Arnold d...@openguitar.com writes:
  Ideally the volume should be preset for each instrument according to
  ratios expressing the relative natural loudness of the instrument, IOW
  set it and forget it, and only velocity should be used for dynamics.
  That is obviously the purpose of the design.  Why fight it?  No good
  can come from twiddling the volume in the middle of the performance.

 I have a (not quite cheap) Ketron Keyboard with a volume pedal.  I was
 rather surprised to realize that putting it to zero would
 a) considerably lower the volume of notes already hit
 b) completely stop new notes from being sounded

 I would have thought that it would act more or less as a simple analog
 volume control, but it would appear that it _partially_ affects notes
 already hit.

 Interesting.  I have not checked the corresponding Midi messages,
 though.


 Ha!  The volumes should be part of the instrument specifications for
 any lilypond/midi document, and dynamics should relate to velocity
 alone.  To do otherwise was a major mistake in the midi implementation in
 lilypond.  It would be a very good idea to quit trying to make
 it work in some other way.

 Of course the solution to the problem is to instantiate a new
 voice, instrument and volume for every dynamic.  Surely a lot
 of trouble for nothing.  Regards, daveA


 ___
 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: Changing staff size

2010-02-10 Thread Hugh Myers
If they don't do the same thing then clearly change the documentation.
To the degree that they do something different, changing the name of
the command would be good as well. I also like the idea of independent
changes as well--- which if possible should be more clearly reflected
in the docs.

--hsm

On Wed, Feb 10, 2010 at 9:53 AM, David Stocker
dstoc...@thenotesetter.com wrote:
 I just saw the warning about staff spaces at the bottom of the documentation
 page. The question remains, is this behavior beneficial? If so, should the
 documentation and command wording simply be reworked?

 David

 Chris wrote:

 Hi! Is it possible to change the staff size?
 I found in the documentation only a command to change the note size.


 ___
 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



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


index additions

2010-02-01 Thread Hugh Myers
Given the distance in the index between page and
print-first-page-number I'd like to suggest changing the text in
notation\spacing.itely starting at line 645 from:

@item print-first-page-number
@funindex print-first-page-number

If set to true, a page number is printed on the first page.
Default: @code{##f}.

@item print-page-number
@funindex print-page-number

If set to false, page numbers are not printed.  Default:
@code{##t}.

to add two new index entries:

@cindex page numbers, print first
@item print-first-page-number
@funindex print-first-page-number

If set to true, a page number is printed on the first page.
Default: @code{##f}.

@cindex page numbers, supress
@item print-page-number
@funindex print-page-number

If set to false, page numbers are not printed.  Default:
@code{##t}.

--hsm
p.s. this should probably propagate to *\notation as necessary...


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


abc2ly 404 error

2010-01-31 Thread Hugh Myers
The first URL mentioned in:

C:\Users\hsmyers\Desktop\Lily Projectsabc2ly -h
Usage: abc2ly [OPTION]... FILE

abc2ly converts ABC music files (see
http://www.gre.ac.uk/~c.walshaw/abc2mtex/abc.txt) to LilyPond input.

Options:
   --version  show version number and exit
   -h, --help show this help and exit
   -o, --output=FILE  write output to FILE
   -s, --strict   be strict about success
   -b, --beams=None   preserve ABC's notion of beams

Report bugs via
http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs

gives a 404 error. Given that http://abcnotation.com/ is the current
locus for abc matters, perhaps this needs an update?

--hsm


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


Re: abc2ly 404 error

2010-01-31 Thread Hugh Myers
You might want to add abc2ly to their software list as well, since the
old write-up seems to have fallen along the wayside.

--hsm

On Sun, Jan 31, 2010 at 7:49 PM, Patrick McCarty pnor...@gmail.com wrote:
 On 2010-01-31, Hugh Myers wrote:
 The first URL mentioned in:

 C:\Users\hsmyers\Desktop\Lily Projectsabc2ly -h
 Usage: abc2ly [OPTION]... FILE

 abc2ly converts ABC music files (see
 http://www.gre.ac.uk/~c.walshaw/abc2mtex/abc.txt) to LilyPond input.

 Options:
        --version      show version number and exit
    -h, --help         show this help and exit
    -o, --output=FILE  write output to FILE
    -s, --strict       be strict about success
    -b, --beams=None   preserve ABC's notion of beams

 Report bugs via
 http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs

 gives a 404 error. Given that http://abcnotation.com/ is the current
 locus for abc matters, perhaps this needs an update?

 Thanks for the report.  I've fixed this in git.

 -Patrick



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


indexing the docs

2010-01-31 Thread Hugh Myers
What mechanism creates the index(s) for the documentation? I ask this
because while my printed documentation is badly out of date(I'm
waiting for 12.14 ;-) ) I by chance noticed three problems just in one
project this afternoon; no entry for page number, both entries for
page break point to wrong page. Since this is for 2.10 it is probably
moot, but I thought I'd ask if for no other reason than to find out
how it is done and how it is tested.

--hsm


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


Re: indexing the docs

2010-01-31 Thread Hugh Myers
Will do. Perhaps this is a way for me to help out.

--hsm

On Sun, Jan 31, 2010 at 8:33 PM, Graham Percival
gra...@percival-music.ca wrote:
 On Sun, Jan 31, 2010 at 08:26:21PM -0700, Hugh Myers wrote:
 What mechanism creates the index(s) for the documentation?

 Texinfo.  Somebody adds @cindex to the docs, and texinfo prints
 the page of that entry.

 If you want to add/move @cindex entries, we can talk.  Look at the
 docs in webgit first, and glance at the contributor's guide.

 Cheers,
 - Graham



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


Re: svg output

2010-01-19 Thread Hugh Myers
SVG is not specific to Windows--- it is a web standard. If Inkscape
can manipulate SVG then you can do as described...

--hsm

On Tue, Jan 19, 2010 at 4:32 PM, Gerard McConnell gerry...@indigo.ie wrote:
 Am I wrong in thinking that when the SVG output is usable
 for Windows machines,  then that output can be imported
 into Inkscape, where it can be worked on further to
 produce pages like those in children's piano tutors, with
 pictures, circles around clefs or key signatures, pretty much
 any sort of notation and graphic on the same page?
 Gerard
 ___
 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: svg output

2010-01-16 Thread Hugh Myers
Keeping in mind that I agree with Graham on all points, here is a
recent quote from Wikipedia:

All major modern web browsers except Microsoft Internet Explorer
support and render SVG markup directly.[3] To view SVG files in
Internet Explorer, either users have to download and install a browser
plugin, or the webmaster can include SVG Web, a JavaScript library
currently under development at Google Code[4].

This suggests that 'next year in Jerusalem' is a bit closer than
previously thought.

--hsm

On Sat, Jan 16, 2010 at 8:33 AM, Graham Percival
gra...@percival-music.ca wrote:
 On Sat, Jan 16, 2010 at 2:56 PM, David Raleigh Arnold
 d...@openguitar.com wrote:
 On Thu, 14 Jan 2010 20:09:36 +
 Graham Percival gra...@percival-music.ca wrote:

 new feature (*cough* bugfix)

 What does that mean?

 It means that the SVG update introduced, and relied on, so many
 architectural changes that it's silly to call it a bugfix.

 Why wasn't svg output fixed when it broke?

 Because nobody, INCLUDING YOURSELF, sent a well-formed patch to fix it
 when it broke.

  Is there is a problem with priorities?

 Yes -- yours.  You're not willing to put the effort into helping the
 lilypond development team, but you feel qualified to second-guess us.

 If you're interested in helping, let's talk.  We current have a bit of
 a crisis with bugs -- we don't have enough people checking for
 regressions.  This appears to be an item close to your interests.  And
 all you need is lilypond, a web browser, and an email client.
 Absolutely no programming needed.

 Prime example: an hour ago I uploaded 2.13.11, but I forgot to check
 the regtest comparison.  Whoops.  I'm so lazy and evil and bad.
 (ladies: I'm /deliciously/ bad)

 It would be nice if somebody could check the regtest comparison...
 it's too late to recall 2.13.11 if it broke anything, but if it *did*
 break something, the sooner we find out about it, the faster we can
 fix it.

 More info in the Contributor's Guide 7.4 Checking and verifying issues
 http://lilypond.org/doc/v2.13/Documentation/contributor/checking-and-verifying-issues


 After that, it would be nice if somebody could check all the regtests.
  One person has been doing it, but there's no guarantee that he's
 found everything.  Again, the sooner we find out if something broke,
 the faster it will be to fix.

 ... of course, if nobody cares about having a stable lilypond that
 doesn't break features, then go ahead and ignore these requests for
 help.  But don't come crying to me when stuff breaks.

  Doesn't lilypond's on line output,
 including the docs, look a million times better with svg?

 Err, we can't make the html docs use svg.  Last time I checked, even
 firefox doesn't render lilypond svgs out of the box (it required a
 special ~/.font/ dir; no clue how it would be done on windows).  And
 even if the open-source browsers properly render the SVG spec -- which
 will probably happen within the next 3 years, but I'm not holding my
 breath -- there's still the problem of IE.

 I seriously doubt that we could consider such a switch for at least
 the next 10 years.

 Why the rant?

 The rant is because you're demanding that other people do work that
 you're not willing to do yourself.  This bugs the bloody mao out of
 me.

 - Graham


 ___
 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: not able to install lilypond 2.12.2after ¨inval id?conversion¨ on Ububtu 9.10

2009-12-31 Thread Hugh Myers
'const'--- bah humbug; crutch for newbs who don't know how to program ;-)

--hsm

On Thu, Dec 31, 2009 at 4:09 PM, Matthias Kilian k...@outback.escape.de wrote:
 On Thu, Dec 31, 2009 at 12:42:10PM -0800, Patrick McCarty wrote:
  Second, if you really want to compile for some reason, compile
  2.12.3, which should include that fix.

 2.12.3 does indeed include the fix in lily/relocate.cc.

 This may help, but IMHO Ubuntu ships wrong headers or whatever.
 strchr(3) returns char *, not const char *.


 ___
 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: Need help before I can ask the right question...

2009-12-20 Thread Hugh Myers
Here is what I've pieced together thus far:

%%
%%
%% s1.ly -- first scale from Diatonic Major and Minor Scales by Andres Segovia
%%
%%
\version 2.13.7
\header {
  title = Diatonic Major and Minor Scales
  subtitle = Scale 1
  composer = Andres Segovia
  meter = Practice each scale apoyando
  piece = seven times as indicated below
}
\layout {
  \context {
\Staff
\remove Time_signature_engraver
  }
}
theScale = {
  c4-2 d-4 e-1 f-2
  g-4 a-1 b-3 c-1
  d-3 e-1 f-2 g-4
  a-1 b-3 c-4 b-3
  a-1 g-4 f-2 e-1
  d-1 c-3 b-1 a-3
  g-4 f-2 e-1 d-4
  c-2
  \bar :|
}
{
  \set Score.defaultBarType = 
  
\new StaffGroup

  \new Staff \relative c' {
\theScale
  }
  \new TabStaff \relative c {
\theScale
  }

  
}

This leaves only the information beneath the notes left out. I believe
the numbers shown above the notes represent fingering (although I'm
hardly sure[it at least matches the original].) The numbers and
spanning lines under the notes can't of course be fingering since that
would be impossible. Also before I forget, this is a practice exercise
for guitar...

On Sun, Dec 20, 2009 at 3:07 AM, Nick Payne nick.pa...@internode.on.net wrote:
 On 20/12/09 12:17, Hugh Myers wrote:

 In Segovia's 'Diatonic Major and Minor Scales', under the notes shown
 for a given scale are marks beginning with a number surrounded by
 parenthesis followed by a line vaguely parallel to the notes,
 concluding with an uptick between a given pair of notes. What is this
 called and how might I duplicate it in Lilypond?


 You mean something like this?

 %%
 \version 2.13.9

 \paper {
    #(set-paper-size a4)
    indent = 0\cm
 }

 string = #(define-music-function (parser location stringnum osp dirn shorten
 adjBreak adjEnd)
    (string? number? number? pair? number? number?)
 #{
    \once \override TextSpanner #'outside-staff-priority = #$osp
    \once \override TextSpanner #'bound-details #'left #'text = \markup \bold
 { \teeny \concat { \circle { \finger $stringnum }   } }
    \once \override TextSpanner #'font-shape = #'upright
    \once \override TextSpanner #'direction = #$dirn
    \once \override TextSpanner #'dash-period = #0.8
    \once \override TextSpanner #'dash-fraction = #0.6
    \once \override TextSpanner #'thickness = #0.8
    \once \override TextSpanner #'bound-details #'right #'text = \markup {
 \draw-line #(cons 0 (/ $dirn -2)) }
    \once \override TextSpanner #'bound-details #'left #'stencil-align-dir-y
 = #CENTER
    \once \override TextSpanner #'bound-details #'left #'padding = #(car
 $shorten)
    \once \override TextSpanner #'bound-details #'right #'padding = #(cdr
 $shorten)
    \once \override TextSpanner #'bound-details #'right-broken #'padding =
 #$adjEnd
    \once \override TextSpanner #'bound-details #'left-broken #'X =
 #$adjBreak
    \once \override TextSpanner #'bound-details #'left-broken #'text = ##f
    \once \override TextSpanner #'bound-details #'right-broken #'text = ##f
 #})

 \score {
    \relative c {
        \clef treble_8
        \override Fingering #'staff-padding = #'()
        \set fingeringOrientations = #'(left)
        \override Fingering #'add-stem-support = ##f
        \string 6 #0 #UP #'(0 . -1) #1 #1 f,-1\startTextSpan fis-2
 g-3 gis-4\stopTextSpan
        \string 5 #0 #UP #'(0 . -1) #1 #1 b-1\startTextSpan c-2 cis-3
 d-4\stopTextSpan
        \string 4 #0 #UP #'(0 . -1) #1 #1 f-1\startTextSpan fis-2 g-3
 gis-4\stopTextSpan
        \string 3 #0 #DOWN #'(0 . -0.5) #1 #1 b-1\startTextSpan c-2
 cis-3 d-4\stopTextSpan
        \string 2 #0 #DOWN #'(0 . -0.5) #1 #1 e-1\startTextSpan f-2
 fis-3 g-4\stopTextSpan
        \string 1 #0 #DOWN #'(0 . -0.5) #1 #1 b-1\startTextSpan c-2
 cis-3 d-4 c-1 cis-2 d-3 dis-4\stopTextSpan
        \string 2 #0 #DOWN #'(0 . -0.5) #1 #1 f,-1\startTextSpan fis-2
 g-3 gis-4\stopTextSpan
        \string 3 #0 #DOWN #'(0 . -0.5) #1 #1 c,-1\startTextSpan cis-2
 d-3 dis-4\stopTextSpan
        \string 4 #0 #UP #'(0 . -1) #1 #1 fis,-1\startTextSpan g-2
 gis-3 a-4\stopTextSpan
        \string 5 #0 #UP #'(0 . -1) #1 #1 c,-1\startTextSpan cis-2
 d-3 dis-4\stopTextSpan
        \string 6 #0 #UP #'(0 . -1) #1 #1 fis,-1\startTextSpan g-2
 gis-3 a-4 g-1 gis-2 a-3 ais-4\stopTextSpan
        \string 5 #0 #UP #'(0 . -1) #1 #1 cis-1\startTextSpan d-2
 dis-3 e-4\stopTextSpan_\markup\italic { etc. }
    }
    \layout {
        \context {
            \Staff
                \remove Bar_engraver
                \remove Time_signature_engraver
        }
    }
 }
 %%



 ___
 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: flash cards

2009-12-19 Thread Hugh Myers
Right you are! This should take care of that oversight. Either place
it in the same directory as cards.ly or in some some place that
Lilypond can find--- then try again.

--hsm

On Sat, Dec 19, 2009 at 2:21 AM, Herbert Liechti
herbert.liec...@thinx.ch wrote:
 Hugh Myers schrieb:
 I have previously seen inquires about making flash cards with
 Lilypond. Thinking that this would be a good way to learn more about
 the world of musical typesetting I decided to re-invent this
 particular wheel. With a fair amount of help from the list here is
 cards.ly:

 %%
 %%
 %% cards.ly -- Lilypond flash cards with tablature
 %%
 %%
 \version 2.13.7
 \include rhythm.ly

 Hi, trying to compile this example fails because of  the missing
 rhythm.ly

 Best regards




rhythm.ly
Description: Binary data
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Need help before I can ask the right question...

2009-12-19 Thread Hugh Myers
In Segovia's 'Diatonic Major and Minor Scales', under the notes shown
for a given scale are marks beginning with a number surrounded by
parenthesis followed by a line vaguely parallel to the notes,
concluding with an uptick between a given pair of notes. What is this
called and how might I duplicate it in Lilypond?

--hsm


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


Re: Need help before I can ask the right question...

2009-12-19 Thread Hugh Myers
Thanks James--- my description works a lot better with an illustration!

--hsm

On Sat, Dec 19, 2009 at 6:19 PM, James Lowe james.l...@datacore.com wrote:
 Here's a link to what is being mentioned here:

 http://www.sheetmusicplus.com/look_inside/1938302/image/137025




 -Original Message-
 From: lilypond-user-bounces+james.lowe=datacore@gnu.org on behalf of Hugh 
 Myers
 Sent: Sun 20/12/2009 1:17
 To: lilypond-user
 Subject: Need help before I can ask the right question...

 In Segovia's 'Diatonic Major and Minor Scales', under the notes shown
 for a given scale are marks beginning with a number surrounded by
 parenthesis followed by a line vaguely parallel to the notes,
 concluding with an uptick between a given pair of notes. What is this
 called and how might I duplicate it in Lilypond?

 --hsm


 ___
 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: padding at top of first page

2009-12-18 Thread Hugh Myers
Thanks for the pointer, Alexander. I had looked, but not far enough.
Here is what works:

\version 2.13.7
\header {
  tagline = ##f
}
\layout {
  \context {
\Staff
\remove Time_signature_engraver
  }
}
\paper{
  indent = 0\mm
  paper-width = 3\in
  line-width = 1.5\in
  paper-height = 5\in
  print-page-number = ##f
  after-title-space = 0\mm
  before-title-space = 0\mm
  between-system-padding = 0\mm
  between-system-space = 0\mm
  between-title-space = 0\mm
  head-separation = 0\mm
  page-top-space = 0\mm
  ragged-last-bottom = ##f
}

\relative c'{
  \set Score.barNumberVisibility = ##f
  e,4 s2.
  \pageBreak
  f4 s2.
  \pageBreak
  g4 s2.
  \pageBreak
  a4 s2.
}

I've now got the basis for creating flash cards in Lilypond. Even
though commercial cards are inexpensive, these are cheaper and can be
customized to suit my needs (adding tablature for instance.) Besides
it was a good way to learn a bit more about Lilypond.

--hsm

On Fri, Dec 18, 2009 at 3:08 AM, Alexander Kobel n...@a-kobel.de wrote:
 Alexander Kobel wrote:

 Hugh Myers wrote:

 How do I remove it such that each page begins at same top-left corner?

 If you're not afraid of using the command line, if you're on Linux (might
 work on Windows also, but I have no clue if you can get all the required
 tools there), and if the settings explained in the Notation Reference don't
 help, I can dig out a small script which really gives a tight crop.

 Sorry for the noise, it's already on the list. See this thread:
  http://lists.gnu.org/archive/html/lilypond-user/2009-07/msg00645.html
 The essential part is in the %-trimmed.pdf rule of the Makefile.

 Cheers,
 Alexander



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


Re: restraining lilypond

2009-12-18 Thread Hugh Myers
Key in my testing to both first and last page top-left problems is:

\paper{
  indent = 0\mm
  paper-width = 3\in
  line-width = 1.5\in
  paper-height = 5\in
  print-page-number = ##f
  after-title-space = 0\mm
  before-title-space = 0\mm
  between-system-padding = 0\mm
  between-system-space = 0\mm
  between-title-space = 0\mm
  head-separation = 0\mm
  page-top-space = 0\mm
  ragged-last-bottom = ##f
}

so thanks for the pointer to ragged-last-bottom.

--hsm

On Fri, Dec 18, 2009 at 1:20 AM, -Eluze elu...@gmail.com wrote:


 Hugh Myers wrote:

 I had expected each page to begin in the same location. They don't.
 Why? What may be done to restrain lilypond?


 i just run it with version 2.12.3 where it seems okay to me.

 then i added a new page (with version 2.13.9) and it seems that only the
 last page is affected - i suggest to check the ragged-bottom and
 ragged-last-bottom (default-) settings!
 --
 View this message in context: 
 http://old.nabble.com/restraining-lilypond-tp26838454p26840400.html
 Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



 ___
 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


inter staff spacing

2009-12-18 Thread Hugh Myers
Given:

\version 2.13.7
\header {
  tagline = ##f
}
\layout {
  \context {
\Staff
\remove Time_signature_engraver
  }
}
\paper{
  indent = 0\mm
  paper-width = 3\in
  line-width = 1.5\in
  paper-height = 5\in
  print-page-number = ##f
  after-title-space = 0\mm
  before-title-space = 0\mm
  between-system-padding = 0\mm
  between-system-space = 0\mm
  between-title-space = 0\mm
  head-separation = 0\mm
  page-top-space = 0\mm
  ragged-last-bottom = ##f
}
flash = {
  e,4 s2.
  \pageBreak
  f4 s2.
  \pageBreak
  g4 s2.
  \pageBreak
  a4 s2.
}
{
  
  \new Staff \relative c' {
\set Score.barNumberVisibility = ##f
\flash
  }
  \new TabStaff \relative c {
\flash
  }
  
}

How do I control the distance between the staff and the tab staff. I
believe it is distorted because there is no other data on the page
which invokes some sort of stretching algorithm. Is there a way to
adjust this? I've played around with \override Staff.VerticalAxisGroup
#'minimum-Y-extent to no avail(I can't claim that I 'played' either
correctly or in the right place).

--hsm


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


function variable question

2009-12-18 Thread Hugh Myers
Given:

flashNote = #(define-music-function (parser location note)(ly:music?) #{
  $note s2. \pageBreak
  #}
)

I'd like to modify it so that a fixed duration for the note can be
within the function rather than in the calling sequence. Like so:

instead of

  \flashNote e,4

I'd rather

  \flashNote e,

I've tried various versions of $note4, {$note}4 etc--- all producing
errors of course. Clues? Suggestions?

--hsm


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


Re: function variable question

2009-12-18 Thread Hugh Myers
Thanks again Alexander--- thats the third time today you've bailed me
out! Hope I can return same someday.

--hgsm

On Fri, Dec 18, 2009 at 3:49 PM, Alexander Kobel n...@a-kobel.de wrote:
 Hugh Myers wrote:

 Given:

 flashNote = #(define-music-function (parser location note)(ly:music?) #{
  $note s2. \pageBreak
  #}
 )

 I'd like to modify it so that a fixed duration for the note can be
 within the function rather than in the calling sequence. [...]
 I've tried various versions of $note4, {$note}4 etc--- all producing
 errors of course. Clues? Suggestions?

 Inside the music function, note is essentially an arbitrary music
 expression, so you can't just attach the length, as you recognized.
 Basically, you'd have to parse the whole music expression, and replace the
 chord durations by a quarter.
 Luckily, there's already a function called \makeRhythm in
 http://lsr.dsi.unimi.it/LSR/Item?id=390 , doing exactly this.  With this
 included,

 flashNote = #(define-music-function (parser location note)(ly:music?) #{
  \makeRhythm $note 4 s2. \pageBreak
  #}
 )

 should do what you want.


 Cheers,
 Alexander



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


flash cards

2009-12-18 Thread Hugh Myers
I have previously seen inquires about making flash cards with
Lilypond. Thinking that this would be a good way to learn more about
the world of musical typesetting I decided to re-invent this
particular wheel. With a fair amount of help from the list here is
cards.ly:

%%
%%
%% cards.ly -- Lilypond flash cards with tablature
%%
%%
\version 2.13.7
\include rhythm.ly
\header {
  tagline = ##f
}
\layout {
  \context {
\Staff
\remove Time_signature_engraver
\override VerticalAxisGroup #'next-staff-spacing = #'(
  (space . 15)(padding . 0)(stretchability . 0)(minimum-distance . 12))
  }
}
\paper {
  indent = 0\mm
  paper-width = 3\in
  line-width = 1.5\in
  paper-height = 5\in
  print-page-number = ##f
  ragged-last-bottom = ##f
}
flashNote = #(define-music-function (parser location note)(ly:music?) #{
  \makeRhythm $note 4 s2. \pageBreak
  #}
)
flashcard = {
  \flashNote e,
  \flashNote f
  \flashNote fis
  \flashNote g
  \flashNote gis
  \flashNote a
  \flashNote ais
  \flashNote b
  \flashNote c
  \flashNote cis
  \flashNote d
  \flashNote dis

  \flashNote e
  \flashNote f
  \flashNote fis
  \flashNote g
  \flashNote gis
  \flashNote a
  \flashNote ais
  \flashNote b
  \flashNote c
  \flashNote cis
  \flashNote d
  \flashNote dis

  \flashNote e
  \flashNote f
  \flashNote fis
  \flashNote g
  \flashNote gis
  \flashNote a
  \flashNote ais
  \flashNote b
  \flashNote c
  \flashNote cis
  \flashNote d
  \flashNote dis

}
{
  
\new StaffGroup 
  \set Score.barNumberVisibility = ##f
  \new Staff \relative c' {
\flashcard
  }
  \new TabStaff \relative c {
\flashcard
  }

  
}

Most of the 'picky' stuff is in \header, \layout and \paper. The
function \flashNote is there because I dislike typing when I don't
have to although I'm not fanatic about it ;-) It is also there because
I wanted an excuse to learn more about Lilypond functions(this one is
beginner level substitution at best). Modifying this for similar needs
should not be difficult.

--hsm


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


padding at top of first page

2009-12-17 Thread Hugh Myers
How do I remove it such that each page begins at same top-left corner?
--hsm


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


Re: simple editor for windows

2009-12-17 Thread Hugh Myers
Given what is out there in open source land for MFC capable
programmers, I have to admit to the DIY vice myself. However when I
wake up and realize that I don't particularly want to be 'there', I'm
thankful for the editor I use most--- EditPlus
http://www.editplus.com/index.html It has everything I need for almost
any language I care to work in and is 'in my face' the least of any
editor I've ever used--- going back more than 30 years. Of course YMMV
and I'll admit to having a favorite in the ever popular vim/emacs wars
(I won't say which ;-) ) But if you are looking for something greater
than notepad and less than our favorite pair, I'd recommend a try
out...

--hsm

On Thu, Dec 17, 2009 at 5:12 PM, Ed Ardzinski ed_ardzin...@hotmail.com wrote:
 All interesting comments - way back when I first encountered Lilypond (3
 years ago or so?) I just decided to write my own editor and stuff it full of
 commands to enter code fragments I find useful (and some other things - open
 Acrobat Reader, call LP on a file, a few other things).  Every few months I
 dust off my MFC skills and make some improvements. As satisfying as this
 route makes me feel, I would NEVER ever suggest this for anyone else, or
 even suggest that anyone else use my editor! ;-)

 As for a more general topic of using a text editor for any purpose, this
 Windows programmer type likes basic notepad the best.  I've use many others
 that have had thier benefits and drawbacks, but notepad was just a chore to
 use for LP.  Context was mentioned and I think I recall hearing about the LP
 plug-in for code highlighting - I might have to give tha a try.  I would say
 using Wordpad would have it's benefits with drag and drop (which was
 essentially my starting point for a DIY editor for Lilypond), so I don't
 think there is really a right answer as much as there is a text editor
 that you will fell comfortable with.  Saving as plain text with an .ly
 extension is (should be) a pretty easy thing to do in any text editor. :-)

 
 Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign up
 now.
 ___
 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


restraining lilypond

2009-12-17 Thread Hugh Myers
Given:

\version 2.13.7
\header {
  tagline = ##f
}
\layout {
  \context {
\Staff
\remove Time_signature_engraver
  }
}
\paper{
  indent = 0\mm
  paper-width = 3\in
  line-width = 1.5\in
  paper-height = 5\in
  print-page-number = ##f
}
\relative c'{
  \set Score.barNumberVisibility = ##f
  e,4 s2.
  \pageBreak
  f4 s2.
}

I had expected each page to begin in the same location. They don't.
Why? What may be done to restrain lilypond?

--hsm


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


Re: restraining lilypond

2009-12-17 Thread Hugh Myers
Thanks James,

I'll give it a go.

--hsm

On Thu, Dec 17, 2009 at 11:21 PM, James Bailey
derhindem...@googlemail.com wrote:
 I only noticed this because I'm checking the regression tests, but I think
 page-top-space is the setting you would need.
 You can find an example of its use it in the regression tests.

 On 18.12.2009, at 03:54, Hugh Myers wrote:

 Given:

 \version 2.13.7
 \header {
  tagline = ##f
 }
 \layout {
  \context {
    \Staff
    \remove Time_signature_engraver
  }
 }
 \paper{
  indent = 0\mm
  paper-width = 3\in
  line-width = 1.5\in
  paper-height = 5\in
  print-page-number = ##f
 }
 \relative c'{
  \set Score.barNumberVisibility = ##f
  e,4 s2.
  \pageBreak
  f4 s2.
 }

 I had expected each page to begin in the same location. They don't.
 Why? What may be done to restrain lilypond?

 --hsm


 ___
 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: restraining lilypond

2009-12-17 Thread Hugh Myers
Adding page-top-space = 0\mm to \paper doesn't seem to make any
difference. Perhaps my incantation is incorrect?

--hsm

On Thu, Dec 17, 2009 at 11:32 PM, Hugh Myers hsmy...@gmail.com wrote:
 Thanks James,

 I'll give it a go.

 --hsm

 On Thu, Dec 17, 2009 at 11:21 PM, James Bailey
 derhindem...@googlemail.com wrote:
 I only noticed this because I'm checking the regression tests, but I think
 page-top-space is the setting you would need.
 You can find an example of its use it in the regression tests.

 On 18.12.2009, at 03:54, Hugh Myers wrote:

 Given:

 \version 2.13.7
 \header {
  tagline = ##f
 }
 \layout {
  \context {
    \Staff
    \remove Time_signature_engraver
  }
 }
 \paper{
  indent = 0\mm
  paper-width = 3\in
  line-width = 1.5\in
  paper-height = 5\in
  print-page-number = ##f
 }
 \relative c'{
  \set Score.barNumberVisibility = ##f
  e,4 s2.
  \pageBreak
  f4 s2.
 }

 I had expected each page to begin in the same location. They don't.
 Why? What may be done to restrain lilypond?

 --hsm


 ___
 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: Midi2ly work for Windows?

2009-12-10 Thread Hugh Myers
For windows(or dos for that matter) to 'know' what midi2ly(I presume
an .exe file) is you have to either be in the same directory or the
file has to be in a directory that dos knows about--- one of the
directories shown when you type path at the command line. For
instance:

C:\Users\hsmyerspath
PATH=C:\Program Files\MiKTeX 2.7\miktex\bin;C:\Program
Files\PHP\;C:\Program Files\ActiveState Komodo IDE 4.2\;C:\Perl\site\b
in;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program
Files\Common Files\Roxio Shared\DLLShared\;
C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Program
Files\Common Files\Adobe\AGL;c:\Program Files\Microsoft
SQL Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server
5.0\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\L
ilyPond\usr\bin;C:\Program Files\LilyPond\usr\bin;C:\Program
Files\MiKTeX 2.7\miktex\bin;C:\Program Files\PHP\;C:\Program Fil
es\ActiveState Komodo IDE
4.2\;C:\Perl\site\bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Progra
m Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common
Files\Roxio Shared\9.0\DLLShared\;C:\Program Files\Commo
n Files\Adobe\AGL;c:\Program Files\Microsoft SQL
Server\90\Tools\binn\;C:\Program Files\MySQL\MySQL Server
5.0\bin;C:\Program
 Files\QuickTime\QTSystem\;C:\Program Files\LilyPond\usr\bin

C:\Users\hsmyers

If say, you had C:\Program Files\LilyPond\usr\bin in your path
statement and you had midi2ly.exe in that directory then everything
should work.

--hsm

On Thu, Dec 10, 2009 at 3:48 PM, Austin Wiegand
austinshotmail@hotmail.com wrote:
 Am I just not entering it right or does it not work for Windows? I open the 
 dos
 prompt and type ...\midi2ly pi-type1.mid and get the error:
 'midi2ly' is not recognized as an internal or external command, operable
 program or batch file.
 Even when I just try running the program without a midi after it Windows 
 doesn't
 know what it is.



 ___
 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


tablature fingering (again)

2009-12-04 Thread Hugh Myers
Since this:

\version 2.13.7

upper = {
   b\4 e\3 gis\2 e' 4 s2
}

lower = {
  s2.
}

{
  \time 3/4
  
  \new Staff \relative c'' {

  \set Score.barNumberVisibility = #all-bar-numbers-visible
  \bar 
  \override Score.BarNumber #'break-visibility = #'#(#t #t #t)
  \set Score.defaultBarType = |
  \new Voice = 1 { \voiceOne \upper }
  \new Voice = 2 { \voiceTwo \lower }

  }
  \new TabStaff \relative c' {

  \new TabVoice = t1 { \voiceOne \upper }
  \new TabVoice = t2 { \voiceTwo \lower }

  }
  
}

is wrong--- the circled numbers are not playable as given, and
contradict the tablature which is correct, how do I remove the
offenders? I'm missing something or misunderstanding something or
both--- hints?

--hsm
p.s. if the slash Ns are removed then the tablature is incorrect with
only two frets indicated and one wrong...


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


Re: tablature fingering (again)

2009-12-04 Thread Hugh Myers
Thanks Federico,

Not so much wrong, but 'doesn't match the original' ;-)

--hsm

On Fri, Dec 4, 2009 at 11:10 AM, Federico Bruni brunol...@gmx.com wrote:
 Hugh Myers wrote:
 Since this:

 \version 2.13.7

 upper = {
    b\4 e\3 gis\2 e' 4 s2
 }

 lower = {
   s2.
 }

 {
   \time 3/4
   
   \new Staff \relative c'' {
     
       \set Score.barNumberVisibility = #all-bar-numbers-visible
       \bar 
       \override Score.BarNumber #'break-visibility = #'#(#t #t #t)
       \set Score.defaultBarType = |
       \new Voice = 1 { \voiceOne \upper }
       \new Voice = 2 { \voiceTwo \lower }
     
   }
   \new TabStaff \relative c' {
     
       \new TabVoice = t1 { \voiceOne \upper }
       \new TabVoice = t2 { \voiceTwo \lower }
     
   }
   
 }

 is wrong--- the circled numbers are not playable as given, and
 contradict the tablature which is correct, how do I remove the
 offenders? I'm missing something or misunderstanding something or
 both--- hints?


 I can't see what's wrong here.. The circled numbers refer to the
 strings you have to pick to play that note: B is on the 4th string, E
 on the 3rd and Gs on the 2nd. So it's ok.

 Anyway, if you want to remove the circled numbers, you can use:

 \layout {
  \context {
    \Staff
    \override StringNumber #'transparent = ##t
  }
 }

 HTH,
 Federico

 --
 http://gnurag.net/blog/
 http://fsfe.org/
 http://groups.fsf.org/wiki/LibrePlanetItalia




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


Re: tablature fingering (again)

2009-12-04 Thread Hugh Myers
Patrick,

How Perl like--- more than one way to do things ;-)

--hsm
p.s. likewise thanks for the tab list pointer...

On Fri, Dec 4, 2009 at 11:28 AM, Patrick Schmidt p.l.schm...@gmx.de wrote:
 You can also use

 upper = {
 \set TabStaff.minimumFret = #9
   b e gis e' 4 s2
 }

 instead of

 upper = {
   b\4 e\3 gis\2 e' 4 s2
 }

 to avoid the string number indications.

 By the way: There is a LilyPond mailing list for tablature users:

 http://lists.lilynet.net/tablatures/

 hth
 patrick
  Original-Nachricht 
 Datum: Fri, 4 Dec 2009 11:17:18 -0700
 Von: Hugh Myers hsmy...@gmail.com
 An: Federico Bruni brunol...@gmx.com
 CC: lilypond-user lilypond-user@gnu.org
 Betreff: Re: tablature fingering (again)

 Thanks Federico,

 Not so much wrong, but 'doesn't match the original' ;-)

 --hsm

 On Fri, Dec 4, 2009 at 11:10 AM, Federico Bruni brunol...@gmx.com wrote:
  Hugh Myers wrote:
  Since this:
 
  \version 2.13.7
 
  upper = {
     b\4 e\3 gis\2 e' 4 s2
  }
 
  lower = {
    s2.
  }
 
  {
    \time 3/4
    
    \new Staff \relative c'' {
      
        \set Score.barNumberVisibility = #all-bar-numbers-visible
        \bar 
        \override Score.BarNumber #'break-visibility = #'#(#t #t #t)
        \set Score.defaultBarType = |
        \new Voice = 1 { \voiceOne \upper }
        \new Voice = 2 { \voiceTwo \lower }
      
    }
    \new TabStaff \relative c' {
      
        \new TabVoice = t1 { \voiceOne \upper }
        \new TabVoice = t2 { \voiceTwo \lower }
      
    }
    
  }
 
  is wrong--- the circled numbers are not playable as given, and
  contradict the tablature which is correct, how do I remove the
  offenders? I'm missing something or misunderstanding something or
  both--- hints?
 
 
  I can't see what's wrong here.. The circled numbers refer to the
  strings you have to pick to play that note: B is on the 4th string, E
  on the 3rd and Gs on the 2nd. So it's ok.
 
  Anyway, if you want to remove the circled numbers, you can use:
 
  \layout {
   \context {
     \Staff
     \override StringNumber #'transparent = ##t
   }
  }
 
  HTH,
  Federico
 
  --
  http://gnurag.net/blog/
  http://fsfe.org/
  http://groups.fsf.org/wiki/LibrePlanetItalia
 
 


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

 --
 Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
 sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser



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


Re: Is there a perl script to partially convert ascii tabs to lilypond input?

2009-12-03 Thread Hugh Myers
I asked the question (after googling I might add ;-) ) because I
figured if anything was on going it would have been heard about here.
Mostly I asked in order to avoid re-inventing the wheel. While I don't
claim to have solved the problem, what I do have is what I call an 80%
solution. It will read in an ascii text file and produce an .ly file.
It does so with no effort to solve any of the trickier problems
involved, as yet not even the features I more or less plan on--- this
is something I started a year or so ago and only now have gotten back
to. Mostly I write these sort of things because the challenge is
interesting, giving me a chance to learn about the language or the
problem or both...

--hsm

On Thu, Dec 3, 2009 at 2:07 AM, Federico Bruni brunol...@gmx.com wrote:
 Marc Hohl wrote:

 But seriously: is tuxguitar able to read ascii tabs? It has a export
 function to lilypond.


 AFAIK, tuxguitar can't open ascii tabs.
 But it can import midi file very well.
 Does a good converter ascii2midi exist?

 Kguitar should be able to read ascii files (use .tab extension and you
 will see the file in the open window), but I've tried an ascii file
 right now and does not work.
 It says:
 Can't load or import song!It may be a damaged/wrong file format or,
 if you're trying experimental importers it may be a flaw with the
 import code.

 I don't have any other ascii tab so I can't test it much..

 HTH,
 Federico

 --
 http://gnurag.net/blog/
 http://fsfe.org/
 http://groups.fsf.org/wiki/LibrePlanetItalia




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


Re: collatoral damage / regressions

2009-12-03 Thread Hugh Myers
I suppose that at least part of the problem is focus. I usually turn
to the list for answers to problems that I've not been able to solve
from the existing documentation. It usually doesn't occur to me that
there might be some larger use for the question itself. It probably
should--- as an obvious for example, look at FAQs for instance. There
what might be an annoyance is changed to a resource, usually without a
great deal of effort.

--hsm

On Thu, Dec 3, 2009 at 5:19 AM, Alexander Kobel n...@a-kobel.de wrote:
 Hugh Myers wrote:

 [...] As long as I'm exposing my thinking to the world (at least the
 Lilypond world) another thing that needs to be pointed out to the UC
 (User Community) is that they have a sure and certain value in their
 ability to say that they don't understand a particular piece of
 documentation. [...]

 Correct. Which is part of why Graham does even consider to answer many
 requests on -user. It must be really frustrating to invest that much time
 and energy in the docs, and see people a) ignoring it, or b) reading and
 trying to understand it, but not mentioning in their mails what (or even
 better: why) they don't understand it.
 The latter case is plainly sad, the second is - well, don't really know,
 since you always assume the first one, and develop some ignorance; but it's
 certainly not helpful from the second type of inquirer to not give hints
 what should be done better, just as you said.

 May I remark that a short scan through your mails starting a new thread
 revealed only two pointer to the manuals (in instantiating voices and
 broken link)?
 Not that I do any better, I have to admit. (*Writes down note to himself.*)


 Cheers,
 Alexander



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


Re: Is there a perl script to partially convert ascii tabs to lilypond input?

2009-12-03 Thread Hugh Myers
Patrick,

Thanks for the run down. From your comments and others, I would guess
that the lack might have something to do with the lack of standards in
ascii tabs and the perception of how hard it would be to find a
solution and so on. Encourages me that my idea of starting with what
can be done easily and working from there might be a useful one.
Likewise Perl and the command line allows me freedom from platform
restrictions similar to LilyPond. All and all a 'fun' project to work
on--- for at least my definition of 'fun'...

---hsm

On Thu, Dec 3, 2009 at 12:12 PM, Patrick Schmidt p.l.schm...@gmx.de wrote:
 Hi Hugh,

 I haven't heard of any perl scripts to convert ascii tabs to lilypond (apart 
 from your script. Sounds interesting!) but I know of two programs that are 
 supposed to be able to import ascii and export MusicXML (with musicxml2ly you 
 can convert to LilyPond):

 1) GuitarPro (commercial)
 2) Harmony Assistant (commercial)

 With GuitarPro 5 (Mac-version) I can open .txt/.tab-files but tablature is 
 faulty and the program crashes when I try to export MusicXML. Harmony 
 Assistant seems to do a rather decent job but I only tried the demo version.
 http://www.myriad-online.com/en/products/harmony.htm

 TablEdit could be an alternative. It can also read ascii and you can export 
 it to abc and midi. (With abc2ly and midi2ly you can convert to lilypond.)
 http://tabledit.mac.findmysoft.com/

 There also seems to exist a solution to convert from midi to ascii and vice 
 versa but I haven't tried it.
 http://www.gnmidi.com/handbook/english/txt2midi.htm

 hth
 patrick
  Original-Nachricht 
 Datum: Thu, 3 Dec 2009 05:05:00 -0700
 Von: Hugh Myers hsmy...@gmail.com
 An: Federico Bruni brunol...@gmx.com
 CC: lilypond-user lilypond-user@gnu.org
 Betreff: Re: Is there a perl script to partially convert ascii tabs to       
  lilypond input?

 I asked the question (after googling I might add ;-) ) because I
 figured if anything was on going it would have been heard about here.
 Mostly I asked in order to avoid re-inventing the wheel. While I don't
 claim to have solved the problem, what I do have is what I call an 80%
 solution. It will read in an ascii text file and produce an .ly file.
 It does so with no effort to solve any of the trickier problems
 involved, as yet not even the features I more or less plan on--- this
 is something I started a year or so ago and only now have gotten back
 to. Mostly I write these sort of things because the challenge is
 interesting, giving me a chance to learn about the language or the
 problem or both...

 --hsm

 On Thu, Dec 3, 2009 at 2:07 AM, Federico Bruni brunol...@gmx.com wrote:
  Marc Hohl wrote:
 
  But seriously: is tuxguitar able to read ascii tabs? It has a export
  function to lilypond.
 
 
  AFAIK, tuxguitar can't open ascii tabs.
  But it can import midi file very well.
  Does a good converter ascii2midi exist?
 
  Kguitar should be able to read ascii files (use .tab extension and you
  will see the file in the open window), but I've tried an ascii file
  right now and does not work.
  It says:
  Can't load or import song!It may be a damaged/wrong file format or,
  if you're trying experimental importers it may be a flaw with the
  import code.
 
  I don't have any other ascii tab so I can't test it much..
 
  HTH,
  Federico
 
  --
  http://gnurag.net/blog/
  http://fsfe.org/
  http://groups.fsf.org/wiki/LibrePlanetItalia
 
 


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

 --
 Sarah Kreuz, die DSDS-Siegerin der Herzen, mit ihrem eindrucksvollen
 Debütalbum One Moment in Time. http://portal.gmx.net/de/go/musik



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


Re: page break failure

2009-12-02 Thread Hugh Myers
Also went away after an amendment in bar 22! Not sure what is going on
here, but it is at least fun to watch. My feeling is that once every
thing is correct, some of these things will go away.

--hsm
p.s. I'll save the \paper code for worst case, thanks Marc...

On Wed, Dec 2, 2009 at 12:58 AM, Marc Hohl m...@hohlart.de wrote:
 Hugh Myers schrieb:

 Since the project can't be done in 2.12, what do you suggest?


 I inserted a paper block after the \header:

 \paper {
  indent = 0
  between-system-space = 2\cm
  between-system-padding = #5
  ragged-bottom=##f
  ragged-last-bottom=##f
 }

 You can play with the numbers, but at least it seems to work.

 Marc




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


triplet chord

2009-12-02 Thread Hugh Myers
Given this:

\version 2.13.7
upper = {
  e  \times 2/3 { e,8 gis [ b e ] } s4
}

lower = {
  e,,2.
}

{
  \time 3/4
  
  \new Staff \relative c'' {

  \set Score.barNumberVisibility = #all-bar-numbers-visible
  \bar 
  \override Score.BarNumber #'break-visibility = #'#(#t #t #t)
  \set Score.defaultBarType = |
  \new Voice = 1 { \voiceOne \upper }
  \new Voice = 2 { \voiceTwo \lower }

  }
  \new TabStaff \relative c' {

  \new TabVoice = t1 { \voiceOne \upper }
  \new TabVoice = t2 { \voiceTwo \lower }

  }
  
}

How do I go about achieving a triplet chord--- clearly the above
doesn't, neither does inclusion withing '' and ''. Hints?

--hsm


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


Re: page break failure

2009-12-02 Thread Hugh Myers
Clearly it is better that Graham continue as he has since the benefits
greatly out weight any negatives. And most beginners eventually form
their inquires to fit the forum in question. Thanks for the tip on
2.odd versus 2.stable as well. Hadn't realized that a policy of
collateral damage was allowed. Given your approach to testing (and
your experience) this should work as well as more conservative
approaches. It also implies a closely fitting development team in
order to avoid You stepped on my WHAT! remarks :) I've only been
doing software development for 30 years or so and I'm lucky enough
that I'm still adding tricks to my bag--- this approach will certainly
be one of them.

I'll wait until I've read (and hopefully, understand) you enclosure
before going further.

--hsm

On Wed, Dec 2, 2009 at 3:56 AM, Alexander Kobel n...@a-kobel.de wrote:
 Hugh Myers wrote:

 Second point taken. I hope you realize that 2.13 has bug fixes for
 2.12--- yes? Without those, there is no project...

 Yes it has (as well as enhancements), but during developement - as is an
 unstable release - they are allowed to break other things to a certain
 degree. (Very loosely speaking. There is a really strict policy about this,
 but it may happen. And tests are done more precisely for stable releases.)

 I don't suppose you took a look?

 No, probably not. Graham spends quite some time for LilyPond, and does not
 care about ill-posed questions or bug reports. (Well, he cares, suffers in
 his inner, thinks about what went wrong with documentation, but does not try
 to get a clue or answer out of them.)
 Which is the best thing he can do, since this means that he takes the time
 to get you better documentation, engaged developers, or releases. Which he
 manages, at least to a large part, amonst other things.

 Did you notice that in included tablature? If you had,
 then you would perhaps have sent me a different 'Most spacing bugs can
 be reproduced...'

 Well. It certainly can be simpler than what you've written. And it's awkward
 trying to debug anything in this mess if you didn't write it yourself.
 In your example, all the textSpan stuff is completely irrelevant, as well as
 the chords themselves (other than their vertical extent below the staves,
 i.e.). So that's a bunch of lines you can just spare out. I was surprised to
 see that the repeat mattered, though.

 Finally, make sure that your code causes no warnings beyond those really
 belonging to the problem you're asking about. There was something about a
 volta spanner, which might or might not be a cause of your problem (since it
 works fine without the repeat), but I can get the bug without warnings.
 If there /are/ warnings, however, chances are that anybody looking at your
 code immediately thinks your fault.

 Also note that I made no claim of 'BUG'. I am new at
 this and would more likely expect the problem to have been caused by
 something I did, not a bug.

 Actually, it looks like one. I remember a similar bug report about chords
 not long ago, although I did not follow it with high interest. The attached
 code reproduces the problem, and is far simpler. (Though even this is not as
 minimal as I'd wish to have it.)

 For a workaround: You can include \pageBreak commands at your choice to get
 a, well, page break. Put them in, e.g. after the last line correctly fit
 unto the page, and everything's fine again.
 But you're right in your initial guess that you should not have to tweak
 this yourself.


 Cheers,
 Alexander



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


Re: triplet chord

2009-12-02 Thread Hugh Myers
James,

e,8 gis b e

--hsm

On Wed, Dec 2, 2009 at 9:47 AM, James Bailey
jameselihubai...@googlemail.com wrote:
 What notes should be in the chord?

 On 02.12.2009, at 09:31, Hugh Myers wrote:

 … How do I go about achieving a triplet chord--- clearly the above
 doesn't, neither does inclusion withing '' and ''. Hints?

 --hsm


 ___
 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: triplet chord

2009-12-02 Thread Hugh Myers
Same chord repeated three times.

--hsm

On Wed, Dec 2, 2009 at 10:39 AM, James Bailey
jameselihubai...@googlemail.com wrote:
 I'm completely confused. A triplet, in this instance, would consist of three
 notes which are to be played in the same time span as two. What are the
 three notes to be played in this time span? I understand one of the three
 notes is a chord, e gis b e, what are the other two?

 On 02.12.2009, at 18:30, Hugh Myers wrote:

 James,

 e,8 gis b e

 --hsm

 On Wed, Dec 2, 2009 at 9:47 AM, James Bailey
 jameselihubai...@googlemail.com wrote:

 What notes should be in the chord?

 On 02.12.2009, at 09:31, Hugh Myers wrote:

 … How do I go about achieving a triplet chord--- clearly the above
 doesn't, neither does inclusion withing '' and ''. Hints?

 --hsm


 ___
 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: triplet chord

2009-12-02 Thread Hugh Myers
You know I could swear that I already tried that, but at 3a.m. who
knows what slips across my keyboard--- Thanks Phil!

--hsm

On Wed, Dec 2, 2009 at 1:37 PM, Philip Potter philip.g.pot...@gmail.com wrote:
 2009/12/2 Hugh Myers hsmy...@gmail.com:
 Same chord repeated three times.

 This works for me:

 \relative c' {
 \times 2/3 { e gis b e e gis b e e gis b e }
 e gis b e e gis b e e gis b e
 }

 For 3 triplets followed by 3 regular notes.

 Phil



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


Re: collatoral damage / regressions (was: page break failure)

2009-12-02 Thread Hugh Myers
Graham,

I wonder if it not so much a matter of prioritization as it is a
matter of intimidation. That is to say that most people seeing the
process from the out side find it a bit scary provoking a oh I
couldn't do that kind of feeling.  I know that in my own experience
with users turned loose on the development problem, the single
greatest obstacle was overcoming their convictions of in-ability.
There are some exceptions--- most engineers seem convinced of there
ability to write legible prose, the problem is convincing them that
they can't ;-)

I do know that you've already discovered the value of enlisting your
user community, having said that, I think you might find them quite
willing to do more than you suspect.

As long as I'm exposing my thinking to the world (at least the
Lilypond world) another thing that needs to be pointed out to the UC
(User Community) is that they have a sure and certain value in their
ability to say that they don't understand a particular piece of
documentation. They may not know the answer to their questions, but
they do know the things that don't answer them. Such people, if they
can write and if they have user empathy make extremely good
documentation specialists, better than most programmers certainly.

I seem to be babbling again...

--hsm
p.s. to paraphrase Einstein, Software should be just difficult enough
to use to be useful and no more so...

On Wed, Dec 2, 2009 at 4:23 PM, Graham Percival
gra...@percival-music.ca wrote:
 On Wed, Dec 02, 2009 at 05:33:55AM -0700, Hugh Myers wrote:
 Hadn't realized that a policy of
 collateral damage was allowed. Given your approach to testing (and
 your experience) this should work as well as more conservative
 approaches.

 As Alexander wrote, it's not so much that collateral damage is
 allowed, it's that we don't have the resources to ensure that it
 never occurs.  My fundamental job, above all else, is
 organization.  I match up willing volunteers (and sometimes
 pressure unwilling volunteers) with problems in lilypond
 development.

 There are few people willing to help track regressions; from that,
 I conclude that this is not a priority for users.  If anybody
 would like to help, please see:
 http://lilypond.org/doc/v2.13/Documentation/web/help-us


 I have more info specific to regressions (collatoral damage), if
 anybody would like to help with this.

 Cheers,
 - Graham



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


broken link

2009-12-02 Thread Hugh Myers
The link to Building documentation without compiling LilyPond. on
http://lilypond.org/doc/v2.13/Documentation/web/help-us is broken
(404).

--hsm
p.s. which list is correct for such things?


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


Is there a perl script to partially convert ascii tabs to lilypond input?

2009-12-02 Thread Hugh Myers
Should probably support at least some advanced timing measures ala
Guitar-Pro or some such... Pointers?

--hsm


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


Re: collatoral damage / regressions (was: page break failure)

2009-12-02 Thread Hugh Myers
Err--- that would be a chortle yes?

--hsm

On Wed, Dec 2, 2009 at 11:07 PM, James Bailey
jameselihubai...@googlemail.com wrote:

 On 03.12.2009, at 02:33, Hugh Myers wrote:

 Graham,
 …
 I do know that you've already discovered the value of enlisting your
 user community, having said that, I think you might find them quite
 willing to do more than you suspect.


 I'll admit it, I laughed… out loud… a little




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


bogus (and or missing) error messages

2009-12-01 Thread Hugh Myers
Often I get the following pattern--- say I'm working on bar 59 and
make a mistake. After the compilation process, the error message
refers to bar 22! Given that I'm working in relative mode, I'm
confused as to how code that was moments before correct is now in
error?

Another pattern I see frequently is the over printing of the 'Music
engraving by LilyPond 2.13.7—www.lilypond.org' when it is mistakenly
placed at the bottom of the first page because the second page has be
wrongly compressed into the first page--- lots wrong, no errors---
why?

--hsm
p.s. all of this goes away when I find the actual error and correct
it. Since by experience I know it is in the current bar, I'm just
wondering where the 'NOISE' is coming from...


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


bar numbering

2009-12-01 Thread Hugh Myers
Clearly this doesn't work:

\version 2.13.7
upper = {
  b c d
}

lower = {
   gis, d e, 2.
}

{
  \time 3/4
  
  \new Staff \relative c'' {

  \set Score.barAlways = ##t
  \set Score.defaultBarType = |
  \new Voice = 1 { \voiceOne \upper }
  \new Voice = 2 { \voiceTwo \lower }

  }
  \new TabStaff \relative c' {

  \new TabVoice = t1 { \voiceOne \upper }
  \new TabVoice = t2 { \voiceTwo \lower }

  }
  
}

what does? That is, what numbers each bar, not each not?

--hsm


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


vertical staff and tab

2009-12-01 Thread Hugh Myers
I've yet to chase down a working example that given:

\version 2.13.7
upper = {
  e,, f g
  a b c
  d e f
  g a b
  c d e
  f g a
  b c d
  e s2
}

lower = {
  s2.
  s2.
  s2.
  s2.
  s2.
  s2.
  s2.
  s2.
}

{
  \time 3/4
  
  \new Staff \relative c'' {

  \new Voice = 1 { \voiceOne \upper }
  \new Voice = 2 { \voiceTwo \lower }
  \new Lyrics \lyricsto 1 {
e f g
a b c
d e f
g a b
c d e
f g a
b c d
e f g
a
  }
  
  }
  \new TabStaff \relative c' {

  \new TabVoice = t1 { \voiceOne \upper }
  \new TabVoice = t2 { \voiceTwo \lower }

  }
  
}

allows me to increase the vertical distance between the notes as shown
and the text beneath. Hints relative to the small text above?

--hsm


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


Re: bar numbering

2009-12-01 Thread Hugh Myers
So for the truly picky, insert:

  \set Score.barNumberVisibility = #all-bar-numbers-visible
  \bar 

just before you change and let the bar numbers fall where they may!

Much thanks Brett...

--hsm

On Tue, Dec 1, 2009 at 9:17 PM, Brett Duncan bdd1...@bigpond.net.au wrote:
 Hugh Myers wrote:

 Clearly this doesn't work:

 \version 2.13.7
 upper = {
  b c d
 }

 lower = {
   gis, d e, 2.
 }

 {
  \time 3/4
  
  \new Staff \relative c'' {
    
      \set Score.barAlways = ##t
      \set Score.defaultBarType = |
      \new Voice = 1 { \voiceOne \upper }
      \new Voice = 2 { \voiceTwo \lower }
    
  }
  \new TabStaff \relative c' {
    
      \new TabVoice = t1 { \voiceOne \upper }
      \new TabVoice = t2 { \voiceTwo \lower }
    
  }
  
 }

 what does? That is, what numbers each bar, not each not?


 Instead of

 \set Score.barAlways = ##t

 try

 \override Score.BarNumber #'break-visibility = #'#(#t #t #t)

 HTH

 Brett



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


page break failure

2009-12-01 Thread Hugh Myers
Pardon the length of the piece of code, but clearly demonstrates the
problem where as other pieces don't (got to be a page long for
instance...):

%
% malaguena.ly -- qd testbed for mixed notation score and tab.
%
\version 2.13.7
\header {
  title = Malaguena
  subtitle = none
  composer = Music by Unknown
}

tspan = #(define-music-function (parser location text osp dirn shorten
adjBreak adjEnd) (string? number? number? pair? number? number?) #{
  % set osp to 999 if spanner is colliding with another element
  % this will position the spanner outside all other elements
  % can be normally be set to zero
  \once \override TextSpanner #'outside-staff-priority = #$osp
  % add '\bold' to end of \markup if desired...
  \once \override TextSpanner #'bound-details #'left #'text =
\markup\italic\small { \concat { { $text }   } }
  \once \override TextSpanner #'font-shape = #'upright
  % direction (either #UP or #DOWN)
  \once \override TextSpanner #'direction = #$dirn
  % setup dashed line and draw a bracket edge on RHS
  \once \override TextSpanner #'dash-period = #1.5
  \once \override TextSpanner #'dash-fraction = #0.3
  \once \override TextSpanner #'thickness = #0.8
  \once \override TextSpanner #'bound-details #'right #'text = \markup
{ \draw-line #(cons 0 (/ $dirn -1)) }
  % set alignment of line with reference to left text
  \once \override TextSpanner #'bound-details #'left
#'stencil-align-dir-y = #CENTER
  \once \override TextSpanner #'bound-details #'left #'padding = #(car $shorten)
  \once \override TextSpanner #'bound-details #'right #'padding =
#(cdr $shorten)
  % allow adjustment of line end when it wraps to following stave
  \once \override TextSpanner #'bound-details #'right-broken #'padding
= #$adjEnd
  % adjust LH end of line when it wraps to following stave so that it doesn't
  % extend to the left of the notes on the stave
  \once \override TextSpanner #'bound-details #'left-broken #'X = #$adjBreak
  % optional override to remove text and bracket edge at line breaks
  % comment out to repeat text at each measure wrap
%  \once \override TextSpanner #'bound-details #'left-broken #'text = ##f
%  \once \override TextSpanner #'bound-details #'right-broken #'text = ##f
#})

ringer = \tspan let ring #0 #DOWN #'(0 . -0.5) #5 #1
chord =  e b gis e b e, 
nullTempo = { \once \set Score.tempoHideNote = ##t \tempo 4 = 199 }
upper = {
  \tempo 4=90
  \barNumberCheck #1 \chord \chord \chord
  \repeat volta 2 {
\tempo 4=200
\barNumberCheck #2 b c d
\barNumberCheck #3 d c b
\barNumberCheck #4 c a b
\barNumberCheck #5 \acciaccatura d8 \voiceOne c4 b a
\barNumberCheck #6 b a g
\barNumberCheck #7 a g f
\nullTempo
  }
  \alternative {
{
  \override TupletBracket #'bracket-visibility = ##t
  \barNumberCheck #8 r4  \ringer \times 2/3 { gis8 \startTextSpan
b e } e,4 \times 2/3 { gis8 b e } e,2
}
{
  \repeat volta 2 {
\bar :|.|:
\barNumberCheck #10 { e8 [e'] gis, [e'] b [e] }
\barNumberCheck #11 e,8 [e'] gis, [e'] b [e]
\barNumberCheck #12 a,8 [e'] c [e] b [e]
\barNumberCheck #13 a,8 [e'] g, [e'] f, [e']
  }
}
  }
  \barNumberCheck #14 e,8 [e'] gis, [e'] b [e]
  \barNumberCheck #15 d8 [e] c [e] b [e]
  \barNumberCheck #16 c8 [e] a, [e'] b [e]
  \barNumberCheck #17 c8 [e] b [e] a, [e']
  \barNumberCheck #18 b8 [e] a, [e'] g, [e']
  \barNumberCheck #19 a,8 [e'] g, [e'] f, [e']
  \barNumberCheck #20 e,4 gis b
  \stopTextSpan
  \barNumberCheck #21  e b gis e b e, 2.
  \barNumberCheck #22 e4 e e
  \barNumberCheck #23 e4 e d
  \barNumberCheck #24 f4 e d
  \barNumberCheck #25 c2.
  \barNumberCheck #26 c4 c c
  \barNumberCheck #27 c4 c b
  \barNumberCheck #28 d4 c b
  \barNumberCheck #29 a2.
  \barNumberCheck #30 a4 b c
  \barNumberCheck #31 d4 e d
  \barNumberCheck #32 f4 e d
  \barNumberCheck #33 c2.
  \barNumberCheck #34 c4 d e
  \barNumberCheck #35 f4 g f
  \barNumberCheck #36 f2 e16 f g ( f )
  \tempo 4=200
  \barNumberCheck #37  e b gis e b e, 2.
  \barNumberCheck #38 e,,8 [  b'' e  ] gis, [  b' e  ] b, [  b' e  ]
  \barNumberCheck #39 e,,8 [  b'' e  ] gis, [  b' e  ] b, [  b' e  ]
  \barNumberCheck #40 a,8 [  c' e  ] c, [  c' e  ] b, [  c' e  ]
  \barNumberCheck #41 a,8 [  c' e  ] g, [  b' e  ] f, [  b' e  ]
  \barNumberCheck #42 e,,8 [  b'' e  ] gis, [  b' e  ] b, [  b' e  ]
  \barNumberCheck #43 e,,8 [  b'' e  ] gis, [  b' e  ] b, [  b' e  ]
  \barNumberCheck #44 a,8 [  c' e ] b, [  c' e  ] c, [  c' e  ]
  \barNumberCheck #45 d,8 [  c' e ] \stemDown e, [  c' e  ] f, [  c' e  ]
  \bar |:
  \barNumberCheck #46 \ringer \times 2/3 { e,8 \startTextSpan  [ e' b
] } \times 2/3 { gis8 [ e' b ] } \times 2/3 { b\3 [ e b ] }
  \barNumberCheck #47 \times 2/3 { e,8 [ e' b ] } \times 2/3 { gis8 [
e' b ] } \times 2/3 { b\3 [ e b ] }
  \barNumberCheck #48 \times 2/3 { a8 [ e' c ] } \times 2/3 { c\3 [ e
e\2 ] } \times 2/3 { b\3 [ e d ] }
  \barNumberCheck #49 \times 2/3 { a8 [ e' c ] } \times 2/3 { g [ e' b
] } \times 2/3 { f [ e' 

Re: bogus (and or missing) error messages

2009-12-01 Thread Hugh Myers
I'll see what I can do--- lucky for me my editor has unlimited undos.

--hsm

On Tue, Dec 1, 2009 at 11:12 PM, Francisco Vila paconet@gmail.com wrote:
 2009/12/2 Hugh Myers hsmy...@gmail.com:
 Often I get the following pattern--- say I'm working on bar 59 and
 make a mistake. After the compilation process, the error message
 refers to bar 22! Given that I'm working in relative mode, I'm
 confused as to how code that was moments before correct is now in
 error?

 Another pattern I see frequently is the over printing of the 'Music
 engraving by LilyPond 2.13.7—www.lilypond.org' when it is mistakenly
 placed at the bottom of the first page because the second page has be
 wrongly compressed into the first page--- lots wrong, no errors---
 why?

 --hsm
 p.s. all of this goes away when I find the actual error and correct
 it. Since by experience I know it is in the current bar, I'm just
 wondering where the 'NOISE' is coming from...

 If you attach a file that shows this problem we could try to reproduce it.
 --
 Francisco Vila. Badajoz (Spain)
 www.paconet.org
 www.csmbadajoz.com



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


Re: page break failure

2009-12-01 Thread Hugh Myers
Second point taken. I hope you realize that 2.13 has bug fixes for
2.12--- yes? Without those, there is no project... I don't suppose you
took a look? Did you notice that in included tablature? If you had,
then you would perhaps have sent me a different 'Most spacing bugs can
be reproduced...' Also note that I made no claim of 'BUG'. I am new at
this and would more likely expect the problem to have been caused by
something I did, not a bug.

--hsm
p.s. I am sufficiently new that I've no idea (although I can guess and
goggle) what you snippet does.

On Tue, Dec 1, 2009 at 11:04 PM, Graham Percival
gra...@percival-music.ca wrote:
 On Tue, Dec 01, 2009 at 09:57:00PM -0700, Hugh Myers wrote:
 Pardon the length of the piece of code, but clearly demonstrates the
 problem where as other pieces don't (got to be a page long for
 instance...):

 \version 2.13.7

 I hope that you realize that 2.13.7 is an UNSTABLE, DEVELOPMENT
 release.  If you would like to participate in de-bugging, your
 help would be appreciated, but please supply small,
 easy-to-understand examples.

 Most spacing bugs can be reproduced with something like
 \relative c' {
  \repeat unfold 128 { c4 c c c }
 }


 Cheers,
 - Graham



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


Re: page break failure

2009-12-01 Thread Hugh Myers
Here is the shortest template I use:

\version 2.13.7
upper = {
  b c d
}

lower = {
   gis, d e, 2.
}

{
  \time 3/4
  
  \new Staff \relative c'' {

  \set Score.barNumberVisibility = #all-bar-numbers-visible
  \bar 
  \override Score.BarNumber #'break-visibility = #'#(#t #t #t)
  \set Score.defaultBarType = |
  \new Voice = 1 { \voiceOne \upper }
  \new Voice = 2 { \voiceTwo \lower }

  }
  \new TabStaff \relative c' {

  \new TabVoice = t1 { \voiceOne \upper }
  \new TabVoice = t2 { \voiceTwo \lower }

  }
  
}

Could you show me how to modify it according to the example you sent?

--hsm

On Wed, Dec 2, 2009 at 12:18 AM, Hugh Myers hsmy...@gmail.com wrote:
 Second point taken. I hope you realize that 2.13 has bug fixes for
 2.12--- yes? Without those, there is no project... I don't suppose you
 took a look? Did you notice that in included tablature? If you had,
 then you would perhaps have sent me a different 'Most spacing bugs can
 be reproduced...' Also note that I made no claim of 'BUG'. I am new at
 this and would more likely expect the problem to have been caused by
 something I did, not a bug.

 --hsm
 p.s. I am sufficiently new that I've no idea (although I can guess and
 goggle) what you snippet does.

 On Tue, Dec 1, 2009 at 11:04 PM, Graham Percival
 gra...@percival-music.ca wrote:
 On Tue, Dec 01, 2009 at 09:57:00PM -0700, Hugh Myers wrote:
 Pardon the length of the piece of code, but clearly demonstrates the
 problem where as other pieces don't (got to be a page long for
 instance...):

 \version 2.13.7

 I hope that you realize that 2.13.7 is an UNSTABLE, DEVELOPMENT
 release.  If you would like to participate in de-bugging, your
 help would be appreciated, but please supply small,
 easy-to-understand examples.

 Most spacing bugs can be reproduced with something like
 \relative c' {
  \repeat unfold 128 { c4 c c c }
 }


 Cheers,
 - Graham




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


Re: bogus (and or missing) error messages

2009-12-01 Thread Hugh Myers
After some length of time, I've determined the 'undo' method won't get
me there! This will have to wait until it happens again.

--hsm

On Wed, Dec 2, 2009 at 12:08 AM, Hugh Myers hsmy...@gmail.com wrote:
 I'll see what I can do--- lucky for me my editor has unlimited undos.

 --hsm

 On Tue, Dec 1, 2009 at 11:12 PM, Francisco Vila paconet@gmail.com wrote:
 2009/12/2 Hugh Myers hsmy...@gmail.com:
 Often I get the following pattern--- say I'm working on bar 59 and
 make a mistake. After the compilation process, the error message
 refers to bar 22! Given that I'm working in relative mode, I'm
 confused as to how code that was moments before correct is now in
 error?

 Another pattern I see frequently is the over printing of the 'Music
 engraving by LilyPond 2.13.7—www.lilypond.org' when it is mistakenly
 placed at the bottom of the first page because the second page has be
 wrongly compressed into the first page--- lots wrong, no errors---
 why?

 --hsm
 p.s. all of this goes away when I find the actual error and correct
 it. Since by experience I know it is in the current bar, I'm just
 wondering where the 'NOISE' is coming from...

 If you attach a file that shows this problem we could try to reproduce it.
 --
 Francisco Vila. Badajoz (Spain)
 www.paconet.org
 www.csmbadajoz.com




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


Re: page break failure

2009-12-01 Thread Hugh Myers
Since the project can't be done in 2.12, what do you suggest?

--hsm

On Wed, Dec 2, 2009 at 12:41 AM, Marc Hohl m...@hohlart.de wrote:
 Hugh Myers schrieb:

 Second point taken. I hope you realize that 2.13 has bug fixes for
 2.12--- yes?

 Yes, but 2.13.x is work in progress. There is a new layout engine
 which is still under improvement, as far as I know.
 So the layout may change considerably between 2.13.x and 2.13.y.

 2.12.x is stable, and so it will be for 2.14.x. In the odd-numbered
 versions, everything can happen without warning.

 Without those, there is no project...

 There has to be the possibility to test the latest development version,
 so the 2.13.x versions are available for everyone, but as they are
 called development versions, you can't take anything for granted here...

 Marc



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


Re: page break failure

2009-12-01 Thread Hugh Myers
Ah! That should be easy enough to work with--- I'll see what I can come up with.

--hsm

On Wed, Dec 2, 2009 at 12:43 AM, Marc Hohl m...@hohlart.de wrote:
 Hugh Myers schrieb:

 Here is the shortest template I use:

 \version 2.13.7
 upper = {
  b c d
 }


 Use

 upper = {
  \repeat unfold 100 {
   b c d
  }
 }

 lower = {
   gis, d e, 2.
 }



 and

 lower = {
  \repeat unfold 100 {
    gis, d e, .
  }
 }

 respectively.

 Marc

 {
  \time 3/4
  
  \new Staff \relative c'' {
    
      \set Score.barNumberVisibility = #all-bar-numbers-visible
      \bar 
      \override Score.BarNumber #'break-visibility = #'#(#t #t #t)
      \set Score.defaultBarType = |
      \new Voice = 1 { \voiceOne \upper }
      \new Voice = 2 { \voiceTwo \lower }
    
  }
  \new TabStaff \relative c' {
    
      \new TabVoice = t1 { \voiceOne \upper }
      \new TabVoice = t2 { \voiceTwo \lower }
    
  }
  
 }

 Could you show me how to modify it according to the example you sent?

 --hsm

 On Wed, Dec 2, 2009 at 12:18 AM, Hugh Myers hsmy...@gmail.com wrote:


 Second point taken. I hope you realize that 2.13 has bug fixes for
 2.12--- yes? Without those, there is no project... I don't suppose you
 took a look? Did you notice that in included tablature? If you had,
 then you would perhaps have sent me a different 'Most spacing bugs can
 be reproduced...' Also note that I made no claim of 'BUG'. I am new at
 this and would more likely expect the problem to have been caused by
 something I did, not a bug.

 --hsm
 p.s. I am sufficiently new that I've no idea (although I can guess and
 goggle) what you snippet does.

 On Tue, Dec 1, 2009 at 11:04 PM, Graham Percival
 gra...@percival-music.ca wrote:


 On Tue, Dec 01, 2009 at 09:57:00PM -0700, Hugh Myers wrote:


 Pardon the length of the piece of code, but clearly demonstrates the
 problem where as other pieces don't (got to be a page long for
 instance...):
        \version 2.13.7


 I hope that you realize that 2.13.7 is an UNSTABLE, DEVELOPMENT
 release.  If you would like to participate in de-bugging, your
 help would be appreciated, but please supply small,
 easy-to-understand examples.

 Most spacing bugs can be reproduced with something like
 \relative c' {
  \repeat unfold 128 { c4 c c c }
 }


 Cheers,
 - Graham




 ___
 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


tablature fingering

2009-11-29 Thread Hugh Myers
Given the nature of the guitar fret board a note like a b may be
indicated in tablature in at least two ways. For instance in this
example:
\version 2.13.7
upper = {
 \times 2/3 { e,8 [ e' b ] } \times 2/3 { gis8 [ e' b ] } \times 2/3 {
b [ e b ] }
}

lower = {
 s2.
}

{
 \time 3/4
 
 \new Staff \relative c'' {
   
     \new Voice = 1 { \voiceOne \upper }
     \new Voice = 2 { \voiceTwo \lower }
   
 }
 \new TabStaff \relative c' {
   
     \new TabVoice = t1 { \voiceOne \upper }
     \new TabVoice = t2 { \voiceTwo \lower }
   
 }
 
}

However what is wanted in ascii tablature at least is:

e--0--0--0---|
B---0--0--0--|
G1--4|
D-2--|
A|
E|

So how do I get from here to there?

--hsm


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


Re: tablature fingering

2009-11-29 Thread Hugh Myers
Eluze,

Thanks for the RTFM pointer--- I did but plead dementia :)

--hsm

On Sun, Nov 29, 2009 at 3:35 PM, -Eluze elu...@gmail.com wrote:


 Hugh Myers wrote:


 So how do I get from here to there?

 reading the Notation Reference (NR), in this case
 http://lilypond.org/doc/v2.12/Documentation/user/lilypond-big-page#Default-tablatures
 Default-tablatures

 --
 View this message in context: 
 http://old.nabble.com/tablature-fingering-tp2650p26567057.html
 Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



 ___
 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


tupletBracket setting ignored

2009-11-28 Thread Hugh Myers
How do I force tupletBracket printing if

  \override TupletBracket #'bracket-visibility = ##t

is ignored?

--hsm


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


breaking up joined triplets

2009-11-28 Thread Hugh Myers
In the following:

\version 2.13.7
upper = {
  \stemDown
  \times 2/3 { e,8 e' b } \times 2/3 {gis8 e' b } \times 2/3 { b e b }
  \times 2/3 { e,8 e' b } \times 2/3 {gis8 e' b } \times 2/3 { b e b }
}

lower = {
  s2.
  s2.
}

{
  \time 3/4
  
  \new Staff \relative c'' {

  \new Voice = 1 { \voiceOne \upper }
  \new Voice = 2 { \voiceTwo \lower }

  }
  \new TabStaff \relative c' {

  \new TabVoice = t1 { \voiceOne \upper }
  \new TabVoice = t2 { \voiceTwo \lower }

  }
  
}

the triplets are connected by a bar--- how do I prevent this?

--hsm


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


Re: breaking up joined triplets

2009-11-28 Thread Hugh Myers
Thanks Alexander,

Looks like good information all around. I'll give it a go.

--hsm

On Sat, Nov 28, 2009 at 8:21 PM, Alexander Kobel n...@a-kobel.de wrote:
 Hugh Myers wrote:

 In the following:

 \version 2.13.7
 upper = {
  \stemDown
  \times 2/3 { e,8 e' b } \times 2/3 {gis8 e' b } \times 2/3 { b e b }
  \times 2/3 { e,8 e' b } \times 2/3 {gis8 e' b } \times 2/3 { b e b }
 }
 [...]
 the triplets are connected by a bar--- how do I prevent this?


 Hi, Hugh,

 it's nothing to do with the triplets themselves. In time 3/4, the whole
 measure gets a common beam by default.
 To change it, either use manual beams like
  \times 2/3 { e,8[ e' b] } \times 2/3 {gis8[ e' b] } \times 2/3 { b[ e b] }
  %% The [ and ] are the interesting parts.
 or
  \overrideBeamSettings #'Voice #'(3 . 4) #'end #'((* . (1 1 1))) .  %%
 Replace Voice by Staff or Score if you want the change to affect a larger
 range.

 By the way, you can also use
  \set tupletSpannerDuration = #(ly:make-moment 1 4)
 then you don't need to write all the tuplets separated, but you can just say
  \times 2/3 { e,8 e' b   gis8 e' b   b e b } .


 Cheers,
 Alexander



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


Re: text spanning

2009-11-27 Thread Hugh Myers
Perhaps I misunderstand your reply, but bar 14(where the problem is)
has nothing to do with a rest. The text starts where (as you say) I
wanted it to. That is not the problem. What is the problem is the
continuation of the spanning text at bar 14--- here it starts outside
in the margin instead of being aligned beneath a note. Is this
behavior controllable?

--hsm

On Fri, Nov 27, 2009 at 3:02 AM, -Eluze elu...@gmail.com wrote:


 Hugh Myers wrote:

 the spanning text in bar 14 does not align with the first note of the
 bar as I had expected. Is there a way to control this?

 it starts exactly where you defined it (on the gis8) - i guess you want it
 to start with the rest:

 r4 \startTextSpan …

 --
 View this message in context: 
 http://old.nabble.com/text-spanning-tp26538649p26540179.html
 Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



 ___
 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: text spanning

2009-11-27 Thread Hugh Myers
Lovely! Much thanks Nick--- also nice to have code to examine prior to
the point I need to roll my own :)

--hsm

On Fri, Nov 27, 2009 at 12:20 PM, Nick Payne
nick.pa...@internode.on.net wrote:
 Hugh Myers wrote:

 Perhaps I misunderstand your reply, but bar 14(where the problem is)
 has nothing to do with a rest. The text starts where (as you say) I
 wanted it to. That is not the problem. What is the problem is the
 continuation of the spanning text at bar 14--- here it starts outside
 in the margin instead of being aligned beneath a note. Is this
 behavior controllable?

 See music function below that I wrote for creating text spanners with
 arbitrary text. It allows you to specify as parameters:

 The starting text
 The outside staff priority
 Whether the spanner is above or below the stave
 The amount by which you want to adjust the left and right ends of the
 spanner
 The amount by which you want to adjust the left and right point at which the
 spanner breaks when it crosses a line break

 % usage e.g.:
 %   \tspan sul ponticello #0 #DOWN #'(0 . -0.5) #5 #1
 %   g\startTextSpan c bes' ees, aes c, g c bes' ees, aes c,\stopTextSpan
 tspan = #(define-music-function (parser location text osp dirn shorten
 adjBreak adjEnd) (string? number? number? pair? number? number?) #{
   % set osp to 999 if spanner is colliding with another element
   % this will position the spanner outside all other elements
   % can be normally be set to zero
   \once \override TextSpanner #'outside-staff-priority = #$osp
   \once \override TextSpanner #'bound-details #'left #'text =
 \markup\italic\small\bold { \concat { { $text }   } }
   \once \override TextSpanner #'font-shape = #'upright
   % direction (either #UP or #DOWN)
   \once \override TextSpanner #'direction = #$dirn
   % setup dashed line and draw a bracket edge on RHS
   \once \override TextSpanner #'dash-period = #1.5
   \once \override TextSpanner #'dash-fraction = #0.3
   \once \override TextSpanner #'thickness = #0.8
   \once \override TextSpanner #'bound-details #'right #'text = \markup {
 \draw-line #(cons 0 (/ $dirn -1)) }
   % set alignment of line with reference to left text
   \once \override TextSpanner #'bound-details #'left #'stencil-align-dir-y =
 #CENTER
   \once \override TextSpanner #'bound-details #'left #'padding = #(car
 $shorten)
   \once \override TextSpanner #'bound-details #'right #'padding = #(cdr
 $shorten)
   % allow adjustment of line end when it wraps to following stave
   \once \override TextSpanner #'bound-details #'right-broken #'padding =
 #$adjEnd
   % adjust LH end of line when it wraps to following stave so that it
 doesn't
   % extend to the left of the notes on the stave
   \once \override TextSpanner #'bound-details #'left-broken #'X = #$adjBreak
   % optional override to remove text and bracket edge at line breaks
   \once \override TextSpanner #'bound-details #'left-broken #'text = ##f
   \once \override TextSpanner #'bound-details #'right-broken #'text = ##f
 #})





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


Re: text spanning

2009-11-27 Thread Hugh Myers
Is there a way to repeat the text automagically with each wrap?

--hsm


On Fri, Nov 27, 2009 at 12:24 PM, Hugh Myers hsmy...@gmail.com wrote:
 Lovely! Much thanks Nick--- also nice to have code to examine prior to
 the point I need to roll my own :)

 --hsm

 On Fri, Nov 27, 2009 at 12:20 PM, Nick Payne
 nick.pa...@internode.on.net wrote:
 Hugh Myers wrote:

 Perhaps I misunderstand your reply, but bar 14(where the problem is)
 has nothing to do with a rest. The text starts where (as you say) I
 wanted it to. That is not the problem. What is the problem is the
 continuation of the spanning text at bar 14--- here it starts outside
 in the margin instead of being aligned beneath a note. Is this
 behavior controllable?

 See music function below that I wrote for creating text spanners with
 arbitrary text. It allows you to specify as parameters:

 The starting text
 The outside staff priority
 Whether the spanner is above or below the stave
 The amount by which you want to adjust the left and right ends of the
 spanner
 The amount by which you want to adjust the left and right point at which the
 spanner breaks when it crosses a line break

 % usage e.g.:
 %   \tspan sul ponticello #0 #DOWN #'(0 . -0.5) #5 #1
 %   g\startTextSpan c bes' ees, aes c, g c bes' ees, aes c,\stopTextSpan
 tspan = #(define-music-function (parser location text osp dirn shorten
 adjBreak adjEnd) (string? number? number? pair? number? number?) #{
   % set osp to 999 if spanner is colliding with another element
   % this will position the spanner outside all other elements
   % can be normally be set to zero
   \once \override TextSpanner #'outside-staff-priority = #$osp
   \once \override TextSpanner #'bound-details #'left #'text =
 \markup\italic\small\bold { \concat { { $text }   } }
   \once \override TextSpanner #'font-shape = #'upright
   % direction (either #UP or #DOWN)
   \once \override TextSpanner #'direction = #$dirn
   % setup dashed line and draw a bracket edge on RHS
   \once \override TextSpanner #'dash-period = #1.5
   \once \override TextSpanner #'dash-fraction = #0.3
   \once \override TextSpanner #'thickness = #0.8
   \once \override TextSpanner #'bound-details #'right #'text = \markup {
 \draw-line #(cons 0 (/ $dirn -1)) }
   % set alignment of line with reference to left text
   \once \override TextSpanner #'bound-details #'left #'stencil-align-dir-y =
 #CENTER
   \once \override TextSpanner #'bound-details #'left #'padding = #(car
 $shorten)
   \once \override TextSpanner #'bound-details #'right #'padding = #(cdr
 $shorten)
   % allow adjustment of line end when it wraps to following stave
   \once \override TextSpanner #'bound-details #'right-broken #'padding =
 #$adjEnd
   % adjust LH end of line when it wraps to following stave so that it
 doesn't
   % extend to the left of the notes on the stave
   \once \override TextSpanner #'bound-details #'left-broken #'X = #$adjBreak
   % optional override to remove text and bracket edge at line breaks
   \once \override TextSpanner #'bound-details #'left-broken #'text = ##f
   \once \override TextSpanner #'bound-details #'right-broken #'text = ##f
 #})






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


Re: text spanning

2009-11-27 Thread Hugh Myers
I'll try both as needed... and let you know.

--hsm

On Fri, Nov 27, 2009 at 5:34 PM, Nick Payne nick.pa...@internode.on.net wrote:
 To get the text repeated on each line, you either comment out last two lines
 in the function or change the override value to ##t, I can't remember which.

 Nick

 Hugh Myers wrote:

 Is there a way to repeat the text automagically with each wrap?

 --hsm


 On Fri, Nov 27, 2009 at 12:24 PM, Hugh Myers hsmy...@gmail.com wrote:


 Lovely! Much thanks Nick--- also nice to have code to examine prior to
 the point I need to roll my own :)

 --hsm

 On Fri, Nov 27, 2009 at 12:20 PM, Nick Payne
 nick.pa...@internode.on.net wrote:


 Hugh Myers wrote:


 Perhaps I misunderstand your reply, but bar 14(where the problem is)
 has nothing to do with a rest. The text starts where (as you say) I
 wanted it to. That is not the problem. What is the problem is the
 continuation of the spanning text at bar 14--- here it starts outside
 in the margin instead of being aligned beneath a note. Is this
 behavior controllable?


 See music function below that I wrote for creating text spanners with
 arbitrary text. It allows you to specify as parameters:

 The starting text
 The outside staff priority
 Whether the spanner is above or below the stave
 The amount by which you want to adjust the left and right ends of the
 spanner
 The amount by which you want to adjust the left and right point at which
 the
 spanner breaks when it crosses a line break

 % usage e.g.:
 %   \tspan sul ponticello #0 #DOWN #'(0 . -0.5) #5 #1
 %   g\startTextSpan c bes' ees, aes c, g c bes' ees, aes c,\stopTextSpan
 tspan = #(define-music-function (parser location text osp dirn shorten
 adjBreak adjEnd) (string? number? number? pair? number? number?) #{
  % set osp to 999 if spanner is colliding with another element
  % this will position the spanner outside all other elements
  % can be normally be set to zero
  \once \override TextSpanner #'outside-staff-priority = #$osp
  \once \override TextSpanner #'bound-details #'left #'text =
 \markup\italic\small\bold { \concat { { $text }   } }
  \once \override TextSpanner #'font-shape = #'upright
  % direction (either #UP or #DOWN)
  \once \override TextSpanner #'direction = #$dirn
  % setup dashed line and draw a bracket edge on RHS
  \once \override TextSpanner #'dash-period = #1.5
  \once \override TextSpanner #'dash-fraction = #0.3
  \once \override TextSpanner #'thickness = #0.8
  \once \override TextSpanner #'bound-details #'right #'text = \markup {
 \draw-line #(cons 0 (/ $dirn -1)) }
  % set alignment of line with reference to left text
  \once \override TextSpanner #'bound-details #'left
 #'stencil-align-dir-y =
 #CENTER
  \once \override TextSpanner #'bound-details #'left #'padding = #(car
 $shorten)
  \once \override TextSpanner #'bound-details #'right #'padding = #(cdr
 $shorten)
  % allow adjustment of line end when it wraps to following stave
  \once \override TextSpanner #'bound-details #'right-broken #'padding =
 #$adjEnd
  % adjust LH end of line when it wraps to following stave so that it
 doesn't
  % extend to the left of the notes on the stave
  \once \override TextSpanner #'bound-details #'left-broken #'X =
 #$adjBreak
  % optional override to remove text and bracket edge at line breaks
  \once \override TextSpanner #'bound-details #'left-broken #'text = ##f
  \once \override TextSpanner #'bound-details #'right-broken #'text = ##f
 #})




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


Re: text spanning

2009-11-27 Thread Hugh Myers
Worked fine on supplied example. Does not work at all well on the
piece I'm working on. This:

\version 2.13.7

tspan = #(define-music-function (parser location text osp dirn shorten
adjBreak adjEnd) (string? number? number? pair? number? number?) #{
  % set osp to 999 if spanner is colliding with another element
  % this will position the spanner outside all other elements
  % can be normally be set to zero
  \once \override TextSpanner #'outside-staff-priority = #$osp
  \once \override TextSpanner #'bound-details #'left #'text =
\markup\italic\small { \concat { { $text }   } }
  \once \override TextSpanner #'font-shape = #'upright
  % direction (either #UP or #DOWN)
  \once \override TextSpanner #'direction = #$dirn
  % setup dashed line and draw a bracket edge on RHS
  \once \override TextSpanner #'dash-period = #1.5
  \once \override TextSpanner #'dash-fraction = #0.3
  \once \override TextSpanner #'thickness = #0.8
  \once \override TextSpanner #'bound-details #'right #'text = \markup
{ \draw-line #(cons 0 (/ $dirn -1)) }
  % set alignment of line with reference to left text
  \once \override TextSpanner #'bound-details #'left
#'stencil-align-dir-y = #CENTER
  \once \override TextSpanner #'bound-details #'left #'padding = #(car $shorten)
  \once \override TextSpanner #'bound-details #'right #'padding =
#(cdr $shorten)
  % allow adjustment of line end when it wraps to following stave
  \once \override TextSpanner #'bound-details #'right-broken #'padding
= #$adjEnd
  % adjust LH end of line when it wraps to following stave so that it doesn't
  % extend to the left of the notes on the stave
  \once \override TextSpanner #'bound-details #'left-broken #'X = #$adjBreak
  % optional override to remove text and bracket edge at line breaks
  \once \override TextSpanner #'bound-details #'left-broken #'text = ##f
  \once \override TextSpanner #'bound-details #'right-broken #'text = ##f
#})

chord =  e b gis e b e, 
upper = {
  \tempo 4=90
  \chord \chord \chord
  \repeat volta 2 {
\tempo 4=200
b c d
d c b
c a b
\acciaccatura d8 \voiceOne c4 b a
b a g
a g f
  }
  \alternative {
{ r4 \times 2/3 { gis8 \startTextSpan b e } e,4 \times 2/3 { gis8
b e } e,2 }
{
  \repeat volta 2 {
\bar :|.|:
{ e8 [e'] gis, [e'] b [e] }
e,8 [e'] gis, [e'] b [e]
a,8 [e'] c [e] b [e]
a,8 [e'] g, [e'] f, [e']
  }
}
  }
  e,8 [e'] gis, [e'] b [e]
  d8 [e] c [e] b [e]
  c8 [e] a, [e'] b [e]
  c8 [e] b [e] a, [e']
  b8 [e] a, [e'] g, [e']
  a,8 [e'] g, [e'] f, [e']
  e,4 gis b
  \stopTextSpan
   e b gis e b e, 2.
}

lower = {
  s2.
  gis, d e, 2.
  e,2.
  a2.
  a2.
  g2.
  f2.
  { e2.~e2. }
  s2.
  s2.
  s2.
  s2.
  s2.
  s2.
  s2.
  s2.
  s2.
  s2.
}

{
  \time 3/4
  \set Score.barNumberVisibility = #all-bar-numbers-visible
  \bar 
  \set Score.voltaSpannerDuration = #(ly:make-moment 3 4)
  \tspan let ring #0 #DOWN #'(0 . -0.5) #5 #1
  
  \new Staff \relative c'' {

  \new Voice = 1 { \voiceOne \upper }
  \new Voice = 2 { \voiceTwo \lower }

  }
  \new TabStaff \relative c' {

  \new TabVoice = t1 { \voiceOne \upper }
  \new TabVoice = t2 { \voiceTwo \lower }

  }
  
}

Doesn't work. Missing text element and from the looks of things is
seriously confused by the presence of the tablature staff. Also the
location of the dashes on wrapped lines indicates that they will be in
the wrong place--- although this could be related to the missing text
element? Hints?

--hsm

On Fri, Nov 27, 2009 at 6:18 PM, Hugh Myers hsmy...@gmail.com wrote:
 Commenting out the last two lines works just fine.

 --hsm

 On Fri, Nov 27, 2009 at 6:16 PM, Hugh Myers hsmy...@gmail.com wrote:
 I'll try both as needed... and let you know.

 --hsm

 On Fri, Nov 27, 2009 at 5:34 PM, Nick Payne nick.pa...@internode.on.net 
 wrote:
 To get the text repeated on each line, you either comment out last two lines
 in the function or change the override value to ##t, I can't remember which.

 Nick

 Hugh Myers wrote:

 Is there a way to repeat the text automagically with each wrap?

 --hsm


 On Fri, Nov 27, 2009 at 12:24 PM, Hugh Myers hsmy...@gmail.com wrote:


 Lovely! Much thanks Nick--- also nice to have code to examine prior to
 the point I need to roll my own :)

 --hsm

 On Fri, Nov 27, 2009 at 12:20 PM, Nick Payne
 nick.pa...@internode.on.net wrote:


 Hugh Myers wrote:


 Perhaps I misunderstand your reply, but bar 14(where the problem is)
 has nothing to do with a rest. The text starts where (as you say) I
 wanted it to. That is not the problem. What is the problem is the
 continuation of the spanning text at bar 14--- here it starts outside
 in the margin instead of being aligned beneath a note. Is this
 behavior controllable?


 See music function below that I wrote for creating text spanners with
 arbitrary text. It allows you to specify as parameters:

 The starting text
 The outside staff priority
 Whether the spanner is above or below the stave

Re: instantiating voices

2009-11-26 Thread Hugh Myers
I see nothing in the sample that allows for monophonic. As given I
only see polyphonic. The piece I'm working on is a mixture of both---
which obviously means I must be able to switch from one to the other.
Again, the sample is only polyphonic--- I must be missing something.
Hints?

--hsm

On Thu, Nov 26, 2009 at 1:29 AM, Federico Bruni brunol...@gmx.com wrote:
 Hugh Myers wrote:

 On a related note (:;) this piece is a mixture of polyphony and
 monophony. Is there an example of the two with tablature?

 --hsm

 If you use mainly polyphony, the following template should help you.
 Actually, you can use it also for a mixture of polyphony and monophony, just
 add a spacer note if you want a voice to be silent.

 The advantage of esplicitly instantiate the voices for both staves is that
 you can easily change some default behaviour of LilyPond that you may
 dislike.


 %% Begin template
 \version 2.13.7

 \header {
 }

 \paper {
 }

 upper=  \relative c' {

 }

 lower=  \relative c {

 }


  \score {
    \new StaffGroup 
      \new Staff = guitar 
        \context Voice = upper guitar { \clef G_8 \voiceOne  \upper }
        \context Voice = lower guitar { \clef G_8 \voiceTwo  \lower }
      
      \new TabStaff = tab 
        \context TabVoice = upper tab { \clef moderntab \voiceOne \upper
 }
        \context TabVoice = lower tab { \clef moderntab \voiceTwo \lower
 }
      
    
  }
 %% End template

 --
 http://gnurag.net/blog/
 http://fsfe.org/
 http://groups.fsf.org/wiki/LibrePlanetItalia




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


Re: instantiating voices

2009-11-26 Thread Hugh Myers
Marc,

Thanks for the clarification. So adding tablature, the template now looks like:

\version 2.13.7

 upper = {
  c4 d e f % polyphonic
  g4 a b c % monophonic, see below
  b4 g e c % polyphonic again
 }

 lower = {
  c,2 g2 % polyphonic
  s1 % a spacer disables this voice tamporarily
  g2 c2 % and here we are again.
}


  \new Staff \relative c'' {

  \new Voice = 1 { \voiceOne \upper }
  \new Voice = 2 { \voiceTwo \lower }

  }
  \new TabStaff \relative c' {

  \new TabVoice = t1 { \voiceOne \upper }
  \new TabVoice = t2 { \voiceTwo \lower }

  }


--hsm


On Thu, Nov 26, 2009 at 3:04 AM, Marc Hohl m...@hohlart.de wrote:
 Hugh Myers schrieb:

 I see nothing in the sample that allows for monophonic. As given I
 only see polyphonic. The piece I'm working on is a mixture of both---
 which obviously means I must be able to switch from one to the other.
 Again, the sample is only polyphonic--- I must be missing something.
 Hints?


 Federico pointed out that his sample will ease things if your piece is
 *mostly* polyphonic.

 If you use mainly polyphony, the following template should help you.


 There is his explanation how to use the template.

 Actually, you can use it also for a mixture of polyphony and monophony,
 just
 add a spacer note if you want a voice to be silent.


 In the parts where monophony is needed, you can add spacers  in the other
 voice,
 like this:

 upper = \relative c' {
  c4 d e f % polyphonic
  g4 a b c % monophonic, see below
  b4 g e c % polyphonic again
 }

 lower = \relative c, {
  c2 g2 % polyphonic
  s1 % a spacer disables this voice tamporarily
  g2 c2 % and here we are again.
 }

 Marc




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


text spanning

2009-11-26 Thread Hugh Myers
The following fails twice over; it leaves out the indicated text and
ignores \textSpannerDown:

\version 2.13.7

 upper = {
  c4 d e  \startTextSpan f % polyphonic
  g4 a b c % monophonic, see below
  b4 \stopTextSpan g e c % polyphonic again
 }

 lower = {
  c,2 g2 % polyphonic
  s1 % a spacer disables this voice tamporarily
  g2 c2 % and here we are again.
}


  \new Staff \relative c'' {
\textSpannerDown
\override TextSpanner #'(bound-details left text) = let ring 

  \new Voice = 1 { \voiceOne \upper }
  \new Voice = 2 { \voiceTwo \lower }

  }
  \new TabStaff \relative c' {

  \new TabVoice = t1 { \voiceOne \upper }
  \new TabVoice = t2 { \voiceTwo \lower }

  }


Where did I screw up?

--hsm


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


Re: text spanning

2009-11-26 Thread Hugh Myers
Much thanks Kieren,

This works:

  \new Staff \relative c'' {
\override Staff.TextSpanner #'(bound-details left text) = let ring 

  \new Voice = 1 { \textSpannerDown \voiceOne \upper }

--hsm

On Thu, Nov 26, 2009 at 8:02 AM, Kieren MacMillan
kieren_macmil...@sympatico.ca wrote:
 Hi Hugh,

 The following fails twice over; it leaves out the indicated text and
 ignores \textSpannerDown:
 […]
 Where did I screw up?

 You made the tweaks to the TextSpanner in the main Voice context:

 
  \new Staff \relative c'' {
    \textSpannerDown
    \override TextSpanner #'(bound-details left text) = let ring 

 but then generated a TextSpanner in a new Voice context:

    
      \new Voice = 1 { \voiceOne \upper }
      \new Voice = 2 { \voiceTwo \lower }
   

 I suggest instead that you either put the tweak in the variable itself (so
 it follows the generated TextSpanner around) or explicitly set the context
 of the tweak to the entire staff:

    \override Staff.TextSpanner #'(bound-details left text) = let ring 

 Hope this helps!
 Kieren.


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


Re: text spanning

2009-11-26 Thread Hugh Myers
Thanks, Alexander!

Now I have not just one but two solutions that work...

--hsm

On Thu, Nov 26, 2009 at 8:10 AM, Alexander Kobel n...@a-kobel.de wrote:
 Hugh Myers wrote:

 The following fails twice over; it leaves out the indicated text and
 ignores \textSpannerDown:

 Hi.

 Both \textSpannerDown and the override is applied to the /current/ Voice
 context (which is the unnamed default Voice quietly instantiated inside the
 Staff context). Thus, it is not regarded by the Voice = 1 context created
 afterwards.

 Moving the two commands into the Voice = 1 construct works as expected:

 \version 2.13.7

 upper = {
  c4 d e  \startTextSpan f % polyphonic
  g4 a b c % monophonic, see below
  b4 \stopTextSpan g e c % polyphonic again
 }

 lower = {
  c,2 g2 % polyphonic
  s1 % a spacer disables this voice tamporarily
  g2 c2 % and here we are again.
 }

 customOverrides = {
  \textSpannerDown
  \override TextSpanner #'(bound-details left text) = let ring 
 }

 
  \new Staff \relative c'' {
    
      \new Voice = 1 { \customOverrides \voiceOne \upper }
      \new Voice = 2 { \voiceTwo \lower }
    
  }
  \new TabStaff \relative c' {
    
      \new TabVoice = t1 { \voiceOne \upper }
      \new TabVoice = t2 { \voiceTwo \lower }
    
  }




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


Re: confusion in text spanning

2009-11-26 Thread Hugh Myers
I think I was keeping track of individual bars that way (with braces
that is)--- you are right, newline would work just as well and few
characters='s less clutter. Regards \stop etc. I got it to work more
or less as you say. It is on another machine, I'll show you the
template in the next email.

--hsm

2009/11/26 Frédéric Bron frederic.b...@m4x.org:
 Since I normally program in lisp, I don't have any problems with
 nested delimiters. Are you suggesting that excess (at least to your
 eyes) braces are the problem or are you suggesting that the \stop is
 at the wrong level?

 I was wondering why you add braces here: { a,8 [e'] g, [e'] f, [e'] }.
 Maybe if you try to put \stopTextSpan inside the last block, just
 after the last note and before } it would change something. But I am
 not sure.
 { a,8 [e'] g, [e'] f, [e'] \stopTextSpan }
 Frédéric



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


Re: confusion in text spanning

2009-11-26 Thread Hugh Myers
Here is the template I'm working with. The notes are nonsense, but the
problems are the ones I've run into and have had to solve...

\version 2.13.7

 upper = {
  c4 d e f \startTextSpan % polyphonic
  \repeat volta 2 {
g4 a b c % monophonic, see below
  }
  \alternative {
{ b4 \stopTextSpan g e c } % polyphonic again
{ \repeat volta 2 {
\bar :|.|:
b'4 g e c
  }
}
  }
  e g a b
 }

 lower = {
  c,2 g2 % polyphonic
  s1 % a spacer disables this voice tamporarily
  g2 c2 % and here we are again.
  g2 c2 % and here we are again.
  c2 g2
}

ringer = {
  \textSpannerDown
  \override TextSpanner #'(bound-details left text) = let ring 
}



  \new Staff \relative c'' {

  \new Voice = 1 { \ringer \voiceOne \upper }
  \new Voice = 2 { \voiceTwo \lower }

  }
  \new TabStaff \relative c' {

  \new TabVoice = t1 { \voiceOne \upper }
  \new TabVoice = t2 { \voiceTwo \lower }

  }


This demonstrates mixed mono and poly with tab. It also has spanned text.

--hsm

2009/11/26 Hugh Myers hsmy...@gmail.com:
 I think I was keeping track of individual bars that way (with braces
 that is)--- you are right, newline would work just as well and few
 characters='s less clutter. Regards \stop etc. I got it to work more
 or less as you say. It is on another machine, I'll show you the
 template in the next email.

 --hsm

 2009/11/26 Frédéric Bron frederic.b...@m4x.org:
 Since I normally program in lisp, I don't have any problems with
 nested delimiters. Are you suggesting that excess (at least to your
 eyes) braces are the problem or are you suggesting that the \stop is
 at the wrong level?

 I was wondering why you add braces here: { a,8 [e'] g, [e'] f, [e'] }.
 Maybe if you try to put \stopTextSpan inside the last block, just
 after the last note and before } it would change something. But I am
 not sure.
 { a,8 [e'] g, [e'] f, [e'] \stopTextSpan }
 Frédéric




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


text spanning

2009-11-26 Thread Hugh Myers
In the following:

\version 2.13.7

chord =  e b gis e b e, 
upper = {
  \tempo 4=90
  \chord \chord \chord
  \repeat volta 2 {
\tempo 4=200
b c d
d c b
c a b
\acciaccatura d8 \voiceOne c4 b a
b a g
a g f
  }
  \alternative {
{ r4 \times 2/3 { gis8 \startTextSpan b e } e,4 \times 2/3 { gis8
b e } e,2 }
{
  \repeat volta 2 {
\bar :|.|:
{ e8 [e'] gis, [e'] b [e] }
e,8 [e'] gis, [e'] b [e]
a,8 [e'] c [e] b [e]
a,8 [e'] g, [e'] f, [e']
  }
}
  }
  e,8 [e'] gis, [e'] b [e]
  d8 [e] c [e] b [e]
  c8 [e] a, [e'] b [e]
  c8 [e] b [e] a, [e']
  b8 [e] a, [e'] g, [e']
  a,8 [e'] g, [e'] f, [e']
  e,4 gis b
  \stopTextSpan
   e b gis e b e, 2.
}

lower = {
  s2.
  gis, d e, 2.
  e,2.
  a2.
  a2.
  g2.
  f2.
  { e2.~e2. }
  s2.
  s2.
  s2.
  s2.
  s2.
  s2.
  s2.
  s2.
  s2.
  s2.
}

ringer = {
  \textSpannerDown
  \override TextSpanner #'(bound-details left text) = let ring 
}

{
  \time 3/4
  \set Score.barNumberVisibility = #all-bar-numbers-visible
  \bar 
  \set Score.voltaSpannerDuration = #(ly:make-moment 3 4)
  
\new Staff \relative c'' {
  
\new Voice = 1 { \ringer \voiceOne \upper }
\new Voice = 2 { \voiceTwo \lower }
  
}
\new TabStaff \relative c' {
  
\new TabVoice = t1 { \voiceOne \upper }
\new TabVoice = t2 { \voiceTwo \lower }
  
}
  
}

the spanning text in bar 14 does not align with the first note of the
bar as I had expected. Is there a way to control this?

--hsm


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


\temp confusion

2009-11-25 Thread Hugh Myers
I have two \tempo 4=200 which admittedly follow each other without
intervening change. The second is not displayed. Why? How may this
behavior be modified?

--hsm


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


text spanning

2009-11-25 Thread Hugh Myers
I'm looking for an example of text spanning that does not invoke an
extra staff--- is there such a thing?

--hsm


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


spanning text question

2009-11-25 Thread Hugh Myers
The following seems broken:

\version 2.13.7
\new Staff \relative c'' {
  c1
  \textSpannerDown
  \override TextSpanner #'edge-text = #'(rail  . )
  c2
  \startTextSpan
  b c
  \stopTextSpan
  a
}

in that the word rail does not appear. Work around?

--hsm


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


Re: \temp confusion

2009-11-25 Thread Hugh Myers
The work around looks good. Yes 'without intervening change' was not
clear. There are more than 20 bars between, but not enough to be on a
separate page. I'm beginning to think the Lilypond needs a global to
prevent 'favors'!

--hsm


On Wed, Nov 25, 2009 at 11:44 AM, Alexander Kobel n...@a-kobel.de wrote:
 Hugh Myers wrote:

 I have two \tempo 4=200 which admittedly follow each other without
 intervening change. The second is not displayed. Why? How may this
 behavior be modified?

 If without intervening change means at different locations, you probably
 can just make a hidden change in between:

  \tempo 4 = 200
  ...
  \set Score.tempoHideNote = ##t
  \tempo 4 = 199
  \unset Score.tempoHideNote  % or \set Score.tempoHideNote = ##f, both
 should work
  ...
  \tempo 4 = 200

 and everything should be printed fine. Spare it out for MIDI, of course.

 If without intervening change means at the same location, well, then
 you're in trouble. You can't have two MetronomeMarks at the same point in
 time, but you probably don't want this, too.
 If you really want something like this, you're better off using a custom
 markup.


 HTH,
 Alexander



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


Re: \temp confusion

2009-11-25 Thread Hugh Myers
Opps! Spoke to soon.

  \set Score.tempoHideNote = ##t
  \tempo 4 = 199
  \unset Score.tempoHideNote

Doesn't work in the it prints the make work \tempo 4 = 199 without
regard to the tempoHideNote. Hints?

--hsm

On Wed, Nov 25, 2009 at 11:59 AM, Hugh Myers hsmy...@gmail.com wrote:
 The work around looks good. Yes 'without intervening change' was not
 clear. There are more than 20 bars between, but not enough to be on a
 separate page. I'm beginning to think the Lilypond needs a global to
 prevent 'favors'!

 --hsm


 On Wed, Nov 25, 2009 at 11:44 AM, Alexander Kobel n...@a-kobel.de wrote:
 Hugh Myers wrote:

 I have two \tempo 4=200 which admittedly follow each other without
 intervening change. The second is not displayed. Why? How may this
 behavior be modified?

 If without intervening change means at different locations, you probably
 can just make a hidden change in between:

  \tempo 4 = 200
  ...
  \set Score.tempoHideNote = ##t
  \tempo 4 = 199
  \unset Score.tempoHideNote  % or \set Score.tempoHideNote = ##f, both
 should work
  ...
  \tempo 4 = 200

 and everything should be printed fine. Spare it out for MIDI, of course.

 If without intervening change means at the same location, well, then
 you're in trouble. You can't have two MetronomeMarks at the same point in
 time, but you probably don't want this, too.
 If you really want something like this, you're better off using a custom
 markup.


 HTH,
 Alexander




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


documentation

2009-11-25 Thread Hugh Myers
When will the 2.13 docs be available?

--hsm


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


Re: \temp confusion

2009-11-25 Thread Hugh Myers
Thanks Neil,

That did it! Is the \unset line needed or no?

--hsmn

On Wed, Nov 25, 2009 at 3:38 PM, Neil Puttock n.putt...@gmail.com wrote:
 2009/11/25 Hugh Myers hsmy...@gmail.com:
 Opps! Spoke to soon.

  \set Score.tempoHideNote = ##t
  \tempo 4 = 199
  \unset Score.tempoHideNote

 Doesn't work in the it prints the make work \tempo 4 = 199 without
 regard to the tempoHideNote. Hints?

 Try \once \set Score.tempoHideNote = ##t instead.

 The \set and \unset commands are in the same timestep, so the \set
 command is ignored.

 Regards,
 Neil



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


confusion in text spanning

2009-11-25 Thread Hugh Myers
This:

firstPolyRepeat = {
   { r4 \startTextSpan \times 2/3 {gis'8 b e } e,4 \times 2/3 {gis8
b e} e,2 } \\ {e,2.~e} 
}
secondMono = {
  { e'8 [e'] gis, [e'] b [e] }
  { e,8 [e'] gis, [e'] b [e] }
  { a,8 [e'] c [e] b [e] }
  { a,8 [e'] g, [e'] f, [e'] }
}
thirdMono = {
  { e,8 [e'] gis, [e'] b [e] }
  { d8 [e] c [e] b [e] }
  { c8 [e] a, [e'] b [e] }
  { c8 [e] b [e] a, [e'] }
  { b8 [e] a, [e'] g, [e'] }
  { a,8 [e'] g, [e'] f, [e'] }
  \stopTextSpan
  \chordDottedHalf
}

gets me:

C:\Users\hsmyers\Desktop\Lily Projectslilypond.exe malaguena.ly
GNU LilyPond 2.13.7
Processing `malaguena.ly'
Parsing...
malaguena.ly:101:6: error: syntax error, unexpected EVENT_IDENTIFIER

  \stopTextSpan
malaguena.ly:78:0: error: errors found, ignoring music expression

{
error: failed files: malaguena.ly

So where do I place it? Bearing in mind that note-wise, both the start
and stop are correctly placed?

--hsm


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


Re: confusion in text spanning

2009-11-25 Thread Hugh Myers
Since the piece in question, Malaguena, already has mixed monophony
and polyphony, as well as tablature, adding voices to it doesn't seem
like a very good idea. Yes, I'm aware that ,\\  is shorthand for
voicing, but since it is shorthand, the visual complexity of the score
is kept to a readable level. Having to go backwards seems problematic
at best. Oh well, have to deal with what is, so I guess I will
painfully convert back to explicit voicing (again--- I was quite happy
when I was able to simplify it away the first time.)

--hsm

On Wed, Nov 25, 2009 at 5:02 PM, Xavier Scheuer x.sche...@gmail.com wrote:
 Le Wed, 25 Nov 2009 16:39:08 -0700,
 Hugh Myers hsmy...@gmail.com a écrit :

 So where do I place it? Bearing in mind that note-wise, both the start
 and stop are correctly placed?

 \stopTextSpan is unexpected because \startTextSpan is in another Voice !

 There was a warning in the [old] doc about this :
 (implicit temporary) Voices inside a  \\  construct are all
 separate from the Voices outside the construct.
 This warning doesn't seem to appear in the last versions of the doc...

 Use explicitly instantiated voices instead :


 firstPolyRepeat = {
  
    \new Voice = VoiceOne {
      \voiceOne
      r4 \startTextSpan \times 2/3 {gis'8 b e } e,4 \times 2/3 {gis8 b
      e} e,2 }
    \new Voice = VoiceTwo {
      \voiceTwo
      e,2.~e
    }
  
  \oneVoice
 }
 secondMono = \context Voice = VoiceOne {
  { e'8 [e'] gis, [e'] b [e] }
  { e,8 [e'] gis, [e'] b [e] }
  { a,8 [e'] c [e] b [e] }
  { a,8 [e'] g, [e'] f, [e'] }
 }
 thirdMono = \context Voice = VoiceOne {
  { e,8 [e'] gis, [e'] b [e] }
  { d8 [e] c [e] b [e] }
  { c8 [e] a, [e'] b [e] }
  { c8 [e] b [e] a, [e'] }
  { b8 [e] a, [e'] g, [e'] }
  { a,8 [e'] g, [e'] f, [e'] }
  \stopTextSpan
  \chordDottedHalf
 }


 Sincerely,
 Xavier

 --
 Xavier Scheuer x.sche...@gmail.com



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


Re: confusion in text spanning

2009-11-25 Thread Hugh Myers
It would also help if the suggested change worked. In stead I still get:

C:\Users\hsmyers\Desktop\Lily Projectslilypond.exe malaguena.ly
GNU LilyPond 2.13.7
Processing `malaguena.ly'
Parsing...
malaguena.ly:56:1: error: syntax error, unexpected EVENT_IDENTIFIER

 \stopTextSpan
malaguena.ly:89:0: error: errors found, ignoring music expression

{
error: failed files: malaguena.ly

--hsm

On Wed, Nov 25, 2009 at 8:25 PM, Hugh Myers hsmy...@gmail.com wrote:
 Since the piece in question, Malaguena, already has mixed monophony
 and polyphony, as well as tablature, adding voices to it doesn't seem
 like a very good idea. Yes, I'm aware that ,\\  is shorthand for
 voicing, but since it is shorthand, the visual complexity of the score
 is kept to a readable level. Having to go backwards seems problematic
 at best. Oh well, have to deal with what is, so I guess I will
 painfully convert back to explicit voicing (again--- I was quite happy
 when I was able to simplify it away the first time.)

 --hsm

 On Wed, Nov 25, 2009 at 5:02 PM, Xavier Scheuer x.sche...@gmail.com wrote:
 Le Wed, 25 Nov 2009 16:39:08 -0700,
 Hugh Myers hsmy...@gmail.com a écrit :

 So where do I place it? Bearing in mind that note-wise, both the start
 and stop are correctly placed?

 \stopTextSpan is unexpected because \startTextSpan is in another Voice !

 There was a warning in the [old] doc about this :
 (implicit temporary) Voices inside a  \\  construct are all
 separate from the Voices outside the construct.
 This warning doesn't seem to appear in the last versions of the doc...

 Use explicitly instantiated voices instead :


 firstPolyRepeat = {
  
    \new Voice = VoiceOne {
      \voiceOne
      r4 \startTextSpan \times 2/3 {gis'8 b e } e,4 \times 2/3 {gis8 b
      e} e,2 }
    \new Voice = VoiceTwo {
      \voiceTwo
      e,2.~e
    }
  
  \oneVoice
 }
 secondMono = \context Voice = VoiceOne {
  { e'8 [e'] gis, [e'] b [e] }
  { e,8 [e'] gis, [e'] b [e] }
  { a,8 [e'] c [e] b [e] }
  { a,8 [e'] g, [e'] f, [e'] }
 }
 thirdMono = \context Voice = VoiceOne {
  { e,8 [e'] gis, [e'] b [e] }
  { d8 [e] c [e] b [e] }
  { c8 [e] a, [e'] b [e] }
  { c8 [e] b [e] a, [e'] }
  { b8 [e] a, [e'] g, [e'] }
  { a,8 [e'] g, [e'] f, [e'] }
  \stopTextSpan
  \chordDottedHalf
 }


 Sincerely,
 Xavier

 --
 Xavier Scheuer x.sche...@gmail.com




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


instantiating voices

2009-11-25 Thread Hugh Myers
The 2.10 manual says that:

 \upper \\ \lower 

is equivalent to


  \new Voice = 1 { \voiceOne \upper }
  \new Voice = 2 { \voiceTwo \lower }


Which in simple situations seems true enough. However as soon as
tablature is added the above is broken; for example:

\version 2.13.7

firstPolyRepeatV = {
  
  { r4 \times 2/3 {gis 8 b e } e,4 \times 2/3 {gis8 b e} e,2 } \\ { e,2.~e }
% \new Voice = 1 { \voiceOne { r4 \times 2/3 {gis 8 b e } e,4
\times 2/3 {gis8 b e} e,2 } }
% \new Voice = 2 { \voiceTwo { e,2.~e } }
  
}
{

  
\time 3/4
\set Score.barNumberVisibility = #all-bar-numbers-visible
\bar 
\set Score.voltaSpannerDuration = #(ly:make-moment 3 4)
\new Staff \relative c'' {
  \firstPolyRepeatV
}
\new TabStaff \relative c' {
  \firstPolyRepeatV
}
  

}

The shorthand for  \\  works as intended while the explicit
voicing fails. Work arounds?

--hsm


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


Re: instantiating voices

2009-11-25 Thread Hugh Myers
On a related note (:;) this piece is a mixture of polyphony and
monophony. Is there an example of the two with tablature?

--hsm

On Wed, Nov 25, 2009 at 10:12 PM, Hugh Myers hsmy...@gmail.com wrote:
 Thanks Carl,

 I'll give it a try...

 --hsm

 On Wed, Nov 25, 2009 at 10:10 PM, Carl Sorensen c_soren...@byu.edu wrote:



 On 11/25/09 9:45 PM, Hugh Myers hsmy...@gmail.com wrote:

 The 2.10 manual says that:

  \upper \\ \lower 

 is equivalent to

 
   \new Voice = 1 { \voiceOne \upper }
   \new Voice = 2 { \voiceTwo \lower }


 Which in simple situations seems true enough. However as soon as
 tablature is added the above is broken; for example:

 \version 2.13.7

 firstPolyRepeatV = {
   
   { r4 \times 2/3 {gis 8 b e } e,4 \times 2/3 {gis8 b e} e,2 } \\ { e,2.~e }
 %     \new Voice = 1 { \voiceOne { r4 \times 2/3 {gis 8 b e } e,4
 \times 2/3 {gis8 b e} e,2 } }
 %     \new Voice = 2 { \voiceTwo { e,2.~e } }

 }
 {

   
     \time 3/4
     \set Score.barNumberVisibility = #all-bar-numbers-visible
     \bar 
     \set Score.voltaSpannerDuration = #(ly:make-moment 3 4)
     \new Staff \relative c'' {
       \firstPolyRepeatV
     }
     \new TabStaff \relative c' {
       \firstPolyRepeatV
     }


 }

 The shorthand for  \\  works as intended while the explicit
 voicing fails. Work arounds?

 TabStaff needs TabVoice, not Voice, for explicit instantiation.

 voiceOneMusic = { r4 \times 2/3 {gis 8 b e } e,4 \times 2/3 {gis8 b e} e,2 }
 voiceTwoMusic = { e,2.~e }

 
   ...

  \new Staff \relative c'' {
     
       \new Voice = 1 {
         \voiceOne \voiceOneMusic
       }
       \new Voice = 2 {
          \voiceTwo \voiceTwoMusic
       }
     
   }

  \new TabStaff \relative c'' {
     
       \new TabVoice = t1 {
         \voiceOne \voiceOneMusic
       }
       \new TabVoice = t2 {
          \voiceTwo \voiceTwoMusic
       }
     
   }



 HTH,

 Carl





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


Re: confusion in text spanning

2009-11-25 Thread Hugh Myers
Since I normally program in lisp, I don't have any problems with
nested delimiters. Are you suggesting that excess (at least to your
eyes) braces are the problem or are you suggesting that the \stop is
at the wrong level?

--hsm

2009/11/25 Frédéric Bron frederic.b...@m4x.org:
 It would also help if the suggested change worked. In stead I still get:

 Maybe it is because you use curly braces { } everywhere. Try to put
 the \stop... inside the { } block and not outside. But why using so
 many braces?
 Frédéric



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


Re: warning not understood

2009-11-23 Thread Hugh Myers
Thanks Mats--- sorry I hit reply and not reply all. The suggested code
works just as desired and it is always nice to rid myself of warning
messages!! Thanks again.

--hsm

On Mon, Nov 23, 2009 at 3:42 AM, Mats Bengtsson
mats.bengts...@ee.kth.se wrote:
 Please always keep the discussion on the mailing list, for the
 benefit of yourself since you get access to the collected
 expertise on the list and for the benefit of others who experience
 similar problems. Feel free to quote my answer below if you wish.

 You are right that the first of my two proposed workarounds does not work
 with acciaccatura. However, the second one works well and gets rid of the
 warning:
  { \acciaccatura d'8 \voiceOne c4 b a } \\ { a,2. } 

  /Mats

 Hugh Myers wrote:

 Mats,

 The workaround does not give correct results:

  { \acciaccatura d'8 c4 b a } \\ { a,2. }  engraves correctly
 although with warning
 \acciaccatura d'8  {  c4 b a } \\ { a,2. }  is incorrect in that
 the slur extends to the third note

 Or did I not grok the example correctly?

 --hsm

 On Sun, Nov 22, 2009 at 3:03 PM, Mats Bengtsson
 mats.bengts...@ee.kth.se wrote:


 You have hit one particular facet of the grace note handling
 bugs/limitations in LilyPond, see
 http://code.google.com/p/lilypond/issues/detail?id=630q=grace
 which contains a working workaround (see Comment 3 in the bug report).

  /Mats


 Hugh Myers wrote:


 When processing this:

 \version 2.13.7

 \relative c' {
  \time 3/4
   { \acciaccatura d'8 c4 b a } \\ { a,2. } 
 }

 I get this warning message:

 C:\Users\hsmyers\Desktop\Lily Projectslilypond.exe test4.ly
 GNU LilyPond 2.13.7
 Processing `test4.ly'
 Parsing...
 Interpreting music...
 Preprocessing graphical objects...
 test4.ly:5:25: warning: ignoring too many clashing note columns
   { \acciaccatura d'8
                        c4 b a } \\ { a,2. } 
 Solving 1 page-breaking chunks...[1: 1 pages]
 Drawing systems...
 Layout output to `test4.ps'...
 Converting to `./test4.pdf'...

 It engraves correctly, but clearly there is something going on here
 that I don't understand. Could someone enlighten me?

 --hsm


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



 --
 =
       Mats Bengtsson
       Signal Processing
       School of Electrical Engineering
       Royal Institute of Technology (KTH)
       SE-100 44  STOCKHOLM
       Sweden
       Phone: (+46) 8 790 8463
      Fax:   (+46) 8 790 7260
       Email: mats.bengts...@ee.kth.se
       WWW: http://www.s3.kth.se/~mabe
 =




 --
 =
        Mats Bengtsson
        Signal Processing
        School of Electrical Engineering
        Royal Institute of Technology (KTH)
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463
       Fax:   (+46) 8 790 7260
        Email: mats.bengts...@ee.kth.se
        WWW: http://www.s3.kth.se/~mabe
 =




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


variables

2009-11-23 Thread Hugh Myers
Given:

eMinor =  e   b  gis  e b e, 

I'd like to be able to do something like \eMinor' since I'm working in
relative mode. Is this possible. Same thing for chord length, i.e.
\eMinor2. etc.

--hsm


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


Re: variables

2009-11-23 Thread Hugh Myers
eMinor=\relative c { ... } does not allow either eMinor' or eMinor, etc.

--hsm

On Mon, Nov 23, 2009 at 6:02 PM, Frank Steinmetzger war...@gmx.de wrote:
 Am Montag, 23. November 2009 schrieb Hugh Myers:
 Given:

 eMinor =  e   b  gis  e b e, 

 I'd like to be able to do something like \eMinor' since I'm working in
 relative mode. Is this possible. Same thing for chord length, i.e.
 \eMinor2. etc.

 AFAIK:

 eMinor=\relativ'e c {  e b gis e b e,  }

 And then use \eMinor to paste it into your score.
 --
 Gruß | Greetings | Qapla'
 This sentence no verb.

 ___
 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


monophonic to polyphonic in with tab

2009-11-22 Thread Hugh Myers
The following doesn't work(the commented out line in the TabStaff):

\version 2.12.2
%
% test5.ly -- qd testbed for mixed notation score and tab.
%
eMinor =  e   b  gis  e b e, 
firstBar = { \eMinor \eMinor \eMinor }

{
\time 3/4

  \new Staff \relative c'' {
\firstBar
 { b c d } \\ {  gis, d e, 2. } 
  }
  \new TabStaff \relative c' {
\firstBar
% { b c d } \\ {  gis, d e, 2. } 
  }

}

What might? As the music in question transitions from monophonic to
polyphonic at will, I'd like to develop a general solution, but am
clueless at the moment.

--hsm
p.s. obviously I'm new to Lilypond so comments on anything else I'm
missing are certainly in order and welcome...
p.s.s. how do I get the first bar of the first measure numbered 1?


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


warning not understood

2009-11-22 Thread Hugh Myers
When processing this:

\version 2.13.7

\relative c' {
  \time 3/4
   { \acciaccatura d'8 c4 b a } \\ { a,2. } 
}

I get this warning message:

C:\Users\hsmyers\Desktop\Lily Projectslilypond.exe test4.ly
GNU LilyPond 2.13.7
Processing `test4.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
test4.ly:5:25: warning: ignoring too many clashing note columns
   { \acciaccatura d'8
 c4 b a } \\ { a,2. } 
Solving 1 page-breaking chunks...[1: 1 pages]
Drawing systems...
Layout output to `test4.ps'...
Converting to `./test4.pdf'...

It engraves correctly, but clearly there is something going on here
that I don't understand. Could someone enlighten me?

--hsm


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


slurs and polyphony

2009-11-22 Thread Hugh Myers
Is it possible to slur the second voice in:

   { r4 \times 2/3 { gis'8 b e } e,4 } \\ { e,2. } 
   { \times 2/3 { gis'8 b e } e,2 } \\ { e,2. } 

I feel that it must be but have not stumbled apon the solution as yet.

--hsm


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


bar line

2009-11-22 Thread Hugh Myers
I'm looking for a symmetrical version of \bar |: which roughly
speaking should produce colon, thin line, thick line, thin line,
colon. Is there a way?

--hsm


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


Re: bar line

2009-11-22 Thread Hugh Myers
Brett,

Much thanks, missed that combination. Now how do I get that to spit
out at the start of a second \alternative?

code:

\repeat volta 2 {
 \firstPoly
}
\alternative {
  { \firstPolyRepeat }
  { \secondMono }
}

which doesn't seem to produce the correct bars, one at end of first
alternative and one at end of second? The first bar is just ':|' and
it is where I would expect the one I asked about. There is no bar at
end of second alternative, where I would expect a ':|' as being a sign
I'm correctly handling the repeat.

--hsm
p.s. also notice that it ignores any effort to shorten the volta bar?

On Sun, Nov 22, 2009 at 6:16 PM, Brett Duncan bdd1...@bigpond.net.au wrote:
 Hugh Myers wrote:

 I'm looking for a symmetrical version of \bar |: which roughly
 speaking should produce colon, thin line, thick line, thin line,
 colon. Is there a way?

 --hsm

 Take a look at
 http://lilypond.org/doc/v2.13/Documentation/notation/Bars#Bar-lines

 Brett



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


Re: bar line

2009-11-22 Thread Hugh Myers
Brett,

Thanks for the hint. The URL is where I got the notion for what I
wrote in the first place. In the source, firstPoly repeats, once with
firstPolyRepeat as an ending and once with secondMono as an ending.
That is what I want, but as you say not what I asked for. None of the
examples I've seen thus far(hardly exhaustive) match what I need, so
what I wrote was a guess based on what I saw. More hints welcome at
this point ;)

--hsm

On Sun, Nov 22, 2009 at 7:15 PM, Brett Duncan bdd1...@bigpond.net.au wrote:
 Hugh Myers wrote:

 Brett,

 Much thanks, missed that combination. Now how do I get that to spit
 out at the start of a second \alternative?

 code:

    \repeat volta 2 {
     \firstPoly
    }
    \alternative {
      { \firstPolyRepeat }
      { \secondMono }
    }

 which doesn't seem to produce the correct bars, one at end of first
 alternative and one at end of second? The first bar is just ':|' and
 it is where I would expect the one I asked about. There is no bar at
 end of second alternative, where I would expect a ':|' as being a sign
 I'm correctly handling the repeat.

 I think your understanding of the code you've shown above may be somewhat
 amiss. The music in \secondMono is not repeated, so of course it will not
 have any repeat indications around it.

 Have a look at

 http://lilypond.org/doc/v2.13/Documentation/notation/Long-repeats#Normal-repeats

 Brett



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


Re: bar line

2009-11-22 Thread Hugh Myers
What I have/want is a phrase repeated twice with two alternate
endings, then continuing on with the main line. Written out entire it
would be phrase, ending A, phrase, ending B, main line. The part that
repeats is the phrase, not the alternates.

--hsm

On Sun, Nov 22, 2009 at 8:06 PM, Brett Duncan bdd1...@bigpond.net.au wrote:
 Hugh Myers wrote:

 Brett,

 Thanks for the hint. The URL is where I got the notion for what I
 wrote in the first place. In the source, firstPoly repeats, once with
 firstPolyRepeat as an ending and once with secondMono as an ending.
 That is what I want, but as you say not what I asked for. None of the
 examples I've seen thus far(hardly exhaustive) match what I need, so
 what I wrote was a guess based on what I saw. More hints welcome at
 this point ;)


 Well, it's hard to know exactly what to suggest since I'm not sure what you
 are after. The snippets and the part about Manual reports on that particular
 webpage don't help?

 Can you can describe in more detail what you want to achieve?

 Something like this?






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


Re: bar line

2009-11-22 Thread Hugh Myers
Here is the 'close--- but not quite ready for cigar time' code that
I've cobbled together:

\version 2.13.7
%
% malaguena.ly -- qd testbed for mixed notation score and tab.
%
\header {
  title = Malaguena
  subtitle = none
  composer = Music by Unknown
}

eMinor =  e   b  gis  e b e, 
firstMono = { \eMinor \eMinor \eMinor }
firstPoly = {
   { b c d } \\ {  gis, d e, 2. } 
   { d'4 c b } \\ { e,,2. } 
   { c''4 a b} \\ { a,2. } 
   { \acciaccatura d'8 c4 b a } \\ { a,2. } 
   { b'4 a c } \\ { g,2. } 
   { a'4 g f } \\ { f,2. } 
}

firstPolyRepeat = {
   { r4 \times 2/3 {gis'8 b e } e,4 \times 2/3 {gis8 b e} e,2 }\\ {e,2.~e} 
}
secondMono = {
  { e'8 [e'] gis, [e'] b [e] }
  { e,8 [e'] gis, [e'] b [e] }
  { a,8 [e'] c [e] b [e] }
  { a,8 [e'] g, [e'] f, [e'] }
}
thirdMono = {
  { e,8 [e'] gis, [e'] b [e] }
}

{
\time 3/4
\set Score.barNumberVisibility = #all-bar-numbers-visible
\bar 

  \new Staff \relative c'' {
\firstMono
\repeat volta 2 {
 \firstPoly
}
\alternative {
  { \firstPolyRepeat }
  { \secondMono }
}
\thirdMono
  }
  \new TabStaff \relative c' {
\firstMono
\repeat volta 2 {
 \firstPoly
}
\alternative {
  { \firstPolyRepeat }
  { \secondMono }
}
\thirdMono
  }

}

If you run this, you will see that the bar between the alternates is
single sided where it should be double sided. Likewise there is no bar
concluding the second alternative. Also a nit-pick, but the volta bars
are two long, should be one bar, not 'N' bars.

--hsm

On Sun, Nov 22, 2009 at 8:24 PM, Hugh Myers hsmy...@gmail.com wrote:
 What I have/want is a phrase repeated twice with two alternate
 endings, then continuing on with the main line. Written out entire it
 would be phrase, ending A, phrase, ending B, main line. The part that
 repeats is the phrase, not the alternates.

 --hsm

 On Sun, Nov 22, 2009 at 8:06 PM, Brett Duncan bdd1...@bigpond.net.au wrote:
 Hugh Myers wrote:

 Brett,

 Thanks for the hint. The URL is where I got the notion for what I
 wrote in the first place. In the source, firstPoly repeats, once with
 firstPolyRepeat as an ending and once with secondMono as an ending.
 That is what I want, but as you say not what I asked for. None of the
 examples I've seen thus far(hardly exhaustive) match what I need, so
 what I wrote was a guess based on what I saw. More hints welcome at
 this point ;)


 Well, it's hard to know exactly what to suggest since I'm not sure what you
 are after. The snippets and the part about Manual reports on that particular
 webpage don't help?

 Can you can describe in more detail what you want to achieve?

 Something like this?







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


Re: bar line

2009-11-22 Thread Hugh Myers
Let's say that it is--- what would the different structure look like?

--hsm

On Sun, Nov 22, 2009 at 9:12 PM, Brett Duncan bdd1...@bigpond.net.au wrote:
 Hugh Myers wrote:

 Here is the 'close--- but not quite ready for cigar time' code that
 I've cobbled together:

 \version 2.13.7
 %
 % malaguena.ly -- qd testbed for mixed notation score and tab.
 %
 \header {
  title = Malaguena
  subtitle = none
  composer = Music by Unknown
 }

 eMinor =  e   b  gis  e b e, 
 firstMono = { \eMinor \eMinor \eMinor }
 firstPoly = {
   { b c d } \\ {  gis, d e, 2. } 
   { d'4 c b } \\ { e,,2. } 
   { c''4 a b} \\ { a,2. } 
   { \acciaccatura d'8 c4 b a } \\ { a,2. } 
   { b'4 a c } \\ { g,2. } 
   { a'4 g f } \\ { f,2. } 
 }

 firstPolyRepeat = {
   { r4 \times 2/3 {gis'8 b e } e,4 \times 2/3 {gis8 b e} e,2 }\\
 {e,2.~e} 
 }
 secondMono = {
  { e'8 [e'] gis, [e'] b [e] }
  { e,8 [e'] gis, [e'] b [e] }
  { a,8 [e'] c [e] b [e] }
  { a,8 [e'] g, [e'] f, [e'] }
 }
 thirdMono = {
  { e,8 [e'] gis, [e'] b [e] }
 }

 {
 \time 3/4
 \set Score.barNumberVisibility = #all-bar-numbers-visible
 \bar 
 
  \new Staff \relative c'' {
    \firstMono
    \repeat volta 2 {
     \firstPoly
    }
    \alternative {
      { \firstPolyRepeat }
      { \secondMono }
    }
    \thirdMono
  }
  \new TabStaff \relative c' {
    \firstMono
    \repeat volta 2 {
     \firstPoly
    }
    \alternative {
      { \firstPolyRepeat }
      { \secondMono }
    }
    \thirdMono
  }
  }

 If you run this, you will see that the bar between the alternates is
 single sided where it should be double sided. Likewise there is no bar
 concluding the second alternative. Also a nit-pick, but the volta bars
 are two long, should be one bar, not 'N' bars.



 Is the section from bar 10 to bar 14 repeated or not? If not, then the
 single sided repeat bar is correct. If bars 10-14 are repeated, then you'll
 need a slightly different structure for the repeats.

 Brett




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


Re: bar line

2009-11-22 Thread Hugh Myers
Yes! That is exactly the ticket!! Much thanks Brett--- I fear it was
much harder understanding me than it was for you to solve the problem!
Thanks for both.

--hsm
p.s. I'll take apart the new code until I understand it...

On Sun, Nov 22, 2009 at 10:23 PM, Brett Duncan bdd1...@bigpond.net.au wrote:
 Hugh Myers wrote:

 Let's say that it is--- what would the different structure look like?


 Try this:

 \version 2.13.7
 %
 % malaguena.ly -- qd testbed for mixed notation score and tab.
 %
 \header {
  title = Malaguena
  subtitle = none
  composer = Music by Unknown
 }

 eMinor =  e   b  gis  e b e, 
 firstMono = { \eMinor \eMinor \eMinor }
 firstPoly = {
   { b c d } \\ {  gis, d e, 2. } 
   { d'4 c b } \\ { e,,2. } 
   { c''4 a b} \\ { a,2. } 
   { \acciaccatura d'8 c4 b a } \\ { a,2. } 
   { b'4 a c } \\ { g,2. } 
   { a'4 g f } \\ { f,2. } 
 }

 firstPolyRepeat = {
   { r4 \times 2/3 {gis'8 b e } e,4 \times 2/3 {gis8 b e} e,2 }\\ {e,2.~e}

 }
 secondMono = {
  { e'8 [e'] gis, [e'] b [e] }
  { e,8 [e'] gis, [e'] b [e] }
  { a,8 [e'] c [e] b [e] }
  { a,8 [e'] g, [e'] f, [e'] }
 }
 thirdMono = {
  { e,8 [e'] gis, [e'] b [e] }
 }

 {
 \time 3/4
 \set Score.barNumberVisibility = #all-bar-numbers-visible
 \set Score.voltaSpannerDuration = #(ly:make-moment 3 4)
 
  \new Staff \relative c'' {
   \firstMono
   \repeat volta 2 {
    \firstPoly
   }
   \alternative {
     { \firstPolyRepeat }
     { \repeat volta 2 { \bar :|.|:
        \secondMono }}
   }
   \thirdMono
  }
  \new TabStaff \relative c' {
   \firstMono
   \repeat volta 2 {
    \firstPoly
   }
   \alternative {
     { \firstPolyRepeat }
     { \repeat volta 2 { \bar :|.|:
        \secondMono }}
   }
   \thirdMono
  }

 }

 More like what you want?

 Brett



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


  1   2   >