Re: how to differentiate F1:maj and F1:maj7

2017-01-11 Thread Robert Schmaus
That's because there is none. 



> On 12 Jan 2017, at 04:55, MING TSANG  wrote:
> 
> 
> 
> 
> dear lilyponders,
> 
> I have the following snippet but I cannot see the difference between F1:maj 
> and F1:maj7
> Help is appreciated.
> 
> God bless nImmanuel,
> Ming
> 
> 
> 
> \version "2.19.54"
> \language "english"
> chordNames = \chordmode {
>   f2 f2:maj f2:6 f2 f2 f2:maj7 f2:6 bf2:6  %01-
> }
> \score {
> \new ChordNames \chordNames
> }
> 
> 
> 
> 
> 
> ___
> 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: how to differentiate F1:maj and F1:maj7

2017-01-11 Thread palartu
It is the same by default. 

http://lilypond.org/doc/v2.18/Documentation/notation/common-chord-modifiers

Both modifiers maj and maj7 means major 7th chord. :) 



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/how-to-differentiate-F1-maj-and-F1-maj7-tp199115p199118.html
Sent from the User mailing list archive at Nabble.com.

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


Re: chords name

2017-01-11 Thread Robert Schmaus
Ming,

That would be

g : m7.5- / f

or alternatively

g : min7.5- / f

Cf here:
 http://lilypond.org/doc/v2.18/Documentation/notation/common-chord-modifiers

Best, 
Robert

> On 12 Jan 2017, at 04:26, MING TSANG  wrote:
> 
> dear lilyponders,
> 
> I transcribe a score, I encounter  Gm7(b5)/F and don't know how to code it.
> Any help is appreciated.
> 
> Immanuel,
> Ming
> ___
> 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


Detect a tie while overriding a slur's stencil

2017-01-11 Thread Urs Liska
Hi all,

when overriding a slur's stencil with a custom path, is it possible to detect if

- the starting note has a tie attached
and/or
- the ending note is the end of a tie
?

Thanks
Urs

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


how to differentiate F1:maj and F1:maj7

2017-01-11 Thread MING TSANG



dear lilyponders,
I have the following snippet but I cannot see the difference between F1:maj and 
F1:maj7Help is appreciated.

God bless nImmanuel,Ming


\version "2.19.54"\language "english"chordNames = \chordmode {  f2 f2:maj     
f2:6 f2     f2 f2:maj7     f2:6 bf2:6  %01-}\score {\new ChordNames \chordNames}




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


chords name

2017-01-11 Thread MING TSANG
dear lilyponders,
I transcribe a score, I encounter  Gm7(b5)/F and don't know how to code it.Any 
help is appreciated.
Immanuel,Ming___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Cannot use \layout in a variable

2017-01-11 Thread David Wright
| I've added the missing text with a sidebar:

On Wed 11 Jan 2017 at 05:03:21 (-0700), ptoye wrote:
> Thanks all for putting me right. I have to say that the documentation is very
> confusing as to the syntax. From the Learning manual:

| A variable is assigned as follows:
| namedMusic = { ... }

So "..." is typically a sequence of notes or a sequence of music expressions.
The {} indicate a seqeunce rather than simultaneous expressions << >>.

> which implies that the brackets are needed, but it's followed by:

| violin = \new Staff {
|   \relative {
| a'4 b c b
|   }
| }

