Re: Generate pitches between pitches

2019-11-28 Thread Urs Liska

Hello Paolo,

what you want is doable in a Scheme "music function" that takes the two 
pitches as input and returns a completed music expression.


However, for someone to help you out with that you should give more 
clear indications how that result should look like, especially with 
regard to durations/rhythm.


Urs

Am 29.11.19 um 00:26 schrieb Paolo Prete:

Hello,

given two pitches, for example: c' and c'',   is there a way to 
automatically generate all the pitches between them? In three 
different ways:


1) all the "white keys" between them:   d' e' f' g' a' b'
2) all the "black keys" between them:   des' ees' ges' aes' bes'
3) all the pitches:  des' d' ees' e' f' ges' g' aes' a' bes' b'

This feature would be very useful for simulating (piano) glissandos 
with MIDI.


thanks.


Re: Simultaneous slurs inside a tuplet

2019-11-28 Thread David Wright
On Thu 28 Nov 2019 at 21:53:30 (+), David Pleydell wrote:
> Hi
> I'm trying to write out some traditional flamenco guitar pieces in Lilypond.  
> I have a situation where I must write legato (slurs) for two fingers 
> simultaneously, inside a tuplet. I am using two staffs, a traditional one and 
> one for tablature.   
> I attach a script (& it's pdf) that displays one of the slurs, but I would 
> like to adapt it so that a second slur is displayed just above the first 
> (i.e. linking the g and a).  
> How should I do this? The examples I've seen on simultaneous slurs seem to 
> conflict with tuplet, or just not run on my computer.
> I'm using Lilypond & Frescobaldi installed from the Ubuntu repositories. 
> Would greatly appreciate some pointers as to how to do this.David 

You can label the slurs with numbers (NR §1.3.2 Expressive marks as
curves) but you will need 2.19.83 (or at least > 2.18.2).

> \version "2.18.2"
> \header {title = "Simultaneous slurs in a tuplet?"}
> 
> global = {
>   \key c \major
>   \time 4/4
> }
> 
> flamencoGuitar = \relative c {
>   \global
>   % I NEED TO ADD A SECOND SLUR ABOVE THE FIRST HERE
>  \tuplet 3/2 << {8[_(_(  _)_)  ] } >>  
> }
> 
> \score {
>   \new StaffGroup  <<
> \new Staff { \clef "treble_8" \flamencoGuitar }
>   \new TabStaff  \flamencoGuitar
>   >>
> }

Cheers,
David.
\version "2.18.2"
\header {title = "Simultaneous slurs in a tuplet?"}

global = {
  \key c \major
  \time 4/4
}

flamencoGuitar = \relative c {
  \global
  % I NEED TO ADD A SECOND SLUR ABOVE THE FIRST HERE
 \tuplet 3/2 << {8[   ] } >>
}

\score {
  \new StaffGroup  <<
\new Staff { \clef "treble_8" \flamencoGuitar }
  \new TabStaff  \flamencoGuitar
  >>
}


slurs.pdf
Description: Adobe PDF document


Re: horizontal position of rehearsal marks at start of system

2019-11-28 Thread Flaming Hakama by Elaine
-- Forwarded message --

> From: Werner LEMBERG 
> To: pierre.schneider.pa...@gmail.com
> Cc: lilypond-user@gnu.org
> Bcc:
> Date: Sun, 24 Nov 2019 23:30:34 +0100 (CET)
> Subject: Re: horizontal position of rehearsal marks at start of system
>
> >> how can I control the default horizontal position of rehearsal
> >> marks at the beginning of a line?  As can be seen in the attached
> >> image, the rehearsal mark gets shifted up because it would
> >> otherwise collide with the bar number.  Consequently, I would like
> >> to have the default position shifted to the right to avoid that.
> >
> > Did you move the bar number to get such output?
>


> Thanks for this solution, however, I'm interested in a way to adjust
> the *default* horizontal position, not a one-time correction.  Looking
> at the stuff for `RehearsalMark` in file `define-grobs.scm` I can't
> see how the horizontal position at the beginning of a line gets
> computed – whatever it is, I want that by default it gets positioned
> more to the right.
>
> Werner
>

Sorry, I'm not sure I can get you exactly what you want, since I'm not sure
what is the difference in terms of how rehearsal marks are aligned between
those at the start of a line, and those in the middle of a line.

But you can adjust the default alignment of all rehearsal marks with
commands like

\override Score.RehearsalMark.self-alignment-X = #LEFT
\override Score.RehearsalMark #'extra-offset = #'( -1.0 . 0 )

And of course, you can override any particular one using those
prefixed by \once


HTH,

Elaine Alt
415 . 341 .4954   "*Confusion is
highly underrated*"
ela...@flaminghakama.com
Producer ~ Composer ~ Instrumentalist ~ Educator
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


Re: Simultaneous slurs inside a tuplet

2019-11-28 Thread Flaming Hakama by Elaine
- Forwarded message --
> From: David Pleydell 
> To: "lilypond-user@gnu.org" 
> Date: Thu, 28 Nov 2019 21:53:30 + (UTC)
> Subject: Simultaneous slurs inside a tuplet
> Hi
>
> I'm trying to write out some traditional flamenco guitar pieces in
> Lilypond.  I have a situation where I must write legato (slurs) for two
> fingers simultaneously, inside a tuplet. I am using two staffs, a
> traditional one and one for tablature.
>
> I attach a script (& it's pdf) that displays one of the slurs, but I would
> like to adapt it so that a second slur is displayed just above the first
> (i.e. linking the g and a).
>
> How should I do this? The examples I've seen on simultaneous slurs seem to
> conflict with tuplet, or just not run on my computer.
>
> I'm using Lilypond & Frescobaldi installed from the Ubuntu repositories.
>
> Would greatly appreciate some pointers as to how to do this.
> David
>

I'm not sure I understand exactly where the second slur supposed to go.

You say "above", but explicitly specify the slur to go below.
Which is to say, you write _( _) instead of just ( ).

In any case, one way to get two slurs is to use
phrasing slurs in addition to regular slurs.
http://lilypond.org/doc/v2.18/Documentation/notation/expressive-marks-as-curves#phrasing-slurs

I adjusted your example to do this.

However, I don't understand why the phrasing slur
does not show up in the tab staff, only in the regular staff.
Maybe someone else can figure that out.

To get the phrasing slur to move up from where it normally sits,
you can use \shape.
http://lilypond.org/doc/v2.18/Documentation/notation/modifying-shapes

You could specify the phrasing slur to be above,
either by using ^\( ^\), or by using \\phrasingSlurUp,.
However, this puts the slur above the entire staff,
and that is much further away from where (I think)
you want it, so we'll keep it as it is, below.

I also demonstrate use of tags, so that the modifications
for \shape only apply to the staff, not the tabstaff.
http://lilypond.org/doc/v2.18/Documentation/notation/different-editions-from-one-source#using-tags

\version "2.18.2"
\header {title = "Simultaneous slurs in a tuplet?"}

global = {
  \key c \major
  \time 4/4
}

%  I put your global definitions in parallel with the music,
%  since if you start to add things like barlines and anything
%  else that is not at the very beginning,
%  you won't be able to use \global in sequence like you did.
flamencoGuitar = <<
\global
% I NEED TO ADD A SECOND SLUR ABOVE THE FIRST HERE
\relative c {

\tag #'RegularStaff {
\shape #'((0 . 0) (0 . 0) (0 . 0) (0 . 0)) Slur
\shape #'((0 . 3.8) (-0.2 . 4.8) (-0.2 . 5.4) (0 . 4.0)) PhrasingSlur
}
\tag #'TabbedStaff {
\shape #'((0 . 0) (0 . 0) (0 . 0) (0 . 0)) Slur
\shape #'((0 . -0.5) (0 . -0.5) (0 . -0.5) (0 . -0.5)) PhrasingSlur
}
\tuplet 3/2 << { 8 \( _(  _) \)  } >>
}
>>

