Re: Scheme: get current beam-thickness

2020-01-25 Thread Aaron Hill
On 2020-01-25 12:31 pm, David Kastrup wrote: ...proper English... I fear that ship has long sailed w.r.t. software engineering. Developers are too committed to their neologisms and jargon for any authoritative dictionary to keep meaningful pace with the vernacular. On this topic, I recall

Re: Scheme: get current beam-thickness

2020-01-25 Thread David Kastrup
Aaron Hill writes: > On 2020-01-25 12:05 pm, David Kastrup wrote: >> Aaron Hill writes: >> >>> On 2020-01-25 11:40 am, David Kastrup wrote: Aaron Hill writes: > I am unaware of any simpler approach, as it is my understanding that > grobs do not persist the entire context within wh

Re: [Scheme coding] how to turn pitches into music

2020-01-25 Thread Aaron Hill
On 2020-01-25 11:15 am, Kieren MacMillan wrote: Hi again! Tried taking your advice, and building the custom context from scratch. The problem, of course, is that I don’t know all the engravers and what they do (a.k.a. why they’re needed)… and the documentation doesn’t exactly make everything cry

Re: Scheme: get current beam-thickness

2020-01-25 Thread Aaron Hill
On 2020-01-25 12:05 pm, David Kastrup wrote: Aaron Hill writes: On 2020-01-25 11:40 am, David Kastrup wrote: Aaron Hill writes: I am unaware of any simpler approach, as it is my understanding that grobs do not persist the entire context within which they were created. How would they then m

Re: Scheme: get current beam-thickness

2020-01-25 Thread David Kastrup
Aaron Hill writes: > On 2020-01-25 11:40 am, David Kastrup wrote: >> Aaron Hill writes: >>> I am unaware of any simpler approach, as it is my understanding that >>> grobs do not persist the entire context within which they were >>> created. >> How would they then make it to the page? Suicided g

Re: Scheme: get current beam-thickness

2020-01-25 Thread Aaron Hill
On 2020-01-25 11:40 am, David Kastrup wrote: Aaron Hill writes: I am unaware of any simpler approach, as it is my understanding that grobs do not persist the entire context within which they were created. How would they then make it to the page? Suicided grobs have their properties deleted p

Re: Scheme: get current beam-thickness

2020-01-25 Thread David Stephen Grant
Thank you for the responses - I'll look into Aaron's suggestion, which looks like it may do the trick.

Re: Scheme: get current beam-thickness

2020-01-25 Thread David Kastrup
Aaron Hill writes: > On 2020-01-25 10:39 am, David Stephen Grant wrote: >> I'm trying to create a custom flag stencil, and would like to get the >> current _beam_ thickness. As a first step, in the following example >> I would >> expect 0.5, then 1, to be printed to the console. Is there a way of

Re: Syntax highlighting

2020-01-25 Thread Craig Dabelstein
Hi all, This is what I've been doing to test, after cloning the repo. Instructions start halfway down this page: https://pygments.org/docs/lexerdevelopment/ You probably don;t even have to `make mapfiles` on this LilyPond branch. 1. Run make mapfiles 2. Run the lexer to convert th

Re: Scheme: get current beam-thickness

2020-01-25 Thread Aaron Hill
On 2020-01-25 10:39 am, David Stephen Grant wrote: I'm trying to create a custom flag stencil, and would like to get the current _beam_ thickness. As a first step, in the following example I would expect 0.5, then 1, to be printed to the console. Is there a way of doing this? With a little b

Re: Scheme: get current beam-thickness

2020-01-25 Thread Thomas Morley
Am Sa., 25. Jan. 2020 um 19:40 Uhr schrieb David Stephen Grant : > > I'm trying to create a custom flag stencil, and would like to get the current > _beam_ thickness. As a first step, in the following example I would expect > 0.5, then 1, to be printed to the console. Is there a way of doing this

Re: [Scheme coding] how to turn pitches into music

2020-01-25 Thread Kieren MacMillan
Hi again! Tried taking your advice, and building the custom context from scratch. The problem, of course, is that I don’t know all the engravers and what they do (a.k.a. why they’re needed)… and the documentation doesn’t exactly make everything crystal clear in that regard. So far, I have: %%

Re: [Scheme coding] how to turn pitches into music