Here { a'4 b c b } is a music expression, \relative is a command that
controls how LP interprets the notes' octavation, and \new is a
command that wraps one expression in the Staff context.

You could write

violin = \new Staff
\relative {
  a'4 b c b
}

just as you could write

cello = \new Staff d'

because d' is one expression.

> and later by:

| width = 4.5\cm

Here you should read up the Notation Reference §3.1.5.
width is not a music expression, so you couldn't write, say,

{ \namedMusic \width }

So \width needs to be interpreted in something like \paper { \width
and other things }. What you set a variable to (ie the right hand side)
determines where you can later use it.

> which don't have the brackets. 
> 
> How does the parser know when the variable definition has finished if it can
> be on multiple lines?

If there are no braces (or equivalent), then it'll be a single item,
but that item could be a command with its own argument following it.

compiler = \markup Rutter

I hope some of that makes sense.

Cheers,
David.

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


Problem with Null Voice changing length of stems on beamed notes

2017-01-11 Thread palartu
I'm having problems with NullVoice. Its very practical for my needs and it
serves its purpose but it also make me angry very often. 

When using *NullVoice* in Staff context, it changes *length of stems on
beamed notes*. Try to compile this example and see an output. When you
*comment* line with Null Voice, *length of stems changes*. It depends on the
*position of the notes in staff*. Sometimes, stems are shorter, and
sometimes, longer.


\version "2.18.2"

aligner = { c'8 b16 c'16~ c'4 fis'2 }
alt = { a8 g16 a16~ a4 a2 }
sopran = { c'8 b16 c'16~ c'4 fis'2 }

\score {
  \new Staff <<
\partcombine \sopran \alt 
\new NullVoice = "null" \aligner
  >>
}
*

Moreover, if you try to replace *part combine* line with 

***
\new Voice { \sopran }
**

the behaviour is the same. It doesn't matter if I'm using two voices or one
voice or partcombine, behaviour is not consistent. I've tried to fix that
manually in Inkscape, but I've had enough. It's too much work to do and I
want to be more productive (read: lazy).

Please, tell me that I can have consistent behaviour for this problem within
Lilypond. 

Thank you for your time and answer.




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Problem-with-Null-Voice-changing-length-of-stems-on-beamed-notes-tp199112.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Frescobaldi segfault with PyQt4-

2017-01-11 Thread Urs Liska


Am 11.01.2017 um 22:36 schrieb N. Andrew Walsh:
> Hi List,
>
> I'm wondering if anybody is having recent issues with Frescobaldi. I
> run a rolling-release distro (gentoo), so I install/update packages on
> an ongoing basis. In this case, the only package in frescobaldi's
> dependency tree that's been updated since mid-December is PyQt4, which
> just saw the final release of 4.12 this last week.
>
> Now, Frescobaldi segfaults on startup, with no error message.
>
> Can anybody else on the list report similar or differing experiences?
> Anybody else having issues?

I had basically the same problem with Frescobaldi 3 and PyQt5.
Probably it is due to an incompatibility with the
python[3]-poppler-pyqt[4|5]
See https://github.com/wbsoft/frescobaldi/issues/838

HTH
Urs

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

-- 
u...@openlilylib.org
https://openlilylib.org
http://lilypondblog.org

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


Frescobaldi segfault with PyQt4-

2017-01-11 Thread N. Andrew Walsh
Hi List,

I'm wondering if anybody is having recent issues with Frescobaldi. I run a
rolling-release distro (gentoo), so I install/update packages on an ongoing
basis. In this case, the only package in frescobaldi's dependency tree
that's been updated since mid-December is PyQt4, which just saw the final
release of 4.12 this last week.

Now, Frescobaldi segfaults on startup, with no error message.

Can anybody else on the list report similar or differing experiences?
Anybody else having issues?

Cheers,

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


Re: Which Linux distro for Lilypond

2017-01-11 Thread Paul

On 01/07/2017 03:42 PM, David Kastrup wrote:


They are also in complete denial about the importance of interpreter
speed for an _extension_ language: for them, compiler performance is
everything.


Unfortunately for LilyPond...  Yet it's worth noting that the plan seems 
to be to get back to Guile 1.8 interpreter speeds via compiling the 
interpreter to native code... in some future release.[1]


Also it's worth noting that the Guile 2.1.x interpreter appears to be 
significantly faster than the Guile 2.0 interpreter.  A simple test[1] ran:


   1.1 seconds in Guile 1.8
 16.4 seconds in Guile 2.0
   2.4 seconds in Guile 2.1.1

I'd think the slower interpreter would be a prime suspect for causing 
the LilyPond slowdown with Guile 2.0.  Maybe skipping Guile 2.0 for 
Guile 2.2 would make sense -- at least it's worth keeping this on the 
radar for those doing benchmarking and looking into performance 
implications.


(I assume significant performance wins would come from making use of 
Guile's compiler.  David, I guess this is your comment about organizing 
"the compilation and storage of byte code for an application.")


-Paul



[1] from 
http://wingolog.org/archives/2016/01/11/the-half-strap-self-hosting-and-guile


Back in 2009 when we switched to the eval-in-Scheme, we knew that it 
would result in a slower interpreter. This is because instead of the 
interpreter being compiled to native code, it was compiled to bytecode. 
Also, Guile's Scheme compiler wasn't as good then, so we knew that we 
were leaving optimizations on the floor. Still, the switch to an 
evaluator in Scheme enabled integration of the compiler, and we thought 
that the interpreter speed would improve with time. I just took a look 
and with this silly loop:


(let lp ((n 0)) (if (< n #e1e7) (lp (1+ n

Guile 1.8's interpreter written in C manages to run this in 1.1 seconds. 
Guile 2.0's interpreter written in Scheme and compiled to the old 
virtual machine does it in 16.4 seconds. Guile 2.1.1's interpreter, with 
the closure-chaining optimization, a couple of peephole optimizations in 
the interpreter, and compiled using the better compiler and VM from 
Guile 2.2, manages to finish in 2.4 seconds. So we are definitely 
getting better, and by the time we compile eval.scm to native code I 
have no doubt that we will be as good as the old C implementation. (Of 
course, when compiled to Guile 2.2's VM, the loop finishes in 55 
/milli/seconds, but comparing a compiler and an interpreter is no fair.)


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


Re: OOoLilyPond

2017-01-11 Thread Klaus Blum
Hi Henning, 

thanks for your observations. 
I have no idea what exactly happens when LO installs an extension. I'm glad
you could fix it manually so far.


Henning Hraban Ramm-3 wrote
> - SVG mode finds no output, EPS mode places text of EPS file into frame

I completely forgot to talk about EPS, I only did in an earlier post. EPS
didn't work for me on LO, only on OO. 
SVG mode should work as long as you don't use lilypond-book-preamble which
is "hidden" in most of the templates. 

Cheers, 
Klaus




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/OOoLilyPond-tp185560p199104.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Find out denominator of current time signature

2017-01-11 Thread Malte Meyn


Am 11.01.2017 um 14:00 schrieb Thomas Weber:
> Dear all,
> 
> I wonder how I can create a duration that is so to say exactly one time
> signature denominator long (e.g. an eigth in 6/8, a quarter in 4/4
> etc.).  I thought something like this would work:

You can get the duration from the context property timeSignatureFraction
or baseMoment:

%
\version "2.19.53"

{
  \time 12/8
  \applyContext
  #(lambda (context)
 (display (ly:context-property
context
'baseMoment)))
%'timeSignatureFraction)))
}
%

I don’t know how you can make a music function that uses this and
returns music. \applyContext #(lambda (context) (make-music …)) has no
visible output. But maybe it’s a start.

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


Re: OOoLilyPond

2017-01-11 Thread Henning Hraban Ramm
Am 2017-01-11 um 15:54 schrieb SoundsFromSound :

> Klaus Blum wrote
>> Does it work now?
>> OOoLilyPond-0.oxt
>>   

Hi Klaus,
I tried it with LibreOffice 5.1.6.2 on OSX. All messages translated from German.

- Installation works.
- If I try to check for extension updates, I get a modal dialog 
"http://extensions.openoffice.org/extension/ooolilypond.xml doesn’t exist.". No 
wonder, but I can’t close it (probably a bug in LO).
- Killed LO, checked extension manager, extension is still there.
- Toolbar has a "OLy" button now. Click.
- Macro editor opens with an error message "Invalid value or data type. Index 
out of range." in line 123, function LilyPondVersion():
sLilyPondVersion = Split(sWords(UBound(sWords)), ".")
- Same if I open OOoLilyPond via Extras/Add-Ons menu.
- I didn’t find the settings dialog.

- Updated to LibreOffice 5.2.4.2, first check without language pack:
- Icon is gone, check extension manager: OOoLilyPond is gone.
- Update fails with the same error message for a different OO extension.
- Killed app, restartet. Re-installed OOoLilyPond.
- Same error, this time in English: "Inadmissible value or data type. Index out 
of defined range."
- I comment the conflicting lines.
- Calling the macro again tells me there was a templates folder created. (Yes 
it is.)
- Error message: "Cannot open the template file: 
~/OOoLilyPond-Templates/Default.ly" (Folder is empty)
- Error message: "No templates are found at ... LilyPond will not work without 
a template." OOoLy Editor opens.
- Extracted the templates from your OXT. Configured the path to my lilypond 
binary.
- Load Default.ly
- Button "Ly Output" shows version statement, seems to be ok.
- Button "LilyPond" … waterballing … YES it works! (PNG mode)
- SVG mode finds no output, EPS mode places text of EPS file into frame

HTH

Greetlings, Hraban
---
fiëé visuëlle
Henning Hraban Ramm
http://www.fiee.net




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


Re: OOoLilyPond

2017-01-11 Thread Noeck
Dear Klaus,

it works here, too. With LibreOffice: 5.1.4.2 on Ubuntu.
Also the svg output works for a preamble-free template.

Thanks a lot for your changes!

Best,
Joram


> Does it work now?
> 
> Cheers, 
> Klaus
> 
> Macros.gif   
> OOoLilyPond-0.oxt
>   

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


Re: Cannot use \layout in a variable

2017-01-11 Thread Peter Toye
David,

Sorry, I used Nabble to enter my comment, and the raw text seems to have been 
expunged. Go to 
http://lilypond.1069038.n5.nabble.com/Cannot-use-layout-in-a-variable-td199054.html
  and all will be revealed!

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

-
Wednesday, January 11, 2017, 3:46:16 PM, you wrote:

> On Wed 11 Jan 2017 at 05:03:21 (-0700), ptoye wrote:
>> Thanks all for putting me right. I have to say that the documentation is very
>> confusing as to the syntax. From the Learning manual:

>> which implies that the brackets are needed, but it's followed by:

>> and later by:

>> which don't have the brackets. 

>> How does the parser know when the variable definition has finished if it can
>> be on multiple lines?

> Without the quotations, it's tricky to guess what you've seen.
> Some hints:

> { c' } is a valid input file: a music expression.

> << c' >>   too because << >> indicates that the expression(s) contained
> are simultaneous. In this example, there's just one.

> \absolute c'   is a valid input file: the command is a music expression,
> and the command's argument is a music expression composed of a single item.
> If you write more than one item, you need { } or << >> to show whether
> the expressions are sequential or simultaneous.

> The same applies to defining variables. Normally you will see
> something = { a' b' c'' }   but   something = a'
> is also allowed because there's only a single item after the =.

> A lot of the examples have just \relative { ... }
> which is a valid input file.

> Finally, if you put several of the above into a file, each will give
> you a separate score. That's because LP wraps the individual expressions
> in a great deal of context stuff automatically; voice, staff and score.

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


Re: Clef modifier vertical position

2017-01-11 Thread Kieren MacMillan
Hi Andrew,

> In particular it addresses the issue I have where I simultaneously have a 
> clef "treble^8" in the other staff, and this does not alter the position of 
> the modifier for that clef, which I was having problems with until 
> enlightened by you.
> 
> I never knew you apply layout modifications to things like \clef "F_8". 
> Should that be in documentation somewhere, or the LSR?

I don’t believe that's what’s actually happening… His code, I think, simply 
modifies Clef grobs in all Staff contexts. If you want to modify just one, you 
can use

\new Staff \with { \override ClefModifier… }

Hope this helps!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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


Re: Cannot use \layout in a variable

2017-01-11 Thread David Wright
On Wed 11 Jan 2017 at 05:03:21 (-0700), ptoye wrote:
> Thanks all for putting me right. I have to say that the documentation is very
> confusing as to the syntax. From the Learning manual:
> 
> which implies that the brackets are needed, but it's followed by:
> 
> and later by:
> 
> which don't have the brackets. 
> 
> How does the parser know when the variable definition has finished if it can
> be on multiple lines?

Without the quotations, it's tricky to guess what you've seen.
Some hints:

{ c' } is a valid input file: a music expression.

<< c' >>   too because << >> indicates that the expression(s) contained
are simultaneous. In this example, there's just one.

\absolute c'   is a valid input file: the command is a music expression,
and the command's argument is a music expression composed of a single item.
If you write more than one item, you need { } or << >> to show whether
the expressions are sequential or simultaneous.

The same applies to defining variables. Normally you will see
something = { a' b' c'' }   but   something = a'
is also allowed because there's only a single item after the =.

A lot of the examples have just \relative { ... }
which is a valid input file.

Finally, if you put several of the above into a file, each will give
you a separate score. That's because LP wraps the individual expressions
in a great deal of context stuff automatically; voice, staff and score.

Cheers,
David.

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


Re: OOoLilyPond

2017-01-11 Thread SoundsFromSound
Klaus Blum wrote
> Hi Ben, 
> SoundsFromSound wrote
>> I cannot get your version of the extension to show up at all in
>> LibreOffice 5 in Windows 10. If I revert to an older "official" version
>> of the OOo, it shows up correctly in add-ons.
>> 
>> Not sure why but as of now nothing I can do will make your modified
>> version of OOoLilyPond show up in Windows LibreOffice. 
>> 
>> Even from the extension manager, it shows a blank instance listed of
>> "OOoLilyPond" with no other information (which is normally would with
>> older version). Do you know what could cause this or how to fix?
> maybe I made some mistakes in composing the oxt file. 
> Here is another attempt. This time I took the version 0.4.0 oxt file and
> only replaced the updated ingredients. On my LO 5.2.4.2/Win7 it now shows
> up as expected. 
> BTW: Even with the original 0.4.0, I did not get any automatic creation of
> a menu entry or toolbar button. I had to manually create a button and link
> the correct marco with it (see picture). 
> I don't know if there is some secret I have missed...
> 
> Does it work now?
> 
> Cheers, 
> Klaus
> Macros.gif   
> 
> OOoLilyPond-0.oxt
>   


Yes you fixed it!

This new version is working perfectly :) It shows up automatically as it
should and the extension information is intact. Whatever you did just now
fixed it, thank you for working on this!

Ben



-
composer | sound designer | asmr artist 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/OOoLilyPond-tp185560p199088.html
Sent from the User mailing list archive at Nabble.com.

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


Re: OOoLilyPond

2017-01-11 Thread Klaus Blum
Hi Ben, 


SoundsFromSound wrote
> I cannot get your version of the extension to show up at all in
> LibreOffice 5 in Windows 10. If I revert to an older "official" version of
> the OOo, it shows up correctly in add-ons.
> 
> Not sure why but as of now nothing I can do will make your modified
> version of OOoLilyPond show up in Windows LibreOffice. 
> 
> Even from the extension manager, it shows a blank instance listed of
> "OOoLilyPond" with no other information (which is normally would with
> older version). Do you know what could cause this or how to fix?

maybe I made some mistakes in composing the oxt file. 
Here is another attempt. This time I took the version 0.4.0 oxt file and
only replaced the updated ingredients. On my LO 5.2.4.2/Win7 it now shows up
as expected. 
BTW: Even with the original 0.4.0, I did not get any automatic creation of a
menu entry or toolbar button. I had to manually create a button and link the
correct marco with it (see picture). 
I don't know if there is some secret I have missed...

Does it work now?

Cheers, 
Klaus

Macros.gif   
OOoLilyPond-0.oxt
  



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/OOoLilyPond-tp185560p199086.html
Sent from the User mailing list archive at Nabble.com.

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


Find out denominator of current time signature

2017-01-11 Thread Thomas Weber

Dear all,

I wonder how I can create a duration that is so to say exactly one time 
signature denominator long (e.g. an eigth in 6/8, a quarter in 4/4 etc.).  I 
thought something like this would work:

  #(make-music
  'SkipEvent
  'duration
  (ly:make-duration 0 0 1 (ly:moment-main-denominator ???))
  'articulations
  (list (make-music
  'AbsoluteDynamicEvent
  'text
  "ff")))

Lacking experience, I don't know whether ly:moment-main-denominator is the 
thing to go for here and if so, what argument to supply.

The background is automatic generation of Lilypond input code where it is 
non-trivial to find out the time signature for the code generator, so I hoped 
it would be possible to write out some Scheme code that will defer that task to 
Lilypond.

Many thanks
Thomas


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


Re: Cannot use \layout in a variable

2017-01-11 Thread SoundsFromSound
ptoye wrote
> Thanks, but in this case I'm more interested in why what I wrote doesn't
> work.
> 
> 
> 
> --
> View this message in context:
> http://lilypond.1069038.n5.nabble.com/Cannot-use-layout-in-a-variable-tp199054p199073.html
> Sent from the User mailing list archive at Nabble.com.
> 
> ___
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user

I understand your question just fine. 

When you just asked:
"How does the parser know when the variable definition has finished if it
can be on multiple lines?"

...I took that to mean exactly that. Variables.

The layout block has braces as well, it's not different in that respect. It
needs braces like all other expressions, just like the manual says. Variable
or not. Just was trying to help.

i.e.

\layout {
  indent = 2\cm
  \context {
\StaffGroup
\override StaffGrouper.staff-staff-spacing.basic-distance = #8
  }
  \context {
\Voice
\override TextScript.padding = #1
\override Glissando.thickness = #3
  }
}




-
composer | sound designer | asmr artist 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Cannot-use-layout-in-a-variable-tp199054p199079.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Cannot use \layout in a variable

2017-01-11 Thread SoundsFromSound
ptoye wrote
> How does the parser know when the variable definition has finished if it
> can be on multiple lines?

Also, this may help you as well, understanding that multiple lines is fine
if you just remember the braces (variables included):
http://lilypond.org/doc/v2.18/Documentation/learning/working-on-input-files

Expressions: every piece of LilyPond input needs to have { curly braces }
placed around the input. 

*Whitespace insensitive:* it *does not matter* how many spaces (or tabs or
new lines) you add. ‘{ c4 d e }’ means the same thing as ‘{ c4   d e }’
and:

{ c4   d
   e   }

Of course, the previous example is hard to read. A good rule of thumb is to
indent code blocks with two spaces:

{
  c4 d e
}




-
composer | sound designer | asmr artist 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Cannot-use-layout-in-a-variable-tp199054p199078.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Cannot use \layout in a variable

2017-01-11 Thread SoundsFromSound
ptoye wrote
> From the Learning manual:

> 
> How does the parser know when the variable definition has finished if it
> can be on multiple lines?

The variable is finished when the pair of enclosed brackets finishes,
multiple lines and all :

namedMusic = { 

.
.

.


}




-
composer | sound designer | asmr artist 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Cannot-use-layout-in-a-variable-tp199054p199077.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Cannot use \layout in a variable

2017-01-11 Thread ptoye
Thanks all for putting me right. I have to say that the documentation is very
confusing as to the syntax. From the Learning manual:

which implies that the brackets are needed, but it's followed by:

and later by:

which don't have the brackets. 

How does the parser know when the variable definition has finished if it can
be on multiple lines?



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Cannot-use-layout-in-a-variable-tp199054p199076.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Cannot use \layout in a variable

2017-01-11 Thread ptoye
Thanks, but in this case I'm more interested in why what I wrote doesn't
work.



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Cannot-use-layout-in-a-variable-tp199054p199073.html
Sent from the User mailing list archive at Nabble.com.

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


Re: OOoLilyPond

2017-01-11 Thread SoundsFromSound
Klaus Blum wrote
> Hi again, 
> 
> recently I've done some homework...  ;-)
> I've tried to make some additions, and the result is
> OOoLilyPond-0.4.2rc1.oxt - see attached.
> OOoLilyPond-0.oxt
>   
> 
> Notice: This is based on the most "recent" release
> OOoLilyPond-0.4.1rc1.oxt from 2009 which isn't on the official site, but
> you can find it here: 
> https://sourceforge.net/p/ooolilypond/discussion/614285/thread/d200563d/
> 
> On Windows, it worked fine with LibreOffice, but not with OpenOffice.
> 
> New features: 
> 
> 1.) It's now possible to add include paths in the config dialog. 
> 
> 2.) Ability to save the current code to a temporary LY file and open it in
> an external editor, e.g. Frescobaldi. The path to the executable can be
> customized in the config dialog. Another button re-imports code from the
> temporary file back to the editor window. 
> 
> 3.) LilyPond's svg backend still doesn't support lilypond-book-preamble.ly
> would be needed for auto-cropping. 
> Any current attempt to use OLy with svg format must work without
> lilypond-book-preamble.ly, e.g. with the "Direct to Lilypond" template.
> Paper size must be found by trial-and-error. As line-width must be given
> anyway, only the paper height would have to be a guess, which is maybe not
> that bad. 
> Also, text fonts seem to be replaced - don't know where and why. Is there
> already a discussion about that?
> That being said: I've added svg support, and on Windows 7 I had no
> problems with the graphics import. 
> 
> It would be cool if someone also could test it on Linux and report errors.
> I've added two templates to play with. 
> Attempt.ly   
> 
> Attempt2.ly
>   
> 
> Cheers, 
> Klaus
> 
> P.S.: I hope the attachments work, as I'm posting from nabble:
> http://lilypond.1069038.n5.nabble.com/OOoLilyPond-tp185560p198768.html


I cannot get your version of the extension to show up at all in LibreOffice
5 in Windows 10. If I revert to an older "official" version of the OOo, it
shows up correctly in add-ons.

Not sure why but as of now nothing I can do will make your modified version
of OOoLilyPond show up in Windows LibreOffice. 

Even from the extension manager, it shows a blank instance listed of
"OOoLilyPond" with no other information (which is normally would with older
version). Do you know what could cause this or how to fix?

*See attached images*

Older_Extension_(Works).png

  
Your_Extension.png
  




-
composer | sound designer | asmr artist 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/OOoLilyPond-tp185560p199072.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Which Linux distro for Lilypond

2017-01-11 Thread Werner LEMBERG

Hello Knut!


> Using a guile 1.8.8 built with --disable-shared building of lilypond
> fails early:

Ouch.

> Ok, let's look at srfi-1.scm line 221..223:
>
>;; Load the compiled primitives from the shared library.
>;;
>(load-extension "libguile-srfi-srfi-1-v-3" "scm_init_srfi_1")
>
> Could it be that --disable-shared kills support of required modules?
> Is there a known workaround?

Please ask on the guile mailing list!  I currently don't have time to
do it by myself.


Werner

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


Re: Which Linux distro for Lilypond

2017-01-11 Thread Knut Petersen

Hi Werner!

*If* we bundle guile 1.8 with lilypond, I strongly prefer static
linking of the library (this is, adding `--disable-shared' to guile's
configure script, together with a proper argument to the
`--datarootdir' option to install the .scm files under a lilypond
directory).  This avoids *any* problems with different guile library
versions, and the created lilypond binary can peacefully coexist with
guile 2.0 even in the `/usr' tree.


Using a guile 1.8.8 built with --disable-shared building of lilypond fails 
early:

   chmod 755 out/lilypond-invoke-editor
   echo /home/knut/sources/lily/build/scripts/build/out/help2man
   /home/knut/sources/lily/build/scripts/build/out/help2man
   /home/knut/sources/lily/build/scripts/build/out/help2man 
out/lilypond-invoke-editor > out/lilypond-invoke-editor.1
   help2man: can't get `--help' info from out/lilypond-invoke-editor
   Try `--no-discard-stderr' if option outputs to stderr

Running build/scripts/out/lilypond-invoke-editor gives a hint:

   ERROR: In procedure dynamic-link:
   ERROR: file: "libguile-srfi-srfi-1-v-3", message: "file not found"

Ok, we don't really need it, so a brutal fix is to simply remove the srfi 
modules from that file... that works.

After that the build does not succeed, but it fails after building the binary.

Executing the lilypond binary gives

   GNU LilyPond 2.19.55
   /home/knut/sources/guile18built/share/guile/1.8/srfi/srfi-1.scm:223:1: In procedure dynamic-link 
in expression (load-extension "libguile-srfi-srfi-1-v-3" "scm_init_srfi_1"):
   /home/knut/sources/guile18built/share/guile/1.8/srfi/srfi-1.scm:223:1: file: 
"libguile-srfi-srfi-1-v-3", message: "file not found"

Ok, let's look at srfi-1.scm line 221..223:

   ;; Load the compiled primitives from the shared library.
   ;;
   (load-extension "libguile-srfi-srfi-1-v-3" "scm_init_srfi_1")

Could it be that --disable-shared kills support of required modules? Is there a 
known workaround?

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