RE: Is anyone using "tabr" ? (tablature oriented package)

2019-05-02 Thread Andrew Bernard
Hi Gauco,

 

Welcome to lilypond. What is your use case? Are you simply wanting to produce 
guitar tab, or are you wanting to do programmatic/algorithmic composition which 
outputs to lilypond? If the former, lilypond is fine for TAB as is, and many 
people use it. As for the algorithmic programming in R using lilypond as a 
backend, I have a feeling you will need to contact the tabr user community, if 
they have a mailing list or forum.

 

Andrew

 

 

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


Re:

2019-05-02 Thread Andrew Bernard
ulimit -a please. Lilypond version? What version of 'latest OS' exactly
(that varies depending on how old your Mac is nowadays)?

Andrew


On Fri, 3 May 2019 at 09:48, Craig Dabelstein 
wrote:

>
>
> Has anyone encountered this error in Terminal before? I'm on a Mac (latest
> OS) and invoking Lilypond on about 30 parts. This error came up on about
> the 25th part.
>
> warning: g_spawn_sync failed (0): gs: Too many open files
>
>
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


[no subject]

2019-05-02 Thread Craig Dabelstein
Hi everyone,

Has anyone encountered this error in Terminal before? I'm on a Mac (latest
OS) and invoking Lilypond on about 30 parts. This error came up on about
the 25th part.

warning: g_spawn_sync failed (0): gs: Too many open files




All the best,


CRaig





-- 
[image: photograph]
*Craig Dabelstein*
Owner
email: cr...@maximesmusic.com.au
Maxime's Music, QLD, Australia
[image: facebook icon]  [image:
twitter icon]  [image: youtube icon]
 [image: instagram icon]
  maximesmusic.com.au
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Is anyone using "tabr" ? (tablature oriented package)

2019-05-02 Thread Carl Sorensen


From: Gauco Wander Beall 
Date: Thursday, May 2, 2019 at 11:20 AM
To: 
Subject: Is anyone using "tabr" ? (tablature oriented package)

Hi there:

This is my first post,

and i like to ask about "tabr":

Is anyone using it ?

I have never used tabr, and cannot imagine a reason why I would want to do it.

Have you read the CRAN documentation for the package tabr?  
https://cran.r-project.org/web/packages/tabr/tabr.pdf

It appears to show how you build up objects before you pass them to lilypond.  
You need to create some phrases, then combine them into a score, and call 
tab(score….).

Personally, I’d rather just write the lilypond code instead of writing R code 
that will do a conversion to lilypond with whatever restrictions are built into 
the R data structures found in the tabr package.

I’d suggest you ask for help on R forums; you are the first person I’ve seen on 
the LilyPond forums asking for help with tabr.

Sorry I can’t be of more help.

Carl




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


cues overlapping compressed multi measure rest

2019-05-02 Thread Alex Jones
I am trying to replicate an odd structure, which places cue notes over top of 
the conclusion of a compressed multi measure rest.  

Normally when I make cues I use the << {} \\ {} >> structure such that I might 
have code like the following, but it breaks up the multi measure rest, any 
suggestions?

\version "2.18.2"

\layout {
  \context {
\Score
skipBars = ##t
autoBeaming = ##f
  }
}
PartPOneVoiceOne =  \relative g'' {
  \clef "treble" \key e \major \numericTimeSignature\time 4/4 | % 1
  
  cis4 -. r b-. r
  R1 \fermataMarkup
  << {\set fontSize=#-2 s1*2 
  s2 s4 4 ( 
  2) s2 s1 \unset fontSize } \\
 { \override MultiMeasureRest.staff-position = #0
R1*3 | % 44
r4 c2 \pp ^( \stemUp a4 ~ | % 45
a4 f2 d4 ) 
  } >>
}


% The score definition
\score {
  <<
\new Staff <<
  \context Staff <<
\context Voice = "PartPOneVoiceOne" { \PartPOneVoiceOne }
  >>
>>

  >>
  \layout {}
  \midi {}
}

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


Is anyone using "tabr" ? (tablature oriented package)

2019-05-02 Thread Gauco Wander Beall
Hi there:
This is my first post,
and i like to ask about "tabr":
Is anyone using it ?
It's a package for guitar tablature,
that  wrapps around LilyPond.
Although it generates (.ly),
it not generated this output data.
I used the following code:

# My First Score
library(tabr)
p("r a2 c f d a f", "4 8*6", "x 5 5 4 4 3 4") %>% track %>% score %>%
  tab("phrase.pdf", key = "dm", time = "4/4", tempo = "4 = 120")