\score {
\new StaffGroup  <<
  \new Staff \tag #'RegularStaff { \clef "treble_8" \flamencoGuitar }
  \new TabStaff \tag #'TabbedStaff \flamencoGuitar
  >>
}


HTH,

Elaine Alt
415 . 341 .4954   "*Confusion is
highly underrated*"
ela...@flaminghakama.com
Producer ~ Composer ~ Instrumentalist ~ Educator
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


Generate pitches between pitches

2019-11-28 Thread Paolo Prete
Hello,
given two pitches, for example: c' and c'',   is there a way to automatically 
generate all the pitches between them? In three different ways:
1) all the "white keys" between them:   d' e' f' g' a' b'2) all the "black 
keys" between them:   des' ees' ges' aes' bes'3) all the pitches:  des' d' ees' 
e' f' ges' g' aes' a' bes' b'
This feature would be very useful for simulating (piano) glissandos with MIDI.
thanks.

Re: drawing a range reguardless of transposition

2019-11-28 Thread Aaron Hill

On 2019-11-28 9:27 am, Sandro Santilli wrote:

On Mon, Nov 25, 2019 at 04:40:12AM -0800, Aaron Hill wrote:

On 2019-11-25 2:26 am, Sandro Santilli wrote:
> I'm trying, for backward compatibility, to keep that
> highlightOutOfRange function, is that possible ?