2020-01-25 Thread Kieren MacMillan
Hi Aaron, > A "\\" seems to tame the console output with no other changes to the input: > %%% > \new RowReductionStaff { \new Voice << \test \\ \testier >> } > %%% > But that might just be sweeping things under the proverbial rug. Yes… and it changes the output (e.g., note how the noteheads aren

Scheme: get current beam-thickness

2020-01-25 Thread David Stephen Grant
I'm trying to create a custom flag stencil, and would like to get the current _beam_ thickness. As a first step, in the following example I would expect 0.5, then 1, to be printed to the console. Is there a way of doing this? Thanks, David \version "2.19.83" #(define (my-flag) (lambda (grob)

Re: [Scheme coding] how to turn pitches into music

2020-01-25 Thread Aaron Hill
On 2020-01-25 9:38 am, Kieren MacMillan wrote: %%% \new RowReductionStaff { \new Voice << \test \testier >> } %%% I’m hoping eventually to understand how to manipulate each element well enough to (e.g.) eliminate tied notes, have it "duration independent" (in the sense of not throwing "incom

Re: [Scheme coding] how to turn pitches into music

2020-01-25 Thread Kieren MacMillan
Hi Aaron, > I must confess I have no idea what row-reduction means in a musical context. In this case, I’m trying to take all the pitch events (i.e., a note played at a given moment) and represent them [without octave information] on a 6-line staff where the bottom line is the 0th element of th

Re: [Scheme coding] how to turn pitches into music

2020-01-25 Thread Aaron Hill
On 2020-01-25 8:45 am, Kieren MacMillan wrote: Very helpful! Here’s an example of what I’m currently playing around with: Neat, although I must confess I have no idea what row-reduction means in a musical context. Does it have any connection to the linear algebraic term? Regardless, it soun

Re: [Scheme coding] how to turn pitches into music

2020-01-25 Thread Kieren MacMillan
Hi Aaron, Thanks for the quick and helpful response! > Yes. The list-splicing forms of # and $ are #@ and $@, respectively. Ah! > In this case, we are using $@ to take the list of bare pitches and have the > parser handle them the same as if the user had simply entered them. Nice to know how

Re: [Scheme coding] how to turn pitches into music

2020-01-25 Thread Aaron Hill
On 2020-01-25 8:23 am, Aaron Hill wrote: On 2020-01-25 7:48 am, Kieren MacMillan wrote: Also: I notice that rests and skips are ignored: This is intuitive/understandable to me (given the functions we’re using); and I’m glad they’re just ignored [rather than causing errors]. But how can I turn e

Re: [Scheme coding] how to turn pitches into music

2020-01-25 Thread Aaron Hill
On 2020-01-25 7:48 am, Kieren MacMillan wrote: Perhaps the simplest option is to avoid ly:music and instead use splicing to let the parser do the heavy lifting: I assume you mean the "$@", which is the only thing in this code I don’t understand? Yes. The list-splicing forms of # and $ are #@

Re: [Scheme coding] how to turn pitches into music

2020-01-25 Thread Kieren MacMillan
Hi Aaron, > Perhaps the simplest option is to avoid ly:music and instead use splicing to > let the parser do the heavy lifting: I assume you mean the "$@", which is the only thing in this code I don’t understand? > Note that I refactored your nested maps into a single one. Will the performanc

Re: [Scheme coding] how to turn pitches into music

2020-01-25 Thread Aaron Hill
On 2020-01-25 7:29 am, Aaron Hill wrote: Perhaps the simplest option is to avoid ly:music and instead use splicing to let the parser do the heavy lifting: Avoid ly:make-music that is. -- Aaron Hill

Re: [Scheme coding] how to turn pitches into music

2020-01-25 Thread Aaron Hill
On 2020-01-25 6:42 am, Kieren MacMillan wrote: Having previously used #(display (map (lambda (n) (ly:make-pitch 0 n 0)) (map (lambda (l) (list-ref rowrefs l)) (map (lambda (m) (modulo m 12)) (map ly:pitch-semitones (music-pitches test)) I know that the scheme function is

[Scheme coding] how to turn pitches into music

2020-01-25 Thread Kieren MacMillan
Hi all, I’m continuing my Scheme learning journey. I can already feel the momentum building, so that’s a good thing! Despite it perhaps not being the optimal thing to build while learning Scheme, I’m continuing to work with this dodecaphonic manipulation work from my Salzburg presentation. Rig

Re: visualize-padding

2020-01-25 Thread Aaron Hill
On 2020-01-24 9:12 am, Paolo Prete wrote: I'm trying to implement the work-around you suggested. TupletNumber doesn't cause the discussed weird space. However, this weird space happens as soon as I access the stencil (or any property of it) of the TupletBracket grob Then, even if I get the brac

Re: key change at end of snippet

2020-01-25 Thread Werner LEMBERG
From: David Kastrup Subject: Re: key change at end of snippet Date: Sat, 25 Jan 2020 09:41:45 +0100 > \relative c' { > \key d \major > d1 > \key c \major > \grace s256 > } Thanks for the suggestion! I'm now trying Thomas's route. Werner

Re: Syntax highlighting

2020-01-25 Thread Henning Hraban Ramm
> Am 2020-01-25 um 10:45 schrieb Urs Liska : > > Am Samstag, den 25.01.2020, 17:48 +1000 schrieb Craig Dabelstein: >> Hi everyone, >> >> I've written a LilyPond syntax highlighter for pygments. It's not perfect >> but it's mostly working. Is there anyone out there who could test it? >> >> htt

Re: building v2.19.83 - can't find libguile.so.17

2020-01-25 Thread David Kastrup
Jonas Hahnfeld writes: > Am Samstag, den 25.01.2020, 10:37 +0100 schrieb David Kastrup: >> Jonas Hahnfeld < >> hah...@hahnjo.de >> > writes: >> >> > Am Samstag, den 25.01.2020, 10:21 +0100 schrieb David Kastrup: >> > > Jonas Hahnfeld < >> > > hah...@hahnjo.de >> > > >> > > > writes: >> > > > Am

Re: building v2.19.83 - can't find libguile.so.17

2020-01-25 Thread Jonas Hahnfeld
Am Samstag, den 25.01.2020, 10:37 +0100 schrieb David Kastrup: > Jonas Hahnfeld < > hah...@hahnjo.de > > writes: > > > Am Samstag, den 25.01.2020, 10:21 +0100 schrieb David Kastrup: > > > Jonas Hahnfeld < > > > hah...@hahnjo.de > > > > > > > writes: > > > > Am Freitag, den 24.01.2020, 16:45 -0500

Re: Syntax highlighting

2020-01-25 Thread Urs Liska
Am Samstag, den 25.01.2020, 17:48 +1000 schrieb Craig Dabelstein: > Hi everyone, > I've written a LilyPond syntax highlighter for pygments. It's not > perfect but it's mostly working. Is there anyone out there who could > test it? > > https://github.com/craigdab/pygments/tree/LilyPond Thank you f

Re: building v2.19.83 - can't find libguile.so.17

2020-01-25 Thread David Kastrup
Jonas Hahnfeld writes: > Am Samstag, den 25.01.2020, 10:21 +0100 schrieb David Kastrup: >> Jonas Hahnfeld < >> hah...@hahnjo.de >> > writes: >> >> > Am Freitag, den 24.01.2020, 16:45 -0500 schrieb Bric: >> > > i am building lilypond-2.19.83 on Ubuntu 18.04.2 LTS >> > > >> > > >> > > -pthread

Re: building v2.19.83 - can't find libguile.so.17

2020-01-25 Thread Jonas Hahnfeld
Am Samstag, den 25.01.2020, 10:21 +0100 schrieb David Kastrup: > Jonas Hahnfeld < > hah...@hahnjo.de > > writes: > > > Am Freitag, den 24.01.2020, 16:45 -0500 schrieb Bric: > > > i am building lilypond-2.19.83 on Ubuntu 18.04.2 LTS > > > > > > > > > -pthread -L/usr/local/lib -lguile -lltdl -lgm

Re: key change at end of snippet

2020-01-25 Thread Werner LEMBERG
>> I have to typeset a snippet that is an excerpt of a longer piece, >> and this snippet ends with a key change: >> >> \relative c' { >> \key d \major >> d1 >> \key c \major >> } >> >> However, the staff stops right before the key change, see attached >> image. What can I do to avo

Re: building v2.19.83 - can't find libguile.so.17

2020-01-25 Thread David Kastrup
Jonas Hahnfeld writes: > Am Freitag, den 24.01.2020, 16:45 -0500 schrieb Bric: >> i am building lilypond-2.19.83 on Ubuntu 18.04.2 LTS >> >> >> -pthread -L/usr/local/lib -lguile -lltdl -lgmp -lcrypt -lm -lltdl >> >> >> how can i make lilypond find the shared object? > > I just checked and U

Re: building v2.19.83 - can't find libguile.so.17

2020-01-25 Thread Jonas Hahnfeld
Am Freitag, den 24.01.2020, 16:45 -0500 schrieb Bric: > i am building lilypond-2.19.83 on Ubuntu 18.04.2 LTS > > > > had to build guile-1.8.8, after which lilypond ./configure was happy, and > finished (posted about my guile struggles a few days ago) > > > > But "make" errors out with: >

Re: building v2.19.83 - can't find libguile.so.17

2020-01-25 Thread Thomas Morley
Am Fr., 24. Jan. 2020 um 22:51 Uhr schrieb David Kastrup : > > Bric writes: > > > i am building lilypond-2.19.83 on Ubuntu 18.04.2 LTS > > > > had to build guile-1.8.8, after which lilypond ./configure was happy, and > > finished (posted > > about my guile struggles a few days ago) > > > > But "m

Re: key change at end of snippet

2020-01-25 Thread David Kastrup
Werner LEMBERG writes: > I have to typeset a snippet that is an excerpt of a longer piece, and > this snippet ends with a key change: > > \relative c' { > \key d \major > d1 > \key c \major > } > > However, the staff stops right before the key change, see attached > image. What c

Re: building v2.19.83 - can't find libguile.so.17

2020-01-25 Thread David Kastrup
Bric writes: > On January 24, 2020 at 4:50 PM David Kastrup < d...@gnu.org> wrote: > > Bric < b...@flight.us> writes: > > i am building lilypond-2.19.83 on Ubuntu 18.04.2 LTS > > had to build guile-1.8.8, after which lilypond ./configure was happy, and > finished > (posted > about my g

Re: key change at end of snippet

2020-01-25 Thread Thomas Morley
Am Sa., 25. Jan. 2020 um 06:31 Uhr schrieb Werner LEMBERG : > > > I have to typeset a snippet that is an excerpt of a longer piece, and > this snippet ends with a key change: > > \relative c' { > \key d \major > d1 > \key c \major > } > > However, the staff stops right before the ke