Re: Forcing a DynamicText to appear inside the staff

2016-08-10 Thread Simon Albrecht
Hi Thomas,   Am 10.08.2016 um 19:13 schrieb Thomas Weber: 

in old orchestral scores one can observe that engravers did not hesitate to 
make more room in dense situations by moving dynamics into the staff rather 
than putting them below (or above).  
 I mostly work on choral scores, where the problem might even be more imminent 
due to the lyrics. And I very much think allowing dynamics to overlap with the 
staff is a good idea, so I've been facing this a lot and made many essays at 
writing a music function that is easy to use (easy to understand and easy to 
type), versatile, and well maintainable. Unfortunately I haven't found a 
satisfactory solution yet, and I can't delve into the subject more right now. 
So I'm sorry to provide no more help at the moment except for this issue 
tracker link: . Some of the problems encountered are mentioned there.

 HTH a bit,
 Simon
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Angled bar lines

2016-08-10 Thread Malte Meyn



Am 10.08.2016 um 23:27 schrieb Malte Meyn:

\defineBarLine "[" #'("|" "[" ".")


An explanation of this: define a bar line style called "[" that normally 
prints a "[" bar line. At the end of a line print "|" instead (as in the 
first line of my example), at the beginning of a line print "[", and 
print "." for span bars (note: span bars don’t yet really work with "[" 
as expected).


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


Re: Angled bar lines

2016-08-10 Thread Malte Meyn



Am 10.08.2016 um 22:43 schrieb Philip (Michael) Dykes:

Hi I need to get a section at the beginning of a piece of liturgical
music I have (Only Begotten Son) in which /*sometimes*/ a certain thing
is sung but /not /normally sung indicated. The typical manner I have
seen this done is via the use of angled bar lines the same as that of
the angled repeat bar lines I have seen in frescobaldi and such but
without the repeat signs. Is there a way to do that? I really hope there
is.


You have to define your own bar line style using \defineBarLine:

\version "2.18.2"

\defineBarLine "[" #'("|" "[" ".")
\defineBarLine "]" #'("]" "" ".")

\relative {
  c'1 \bar "[" c \bar "]" \break
  c \bar "[" \break
  c \bar "]" c
}

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


Angled bar lines

2016-08-10 Thread Philip (Michael) Dykes
Hi I need to get a section at the beginning of a piece of liturgical 
music I have (Only Begotten Son) in which /*sometimes*/ a certain thing 
is sung but /not /normally sung indicated. The typical manner I have 
seen this done is via the use of angled bar lines the same as that of 
the angled repeat bar lines I have seen in frescobaldi and such but 
without the repeat signs. Is there a way to do that? I really hope there 
is.


Thanks,

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


Re: Forcing a DynamicText to appear inside the staff

2016-08-10 Thread David Kastrup
Thomas Weber  writes:

> Am 10.08.2016 um 20:33 schrieb Robin Bannister:
>> Thomas Weber wrote:
>>> But Lilypond insist on keeping the dynamic outside of the staff.
>>
>> Try
>> {
>>   \override Staff.DynamicLineSpanner  #'outside-staff-priority = ##f
>>   \override Staff.DynamicText #'X-offset = -4
>>   \override Staff.DynamicLineSpanner #'Y-offset = 0
>>   c' \f
>> }
>
>
> Great, that works!  What does ##f actually stand for?

"false".  The Scheme notation for false is #f, and to get from LilyPond
to Scheme requires another # .  You could also write #(< 1 0) with the
same result: (< 1 0) evaluates to false in Scheme.

The normal value for outside-staff-priority is a number determining how
material outside of the staff is to be ordered.  Setting it to false
instructs LilyPond to not place it outside the staff at all.

-- 
David Kastrup

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


Re: Forcing a DynamicText to appear inside the staff

2016-08-10 Thread Robin Bannister

Thomas Weber wrote:

Great, that works!  What does ##f actually stand for?


This discussion has a few references:
https://sourceforge.net/p/testlilyissues/issues/4792/


Cheers,
Robin

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


Re: Forcing a DynamicText to appear inside the staff

2016-08-10 Thread Noeck
> Great, that works!  What does ##f actually stand for?

False.

Or, to be a bit more precise: With # you switch from normal LilyPond
syntax to Scheme code and #f is 'false' in Scheme (like 'false' in C++
or 'False' in Python). The combination is ##f.

Best,
Joram

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


Re: Forcing a DynamicText to appear inside the staff

2016-08-10 Thread Thomas Weber
Am 10.08.2016 um 20:33 schrieb Robin Bannister:
> Thomas Weber wrote:
>> But Lilypond insist on keeping the dynamic outside of the staff.
>
> Try
> {
>   \override Staff.DynamicLineSpanner  #'outside-staff-priority = ##f
>   \override Staff.DynamicText #'X-offset = -4
>   \override Staff.DynamicLineSpanner #'Y-offset = 0
>   c' \f
> }


Great, that works!  What does ##f actually stand for?

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


Re: Forcing a DynamicText to appear inside the staff

2016-08-10 Thread Robin Bannister

Thomas Weber wrote:

But Lilypond insist on keeping the dynamic outside of the staff.


Try
{
  \override Staff.DynamicLineSpanner  #'outside-staff-priority = ##f
  \override Staff.DynamicText #'X-offset = -4
  \override Staff.DynamicLineSpanner #'Y-offset = 0
  c' \f
}

and have a look at (the maybe outdated)
http://lists.gnu.org/archive/html/lilypond-devel/2006-12/msg00135.html


Cheers,
Robin

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


Forcing a DynamicText to appear inside the staff

2016-08-10 Thread Thomas Weber
Hi all,

in old orchestral scores one can observe that engravers did not hesitate to 
make more room in dense situations by moving dynamics into the staff rather 
than putting them below (or above).  To achieve the same effect, I tried the 
following:


{
  \once \override Staff.DynamicText #'X-offset = -4
  \once \override Staff.DynamicText #'Y-offset = 3
  c' \f
}


But Lilypond insist on keeping the dynamic outside of the staff.  I'm not an 
experienced Lilypond user, so I'm most likely missing something.  How can I 
achieve this effect?  (And are there counterparts to X-offset and Y-offset that 
allow specifying an absolute position?  At least staff-position does not seem 
to work.)

Thanks
Thomas W.

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