Re: How to define a macros for writing predefined chords of arbitrary length?

2017-01-31 Thread Mojca Miklavec
Dear Thomas,

Thanks a lot for the answer.

On 31 January 2017 at 00:55, Thomas Morley wrote:
> 2017-01-30 19:16 GMT+01:00 Mojca Miklavec:
>> Hi,
>>
>> I can easily use a macro to create chords of predefined lengths, say
>>
>> chord_F = { 4 }
>>
>> but the functionality is limited for what I want to achieve.
>>
>> On some instruments (like accordion) one gets that chord by pressing a
>> single button and I need some reasonable way to enter them without
>> messing everything up.
>>
>> (Some songs consist of only two different chords and I find it tedious
>> to keep entering   over and over again, making lots of
>> mistakes, if I could assign that to just "F" and "C" or numbers 4 and
>> 2. \somelongwordF and \somelongwordC are still better than writing out
>> the full chord; the compiler would catch it if I make a spelling
>> mistake.)
>>
>> What I would like to be able to do is:
>>
>> - specify lengths
>> \chord_F4 \chord_F2 or <\chord_F>4 <\chord_F>2
>>
>> - combine chords with other pitches (in theory perhaps with other
>> chords as well, but I never needed that so far)
>> 8
>>
>>
>> To get things like
>>
>> chord_F = { f a c' }
>> melody = {
>> f,8 <\chord_F>8 c8 <\chord_F>8 |
>> 2
>> }
>>
>> What options do I have to achieve the desired functionality? (I don't
>> care about the exact syntax as long as it would allow me to achieve
>> consistency.)
>>
>>
>> Thank you very much,
>> Mojca
>>
>> (Please CC me.)
>
> How about:
>
> \version "2.19.52"
>
> chord =
> #(define-music-function (mus dur)(ly:music? ly:duration?)
>   (let ((evc-notes (extract-typed-music mus 'note-event)))
> (for-each
>   (lambda (note-ev)
> (ly:music-set-property! note-ev 'duration dur))
>   evc-notes)
> (make-event-chord evc-notes)))
>
> chord_F = \chord  \etc
> chord_Gm = \chord  \etc
>
>
> {
> \set Score.skipBars = ##t
> \chord_F16 \chord_F1 \chord_F32.. \chord_F\longa
> \chord_Gm128 \chord_Gm2 \chord_Gm4
> << f''8 \\ \repeat unfold 3 \chord_F16*2/3 >>
> }

I need more time (and skill) to understand the function definition,
but I will happily use it. Thank you very much, this helps a lot. It's
a tiny bit suboptimal that the durations are not optional, but I can
live with that.

> %% remark:
> %% n.b.: \chord_F4 <-- a duration is needed, the value doesn't matter
> chord_XY = \chord { fis'' \chord_F1 } \etc
>
> {
> \chord_XY 64.
> \chord { gis'' \transpose f f' \chord_F4 ees } 32
> }

Thank you. It's not so critical to be able to define new chords as the
fact that I'm able to use
\chord { ... }
to combine predefined chords with something else. I tried using <>
earlier without success.

> The following I don't understand.

I tried to explain into some more details here:
https://github.com/mojca/frajtonarca/tree/master/lilypond#basses

but I should probably add more graphics and I'll explain a bit more
below. An example of a real score is here:

https://github.com/mojca/frajtonarca/blob/master/tablature/avtorske/Mladi%20Dolenjci%20-%20Nisem%20pozabil.pdf

(replace pdf with ly to see the source)

>> PS: At some point in the future I would ideally like to be able to
>> prepare single input to get both of the following modes as output (but
>> that's already the next step):
>>
>> \new Staff = "staff" <<
>>   \new Voice = "bass" {
>> \clef bass
>> \repeat unfold 3 { f,8  c,  | } % push mode
>> \repeat unfold 4 { g,8  c,  | } % pull mode
>> 2 | % push mode
>>   }
>> >>
>>
>> \new FiguredBass {
>>   \figuremode {
>> \repeat unfold 3 { <4>8 <3> <2> <3> | } % push mode
>> \repeat unfold 4 { <2>8 <3> <4> <3> | } % pull mode
>> <4 3>2 | % push mode
>>   }
>> }

I like the way how the following example works (I learned a new trick just now):

basses = \chordmode { c1 g1 c1 }
<<
  \new ChordNames \chordmode {
\basses
  }
  \chordmode {
\basses
  }
>>

The user only has to input the melody once and lilypond will typeset
it in two different ways. I would like to do the same: write the
melody once and get it typeset in different ways.


Using your notation, here's the desired output (in "pull" direction):

ch_g = \chord g, \etc % button 2
ch_c = \chord c, \etc % button 4
ch_f = \chord f, \etc % button 6

% \chordmode { c/e, } probably wouldn't work here?
ch_C = \chord  \etc % button 3
ch_F = \chord  \etc % button 5

<<
  \time 3/4
  \new Staff {
\clef bass
\fixed c {
  \ch_c4 \ch_F4 \ch_F4 |
  \ch_f4 \ch_F4 \ch_F4 |
  \ch_g4 \ch_C4 \ch_C4 |
  \ch_c4 \ch_C4 \ch_C4 |
  \chord { \ch_c4 \ch_C4 } 2. |
}
  }
  \new FiguredBass {
\figuremode {
  <4>4 <5> <5> |
  <6>4 <5> <5> |
  <2>4 <3> <3> |
  <4>4 <3> <3> |
  <3 4>2. |
}
  }
>>

The question is: could I somehow avoid having to write the contents of
figuremode manually? Both blocks represent exactly the 

Re: Is there an online / hosted version of Lilypond?

2017-01-31 Thread Simon Albrecht

On 31.01.2017 23:48, Mark Klenk wrote:


Interestingly, I did do a search for clef notation and did not realize 
that the result of the search was a more recent version (not the one 
you pointed me at): 
http://lilypond.org/doc/v2.19/Documentation/notation/clef-styles - 
this newer version doesn't refer to the clef suffixes


That’s not a newer version of the same section, but another section of 
the Notation Reference. Each of the clefs referenced there may be 
arbitrarily transposed.


Best, Simon

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


Re: Is there an online / hosted version of Lilypond?

2017-01-31 Thread Mark Klenk
I confess I did not, and I just looked at it - yikes - that's a LOT of
stuff to read through.

My goal - at least right now - is not to become an expert but produce a
working arrangement (which I have been able to do). Thus, it will likely be
a while before I read/work through the tutorial.

Interestingly, I did do a search for clef notation and did not realize that
the result of the search was a more recent version (not the one you pointed
me at): http://lilypond.org/doc/v2.19/Documentation/notation/clef-styles -
this newer version doesn't refer to the clef suffixes - I'm assuming/hoping
those will still work when the dev version becomes stable.

Mark.

On Tue, Jan 31, 2017 at 1:01 PM, Simon Albrecht 
wrote:

> On 31.01.2017 18:54, Mark Klenk wrote:
>
>> I am just learning Lilypond for the first time, and it seems quite
>> powerful although not at all intuitive.
>>
>> Thankfully, lilybin.com  (v2.18.2) tells me *where*
>> my errors are although it requires some trial and error to fix.
>>
>
> Did you read the learning manual, and thoroughly? It’s an invaluable
> resource and should save you a lot of ‘trial and error’.
>
> Best, Simon
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [Frescobaldi] State of Frescobaldi development

2017-01-31 Thread Guy Stalnaker
My great pleasure. I just noticed that you've a donation button! I shall
use it soon to help support your work. Just today (!!) I had a question
about brackets for staves and rather than dig through the Lilypond
documentation, I simply used your Score Wizard to create the structure for
what I wanted and, Look!, there it was :-) You are a treasure!

Best regards,

GuyS

Guy Stalnaker
jimmyg...@gmail.com

On Mon, Jan 30, 2017 at 5:25 AM, Wilbert Berendsen  wrote:

> Op Sat, 28 Jan 2017 06:26:53 -0800 (PST)
> Guy Stalnaker  schreef:
>
> > I, for one, GREATLY appreciate what you do. I remember that I pay
> > nothing for Frescobaldi, this truly excellent application and that it
> > is developed evenings-on-weekends-when-time-permits basis. For
> > myself, were development stopped today, Frescobaldi meets my needs as
> > it is (though I don't understand why the Score Wizard does not work
> > on the MacOS El Capitan version neither in v18.x nor v19.x). I have
> > said it before and I do not hesitate saying it again--it is one of
> > the best applications I frequently use--well designed, well laid out,
> > and it does exactly what it says it does.
>
> Thank you for the nice words!
>
> I it certainly my intention to continue working on Frescobaldi, making
> it faster and more compelling. I myself work daily with Frescobaldi to
> earn some money, besides being a very occipied concert musician and
> family man with two very nice children ;-)
>
>
> Best!
> Wilbert
>
>
> --
> Wilbert Berendsen, musician
> ‣ mail: i...@wilbertberendsen.nl
> ‣ web: www.wilbertberendsen.nl
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Is there an online / hosted version of Lilypond?

2017-01-31 Thread Simon Albrecht

On 31.01.2017 18:54, Mark Klenk wrote:
I am just learning Lilypond for the first time, and it seems quite 
powerful although not at all intuitive.


Thankfully, lilybin.com  (v2.18.2) tells me 
*where* my errors are although it requires some trial and error to fix.


Did you read the learning manual, and thoroughly? It’s an invaluable 
resource and should save you a lot of ‘trial and error’.


Best, Simon

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


Re: Is there an online / hosted version of Lilypond?

2017-01-31 Thread Mark Klenk
Thank you everyone - very helpful.

On Tue, Jan 31, 2017 at 11:27 AM, David Kastrup  wrote:

> Mark Klenk  writes:
>
> > I am just learning Lilypond for the first time, and it seems quite
> powerful
> > although not at all intuitive.
> >
> > Thankfully, lilybin.com (v2.18.2) tells me *where* my errors are
> although
> > it requires some trial and error to fix.
> >
> > Having said that, it's really good - midi and pdf generation, and having
> > the spec be text is great (portability, future proofing).
> >
> > One problem I could not figure out is how to specify a suboctave treble
> > clef (the one with the little '8' below it). I tried \clef french, \clef
> > GG, to no avail.
> >
> > Any thoughts?
>
> When everything else fails, read the documentation.
>
>  displaying-pitches#clef>
>
> By adding _8 or ^8 to the clef name, the clef is transposed one octave
> down or up respectively, and _15 and ^15 transpose by two octaves. Other
> integers can be used if required. Clef names containing non-alphabetic
> characters must be enclosed in quotes
>
> \clef treble
> c2 c
> \clef "treble_8"
> c2 c
> \clef "bass^15"
> c2 c
> \clef "alto_2"
> c2 c
> \clef "G_8"
> c2 c
> \clef "F^5"
> c2 c
>
> --
> David Kastrup
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Is there an online / hosted version of Lilypond?

2017-01-31 Thread David Nalesnik
Hi Mark,

On Tue, Jan 31, 2017 at 11:54 AM, Mark Klenk  wrote:
> I am just learning Lilypond for the first time, and it seems quite powerful
> although not at all intuitive.
>
> Thankfully, lilybin.com (v2.18.2) tells me *where* my errors are although it
> requires some trial and error to fix.
>
> Having said that, it's really good - midi and pdf generation, and having the
> spec be text is great (portability, future proofing).
>
> One problem I could not figure out is how to specify a suboctave treble clef
> (the one with the little '8' below it). I tried \clef french, \clef GG, to
> no avail.

Try:

\clef "treble_8"

See http://lilypond.org/doc/v2.18/Documentation/notation/displaying-pitches#clef

Best,
David

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


Re: Is there an online / hosted version of Lilypond?

2017-01-31 Thread Mike Solomon
\clef "treble_8"
Happy ponding!~Mike


Sent from my Samsung Galaxy smartphone.
 Original message From: Mark Klenk  Date: 
1/31/17  6:54 PM  (GMT+01:00) To: Pierre Perol-Schneider 
 Cc: lilypond-user  
Subject: Re: Is there an online / hosted version of Lilypond? 
I am just learning Lilypond for the first time, and it seems quite powerful 
although not at all intuitive.
Thankfully, lilybin.com (v2.18.2) tells me *where* my errors are although it 
requires some trial and error to fix.
Having said that, it's really good - midi and pdf generation, and having the 
spec be text is great (portability, future proofing).
One problem I could not figure out is how to specify a suboctave treble clef 
(the one with the little '8' below it). I tried \clef french, \clef GG, to no 
avail.
Any thoughts?
Mark.
On Mon, Jan 30, 2017 at 12:12 PM, Mark Klenk  wrote:
super - thank you!
On Mon, Jan 30, 2017 at 12:05 PM, Pierre Perol-Schneider 
 wrote:
Hi Mark,
Here you go: http://lilybin.com/

Cheers,
Pierre

2017-01-30 19:53 GMT+01:00 Mark Klenk :
(disclaimer: this is my first post)
I am running on a Chromebook and thus don't have access to build/run Lilypond 
on a Mac/Windows/Linux machine.
I'm not looking for a full-fledged online IDE, just a way to submit a Lilypond 
spec/file and get the generated PDF.
Are there any hosted / online versions of Lilypond that do this?
Mark.

___

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: Is there an online / hosted version of Lilypond?

2017-01-31 Thread David Kastrup
Mark Klenk  writes:

> I am just learning Lilypond for the first time, and it seems quite powerful
> although not at all intuitive.
>
> Thankfully, lilybin.com (v2.18.2) tells me *where* my errors are although
> it requires some trial and error to fix.
>
> Having said that, it's really good - midi and pdf generation, and having
> the spec be text is great (portability, future proofing).
>
> One problem I could not figure out is how to specify a suboctave treble
> clef (the one with the little '8' below it). I tried \clef french, \clef
> GG, to no avail.
>
> Any thoughts?

When everything else fails, read the documentation.



By adding _8 or ^8 to the clef name, the clef is transposed one octave down or 
up respectively, and _15 and ^15 transpose by two octaves. Other integers can 
be used if required. Clef names containing non-alphabetic characters must be 
enclosed in quotes

\clef treble
c2 c
\clef "treble_8"
c2 c
\clef "bass^15"
c2 c
\clef "alto_2"
c2 c
\clef "G_8"
c2 c
\clef "F^5"
c2 c

-- 
David Kastrup

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


Re: Is there an online / hosted version of Lilypond?

2017-01-31 Thread Kieren MacMillan
Hi Mark,

> One problem I could not figure out is how to specify a suboctave treble clef 
> (the one with the little '8' below it). I tried \clef french, \clef GG, to no 
> avail.

\clef “treble_8”

Hope that 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: Is there an online / hosted version of Lilypond?

2017-01-31 Thread tisimst
Hi, Mark!

On Tue, Jan 31, 2017 at 11:20 AM, Mark Klenk [via Lilypond] <
ml-node+s1069038n199635...@n5.nabble.com> wrote:

> I am just learning Lilypond for the first time, and it seems quite
> powerful although not at all intuitive.
>

It will become intuitive.


> One problem I could not figure out is how to specify a suboctave treble
> clef (the one with the little '8' below it). I tried \clef french, \clef
> GG, to no avail.
>
> Any thoughts?
>

Have a look at:
http://lilypond.org/doc/v2.18/Documentation/notation/displaying-pitches#clef


HTH,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Is-there-an-online-hosted-version-of-Lilypond-tp199625p199636.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: Is there an online / hosted version of Lilypond?

2017-01-31 Thread Mark Klenk
I am just learning Lilypond for the first time, and it seems quite powerful
although not at all intuitive.

Thankfully, lilybin.com (v2.18.2) tells me *where* my errors are although
it requires some trial and error to fix.

Having said that, it's really good - midi and pdf generation, and having
the spec be text is great (portability, future proofing).

One problem I could not figure out is how to specify a suboctave treble
clef (the one with the little '8' below it). I tried \clef french, \clef
GG, to no avail.

Any thoughts?

Mark.

On Mon, Jan 30, 2017 at 12:12 PM, Mark Klenk  wrote:

> super - thank you!
>
> On Mon, Jan 30, 2017 at 12:05 PM, Pierre Perol-Schneider <
> pierre.schneider.pa...@gmail.com> wrote:
>
>> Hi Mark,
>> Here you go: http://lilybin.com/
>>
>> Cheers,
>> Pierre
>>
>> 2017-01-30 19:53 GMT+01:00 Mark Klenk :
>>
>>> (disclaimer: this is my first post)
>>>
>>> I am running on a Chromebook and thus don't have access to build/run
>>> Lilypond on a Mac/Windows/Linux machine.
>>>
>>> I'm not looking for a full-fledged online IDE, just a way to submit a
>>> Lilypond spec/file and get the generated PDF.
>>>
>>> Are there any hosted / online versions of Lilypond that do this?
>>>
>>> Mark.
>>>
>>> ___
>>> 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


Frescobaldi at GSoC? Call for support

2017-01-31 Thread Urs Liska
Hi all,

we decided to apply for this year's Google Summer of Code program with
Frescobaldi. We don't expect the chances to be accepted very high, but
it's probably worth the effort. It would give the chance to get more
GSoC slots for the wider LilyPond cause, so it's definitely a good thing.

In order to complete our application we need a few items *until Feb. 9
(next Thursday)*, and I would be very happy to see concrete support from
this community:

1)
It is an absolute requisite that we have a second "org admin".
Org admins are responsible for communication between the project and
Google. I think both Google and the project will hold them "accountable"
for that. In addition they promise to be available and reliably
responsive over the whole project period (i.e. from now on until late
October) (obviously that doesn't rule out any vacancies ...).
Furthermore they'll have to do some paperwork and possibly channel some
money, for example for reimbursing mentors going to the mentors' summit.

This would be an ideal task for someone interested in actively
supporting Frescobaldi/LilyPond development who doesn't feel capable of
doing actual programming. This is a completely administrative task.

I can't say how much work it will be, but given the (lack of) size of
the organization I can't imagine it's a lot.

2)
As part of the application we have to submit a number of potential
project mentors who have volunteered. Therefore it is crucial to gather
that information right now.

On https://github.com/wbsoft/frescobaldi/wiki/Google-Summer-of-Code I've
drafted a project idea's list similar to the one on lilypond.org. This
is very much open for discussion and extension.

So I ask anyone who can imagine mentoring a student for a Frescobaldi
project to have a look at that list, consider the options with the
proposed projects, feel free to suggest other projects you may prefer
mentoring.

>From last year's experience I know that it is difficult to get together
a team of potential mentors, so *please* take this call seriously and
consider joining the effort. Also from last year's experience I can say
that mentoring *does* take its time but it's definitely a worthwile
thing to do.

Best
Urs


-- 
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