outfile <- file.path(tempdir("C:/Users/gwb70/Documents/Tabr Sessions"), 
"out.ly")
lilypond(x, outfile)
Can anyone re-write this code to yield (.ly) ?
* This package requires R and Rstudio installation.
Thank you in advance:  GWB70.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: get space left in markup function

2019-05-02 Thread Andrew Bernard
Hello Robert,

It seems to me wishful thinking to try to get inside the machinery of the
markup commands to do your own custom layout. What you are after is what I
refer to as newspaper columns, or snaking columns they are sometimes
called. This properly belongs to the domain of powerful text processing
programs. I suggest instead to trying to second guess the lilypond markup
engine that you perhaps should invest the time learning TeX, of some
description. If as you mention you are interested in fine book design done
professionally. then that would be a good way to go. There are those that
maintain that TeX produces the finest typesetting in the world, a view I
respect. There are lots of people on the list experienced with integration
of lilypond and TeX (all the various variants).

As David says, the markup can't know the remaining space as it is not
available at that time in the processing chain sequence.


Andrew



On Thu, 2 May 2019 at 19:33, Robert Kubosz  wrote:

> Hmm, maybe I will introduce you to the problem I am now tackling and why
> I need to know the available free space in markup command.
>
> I'm modifying the book template shared by Nicolas Sceaux. Now I'm
> working on table of contents. The table of contents looks beautiful on
> one condition: sections don't have a lot of pieces, so the whole section
> fits on one page in table of contents.
>
> Here is an example:
>
> https://drive.google.com/file/d/1RDLaqvYw81cdE9zYB_SvpaNxPhaK8Gr0/view?usp=sharing
>
> The problem is shown on page 5. The section has so many pieces, that
> they don't fit on the page (there's a gap between pieces 19-43).
>
> Of course, the problem with not fitting them on one page could be fixed
> with proper page breaking. The result could be as such:
>
> 
>
> blah blah blah
>
> foo
>
> bar
>
> TOC
>
>   SECTION 1
>
> piece apiece f
>
> piece bpiece g
>
> piece cpiece h
>
> (page break)
>
> piece dpiece i
>
> piece epiece j
>
>  SECTION 2
>
>
> (page break)
>
>
> Result like this above will not satisfy me, because it's just ugly and
> unprofessional. And it could be frustrating for users of books. I want
> it to look like this:
>
>
> 
>
> blah blah blah
>
> foo
>
> bar
>
> TOC
>
>   SECTION 1
>
> piece apiece d
>
> piece bpiece e
>
> piece cpiece f
>
> (page break)
>
> piece gpiece i
>
> piece hpiece j
>
>  SECTION 2
>
>
> (page break)
>
>
> And to generate multi page toc section like this I need to know the
> space left on page, so markup function could calculate how much toc
> pieces could fit in the free left space on page and which pieces pass to
> the next page.
>
>
> On 01.05.2019 12:39, David Kastrup wrote:
> >
> > At the time markups are evaluated, the page breaking decisions have not
> > yet been made, and of course those decisions depend on what your markup
> > command will produce.  So this information is still to be established at
> > this time.
> >
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: get space left in markup function

2019-05-02 Thread Robert Kubosz
Hmm, maybe I will introduce you to the problem I am now tackling and why
I need to know the available free space in markup command.

I'm modifying the book template shared by Nicolas Sceaux. Now I'm
working on table of contents. The table of contents looks beautiful on
one condition: sections don't have a lot of pieces, so the whole section
fits on one page in table of contents.

Here is an example:
https://drive.google.com/file/d/1RDLaqvYw81cdE9zYB_SvpaNxPhaK8Gr0/view?usp=sharing

The problem is shown on page 5. The section has so many pieces, that
they don't fit on the page (there's a gap between pieces 19-43).

Of course, the problem with not fitting them on one page could be fixed
with proper page breaking. The result could be as such:



blah blah blah

foo

bar

    TOC

  SECTION 1

piece a    piece f

piece b    piece g

piece c    piece h

(page break)

piece d    piece i

piece e    piece j

 SECTION 2


(page break)


Result like this above will not satisfy me, because it's just ugly and
unprofessional. And it could be frustrating for users of books. I want
it to look like this:




blah blah blah

foo

bar

    TOC

  SECTION 1

piece a    piece d

piece b    piece e

piece c    piece f

(page break)

piece g    piece i

piece h    piece j

 SECTION 2


(page break)


And to generate multi page toc section like this I need to know the
space left on page, so markup function could calculate how much toc
pieces could fit in the free left space on page and which pieces pass to
the next page.


On 01.05.2019 12:39, David Kastrup wrote:
>
> At the time markups are evaluated, the page breaking decisions have not
> yet been made, and of course those decisions depend on what your markup
> command will produce.  So this information is still to be established at
> this time.
>


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