Re: How to align text and dynamixs

2016-02-02 Thread Simon Albrecht

On 02.02.2016 08:43, Carl-Henrik Buschmann wrote:

Thank you! (Stupid brain seizing to work in the night, of course it is 
articulations...)

It did the trick but i only understand half of what's going on in what you 
wrote. In the interest of learning, would you mind to decipher or give a 
pointer where to read?


See some comments below. Other then that, I can recommend scouring the 
NR command index: 
 
(which is NR section D), or the full index (section E).





2. feb. 2016 kl. 00.42 skrev Thomas Morley :

2016-02-02 0:08 GMT+01:00 Carl-Henrik Buschmann :

I wonder how to align text and dynamics? I need it to explain a certain
action when using a certain symbol. I guess this question could be answered
several ways: 1) is it possible to write dynamic/other symbols in markup? 2)
How to gently force horizontal alignment between a dynamic/other mark and
\markup?


MWE

\version "2.19.35"

{
  c'->_\markup { \tiny \italic (stomp) }
}

{
  c'_\markup { > \tiny \italic (stomp) }
}


Carl



Hi Carl,

your examples doesn't show any dynamic but articulations, i.e. accents.

Maybe you'll find the below helpful though:

%%1 DynamicText
stompMrkp =
\markup {
  \musicglyph #"scripts.sforzato" \normal-text \vcenter \tiny \italic (stomp)
}


This defines a markup, specifying the appearance of the desired object.


stompSfz = #(make-dynamic-script stompMrkp)


This takes the markup, turns it into a dynamic script and stores the 
result in a variable, to be used in music as follows:



{
  c'-\tweak self-alignment-X #LEFT -\tweak parent-alignment-X #LEFT _\stompSfz
}

%%2 markup
{
  c'_\markup \concat {
\null
\musicglyph #"scripts.sforzato"
\hspace #0.6
\vcenter \tiny \italic (stomp)
  }
}


This uses slightly different markup formatting, and creates a TextScript 
grob instead of a DynamicText grob. This will behave differently, e.g. 
with the first approach \stompSfz will terminate an eventual (de)crescendo.


HTH, Simon

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


Re: How to align text and dynamixs

2016-02-01 Thread Carl-Henrik Buschmann
Thank you! (Stupid brain seizing to work in the night, of course it is 
articulations...) 

It did the trick but i only understand half of what's going on in what you 
wrote. In the interest of learning, would you min decypher or give a pointer 
where to read?

> 2. feb. 2016 kl. 00.42 skrev Thomas Morley :
> 
> 2016-02-02 0:08 GMT+01:00 Carl-Henrik Buschmann :
>> I wonder how to align text and dynamics? I need it to explain a certain
>> action when using a certain symbol. I guess this question could be answered
>> several ways: 1) is it possible to write dynamic/other symbols in markup? 2)
>> How to gently force horizontal alignment between a dynamic/other mark and
>> \markup?
>> 
>> 
>> MWE
>> 
>> \version "2.19.35"
>> 
>> {
>>  c'->_\markup { \tiny \italic (stomp) }
>> }
>> 
>> {
>>  c'_\markup { > \tiny \italic (stomp) }
>> }
>> 
>> 
>> Carl
>> 
> 
> 
> Hi Carl,
> 
> your examples doesn't show any dynamic but articulations, i.e. accents.
> 
> Maybe you'll find the below helpfull though:
> 
> %%1 DynamicText
> stompMrkp =
> \markup {
>  \musicglyph #"scripts.sforzato" \normal-text \vcenter \tiny \italic (stomp)
> }
> 
> stompSfz = #(make-dynamic-script stompMrkp)
> 
> {
>  c'-\tweak self-alignment-X #LEFT -\tweak parent-alignment-X #LEFT _\stompSfz
> }
> 
> %%2 markup
> {
>  c'_\markup \concat {
>\null
>\musicglyph #"scripts.sforzato"
>\hspace #0.6
>\vcenter \tiny \italic (stomp)
>  }
> }
> 
> Cheers,
>  Harm


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


Re: How to align text and dynamixs

2016-02-01 Thread Thomas Morley
2016-02-02 0:08 GMT+01:00 Carl-Henrik Buschmann :
> I wonder how to align text and dynamics? I need it to explain a certain
> action when using a certain symbol. I guess this question could be answered
> several ways: 1) is it possible to write dynamic/other symbols in markup? 2)
> How to gently force horizontal alignment between a dynamic/other mark and
> \markup?
>
>
> MWE
>
> \version "2.19.35"
>
> {
>   c'->_\markup { \tiny \italic (stomp) }
> }
>
> {
>   c'_\markup { > \tiny \italic (stomp) }
> }
>
>
> Carl
>


Hi Carl,

your examples doesn't show any dynamic but articulations, i.e. accents.

Maybe you'll find the below helpfull though:

%%1 DynamicText
stompMrkp =
\markup {
  \musicglyph #"scripts.sforzato" \normal-text \vcenter \tiny \italic (stomp)
}

stompSfz = #(make-dynamic-script stompMrkp)

{
  c'-\tweak self-alignment-X #LEFT -\tweak parent-alignment-X #LEFT _\stompSfz
}

%%2 markup
{
  c'_\markup \concat {
\null
\musicglyph #"scripts.sforzato"
\hspace #0.6
\vcenter \tiny \italic (stomp)
  }
}

Cheers,
  Harm

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


How to align text and dynamixs

2016-02-01 Thread Carl-Henrik Buschmann
I wonder how to align text and dynamics? I need it to explain a certain action 
when using a certain symbol. I guess this question could be answered several 
ways: 1) is it possible to write dynamic/other symbols in markup? 2) How to 
gently force horizontal alignment between a dynamic/other mark and \markup?


MWE

\version "2.19.35"

{ 
  c'->_\markup { \tiny \italic (stomp) }
}

{ 
  c'_\markup { > \tiny \italic (stomp) }
}


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