What compatibility are you needing?


As I've used the old function in existing scores, I'd like
to avoid changing them all to use the new function. That's
the kind of compatibility I'd be needing.


Forgive me, but did I not invent that function only two weeks ago?  How 
busy have you been to have used it in so many scores?!  (:


But, really, it should involve little more than a find-and-replace to 
convert the older usage to the newer.  Here's a bash script to do the 
work:



#!/usr/bin/env bash
sed 's/\\override\s\+NoteHead\.color\s*=\s*\\highlightOutOfRange\s\+\('\
'#\(([^)]\+)\|\S*\)\s*\)\?\([a-z,'"'"']\+\s\+[a-z,'"'"']\+\)/\\highlig'\
'htPitches \1outside { \3 }/g' $1


Given an example input fragment...


\override NoteHead.color = \highlightOutOfRange #(x11-color 'tomato) c' 
c''
\new Voice \with { \override NoteHead.color = \highlightOutOfRange #red 
c' c'' }
\relative c' { c d \once \override NoteHead.color = \highlightOutOfRange 
c' c'' e f }



...the script outputs the following:


\highlightPitches #(x11-color 'tomato) outside { c' c'' }
\new Voice \with { \highlightPitches #red outside { c' c'' } }
\relative c' { c d \once \highlightPitches outside { c' c'' } e f }


But since sed works on a line-by-line basis, it will not be able to 
detect cases when you have spread the \override across multiple lines.



-- Aaron Hill



Re: drawing a range reguardless of transposition

2019-11-28 Thread Sandro Santilli
On Mon, Nov 25, 2019 at 04:40:12AM -0800, Aaron Hill wrote:
> On 2019-11-25 2:26 am, Sandro Santilli wrote:
> > I'm trying, for backward compatibility, to keep that
> > highlightOutOfRange function, is that possible ?
> 
> What compatibility are you needing?

As I've used the old function in existing scores, I'd like
to avoid changing them all to use the new function. That's
the kind of compatibility I'd be needing.

> Please let me know if I am overlooking a critical detail in your use case
> where my newer function would not be fit for purpose.

My new use case is perfectly served by the new function

--strk;



Re: Availability of music notation font in LibreOffice (Malte Meyn)

2019-11-28 Thread Kevin Cole
Also available in the Arch Linux User Repository (AUR), currently at
otf-bravura version 1.271-1

https://aur.archlinux.org/packages/otf-bravura

But, if you're an Arch user, you probably figured all that out for
yourself, making this message a bit redundant. ;-)



Re: 8va superscript

2019-11-28 Thread Martin Tarenskeen



On Thu, 28 Nov 2019, Pierre Perol-Schneider wrote:


How about:
\version "2.19.83"

\layout {
  \context {
    \Staff
    \override OttavaBracket.stencil = #ly:line-spanner::print
    \override OttavaBracket.bound-details =
      #`((left . ((text . ,#{ \markup\concat\italic { "8" \raise #.8 \tiny "va" 
} #})
                   (Y . 0)
                   (stencil-align-dir-y . ,UP)
                   ))
         (right . ((Y . 0)
                   (padding . -1)
                   (text . ,(make-draw-line-markup (cons 0 -1.5))
    \override OttavaBracket.left-bound-info =
       #ly:line-spanner::calc-left-bound-info-and-text
    \override OttavaBracket.right-bound-info =
       #ly:line-spanner::calc-right-bound-info
  }
}

{
  \ottava #1
  c'' 4 4 4 4
}



Not bad, almost right, I would make the vertical line at the end of the 
extender a little smaller, something like (cons 0 -1.0).


And when using \ottava #-1 the code for your extender line isn't 
usable. Take a look at Gould's Behind Bars p.28 chapter "Octave signs" to 
see what I'm trying to accomplish.


--

MT

Re: 8va superscript

2019-11-28 Thread Pierre Perol-Schneider
How about:
\version "2.19.83"

\layout {
  \context {
\Staff
\override OttavaBracket.stencil = #ly:line-spanner::print
\override OttavaBracket.bound-details =
  #`((left . ((text . ,#{ \markup\concat\italic { "8" \raise #.8 \tiny
"va" } #})
   (Y . 0)
   (stencil-align-dir-y . ,UP)
   ))
 (right . ((Y . 0)
   (padding . -1)
   (text . ,(make-draw-line-markup (cons 0 -1.5))
\override OttavaBracket.left-bound-info =
   #ly:line-spanner::calc-left-bound-info-and-text
\override OttavaBracket.right-bound-info =
   #ly:line-spanner::calc-right-bound-info
  }
}

{
  \ottava #1
  c'' 4 4 4 4
}

Cheers,
Pierre

Le jeu. 28 nov. 2019 à 11:43, Martin Tarenskeen  a
écrit :

>
>
> On Thu, 28 Nov 2019, Malte Meyn wrote:
>
> > The new default will be numbers only (#ottavation-numbers) with a simple
> > option to use super-/subscript "8va" with a both for alta and bassa:
> >
> >   \set ottavationMarkups = #ottavation-ordinals
> >
> > I don’t know when 2.21.0 will be released. IIRC there have been some
> good
> > ottava hacks for older versions on this list.
>
> Sounds good. I am looking forward to it ... very patiently ;-)
>
> MT


Re: 8va superscript

2019-11-28 Thread Martin Tarenskeen



On Thu, 28 Nov 2019, Malte Meyn wrote:

The new default will be numbers only (#ottavation-numbers) with a simple 
option to use super-/subscript "8va" with a both for alta and bassa:


\set ottavationMarkups = #ottavation-ordinals

I don’t know when 2.21.0 will be released. IIRC there have been some good 
ottava hacks for older versions on this list.


Sounds good. I am looking forward to it ... very patiently ;-)

MT

Re: 8va superscript

2019-11-28 Thread Malte Meyn

Hi Martin,

AFAIK all of this can be done, yes. However, it’s a bit hacky and will 
be much easier in the not yet published 2.21.0 which will have improved 
ottava brackets.


Am 28.11.19 um 10:36 schrieb Martin Tarenskeen:
- 8va above the staff with the "va" superscripted like in the attached 
png, and the dotted extenderline vertically aligned with the 
superscripted "va", or the top of the "8" or the superscripted "va".


The vertical alignment is probably the most tricky part. I’m not sure 
whether this can be done without a hacky \markup \translate in 2.19.83 
which doesn’t work well with collision detection …


I mostly use the traditional 8va below the staff in pianomusic instead 
of more modern 8vb. (Which I don't like - personal taste I guess. You 
may call me oldfashioned)




The new default will be numbers only (#ottavation-numbers) with a simple 
option to use super-/subscript "8va" with a both for alta and bassa:


\set ottavationMarkups = #ottavation-ordinals

I don’t know when 2.21.0 will be released. IIRC there have been some 
good ottava hacks for older versions on this list.


Cheers,
Malte



8va superscript

2019-11-28 Thread Martin Tarenskeen


Hi,

Attached is a picture from two 8va variants I found in the Bravura font.

Using LilyPond with the following tiny example:

\version "2.19.83"
\relative {
  \ottava #1 f'' f f f |
  \ottava #-1 f,, f f f |
}

will result in "8va" (above) and "8vb" (below)

I would like to accomplish two things:

- 8va above the staff with the "va" superscripted like in the attached 
png, and the dotted extenderline vertically aligned with the superscripted 
"va", or the top of the "8" or the superscripted "va".


- 8va below (instead of 8vb) using the normal italic "8va" and the 
dotted extenderline vertically aligned with the floor of the "8va" text.


Can all this be done in LilyPond?

I mostly use the traditional 8va below the staff in pianomusic instead of 
more modern 8vb. (Which I don't like - personal taste I guess. You may 
call me oldfashioned)


--

MT

Re: Availability of music notation font in LibreOffice (Malte Meyn)

2019-11-28 Thread Martin Tarenskeen



On Wed, 27 Nov 2019, Peter Toye wrote:


Don't ask me - I just went to the download link at http://www.smufl.org/fonts/ 
:)
I'll try the Steinberg site - thanks for the pointer.


Inspired by this thread I found out that on my Linux Fedora system I can 
simply install the Steinberg Bravura fonts from the Fedora repository:


sudo dnf install steinberg-bravura-fonts
sudo dnf install steinberg-bravura-text-fonts

I did some searching in the Fedora repo, and also found some other options 
for musical symbols:


dnf search music font

google-noto-music-fonts.noarch : Music font
gdouros-musica-fonts.noarch : A font for musical symbols
denemo-music-fonts.noarch : Denemo Denemo fonts
=== Samenvatting & 
Naam Komt overeen met: music, font 
===

steinberg-bravura-fonts.noarch : Bravura music font
steinberg-bravura-text-fonts.noarch : Bravura music text font
allgeyer-musisync-fonts.noarch : A musical notation font family that 
provides general musical decorations
allgeyer-musiqwik-fonts.noarch : A musical notation font family intended 
for writing lines of actual music
== 
Samenvatting Komt overeen met: music, font 
===

texlive-figbas.noarch : Mini-fonts for figured-bass notation in music


So you could also search for and try those google, gdouros, and allgeyer 
fonts. They also should be downloadable for free for everyone somewhere. 
(They can't be included in the Fedora repos if they aren't.)


--

MT