Re: bookparts

2018-03-05 Thread David Kastrup
Flaming Hakama by Elaine writes: > This is a bit confusing since it seems that > you are saying 2 things: > > 1) If books have a scope of their own, [scopes of explicit books would > be] > separate from the scope in the implicit book. > > This makes sense,

Re: Simple midi player

2018-03-05 Thread Gianmaria Lari
On 6 March 2018 at 00:32, Hwaen Ch'uqi wrote: > Greetings All, > > I should like to piggy-back onto Nathan's question, though as an emacs > user. I have been using timidity, which is directly mentioned in the > documentation, but I too would like the ability to fast-forward

Re: Simple midi player

2018-03-05 Thread Martin Tarenskeen
On Tue, 6 Mar 2018, Martin Tarenskeen wrote: Thanks for the midish suggestion! P.S. midish is not in the Fedora repos, but building from sources is quite easy. MT ___ lilypond-user mailing list lilypond-user@gnu.org

Re: Simple midi player

2018-03-05 Thread Martin Tarenskeen
On Mon, 5 Mar 2018, Nathan Sprangers wrote: Thank you, this is a fantastic suggestion! For the benefit of others following this thread, on Debian at least, midish comes with a simple command line player, smfplay, which takes a starting measure number as a command line argument. Thanks for

Re: Simple midi player

2018-03-05 Thread Nathan Sprangers
Hi Ben, So far I've relied on the vim functionality that comes with lilypond (found in lilypond's 'vim' directory). I am simply more comfortable and feel more productive with vim's modal editing, navigation, visual block mode, buffers and windows, etc. It's also already configured to my

Re: Simple midi player

2018-03-05 Thread Ben
On 3/5/2018 6:22 PM, Nathan Sprangers wrote: Yes, Frescobaldi is very nice, but it's not vim. I find myself in situations often enough where vim would be faster/more convenient for me. I don't know if you're aware, but lilypond comes with vim support (highlighting, macros, etc). The beauty of

Re: Simple midi player

2018-03-05 Thread Nathan Sprangers
Thank you, this is a fantastic suggestion! For the benefit of others following this thread, on Debian at least, midish comes with a simple command line player, smfplay, which takes a starting measure number as a command line argument. Thanks, Nathan On Mon, Mar 5, 2018 at 7:27 PM, Guy Stalnaker

Re: Simple midi player

2018-03-05 Thread Hwaen Ch'uqi
Greetings Guy, Pretty cool! I am currently on ubuntu-16.04, but I shall have a look at those links. Thank you. Hwaen Ch'uqi On 3/5/18, Guy Stalnaker wrote: > http://www.midish.org > > From the manual (if you use *nix operating systems): > > 7.1 Moving within the song > >

Re: bookparts

2018-03-05 Thread Flaming Hakama by Elaine
> From: David Kastrup > To: Wols Lists > Subject: Re: bookparts > Wols Lists writes: > > > On 05/03/18 17:55, Kieren MacMillan wrote: > >> Hi Knut, > >> > >>> Because the definition of testing is invalid at that point of the main

Re: Simple midi player

2018-03-05 Thread Guy Stalnaker
http://www.midish.org >From the manual (if you use *nix operating systems): 7.1 Moving within the song The following selects the current position in the song to measure number 3: g 3 This will make ``p '' and ``r

Re: Simple midi player

2018-03-05 Thread Guy Stalnaker
There are a lot of tools on this page: http://linux-sound.org/midi.html Neither of you indicated the operating system you use. Regards Guy Stalnaker jimmyg...@gmail.com On Mon, Mar 5, 2018 at 5:32 PM, Hwaen Ch'uqi wrote: > Greetings All, > > I should like to piggy-back

Re: Simple midi player

2018-03-05 Thread Hwaen Ch'uqi
Greetings All, I should like to piggy-back onto Nathan's question, though as an emacs user. I have been using timidity, which is directly mentioned in the documentation, but I too would like the ability to fast-forward or rewind or to start at a particular place. Hwaen Ch'uqi On 3/5/18, Nathan

Re: Simple midi player

2018-03-05 Thread Nathan Sprangers
Yes, Frescobaldi is very nice, but it's not vim. I find myself in situations often enough where vim would be faster/more convenient for me. I don't know if you're aware, but lilypond comes with vim support (highlighting, macros, etc). The beauty of lilypond being text based is you can customize

Re: bookparts

2018-03-05 Thread Thomas Morley
2018-03-05 22:19 GMT+01:00 Kieren MacMillan : > Hi Harm, > >> Nobody ever complained about not working: >> \score { >> mus = { R1 } >> \new Staff \mus >> } > > Actually, I've complained several times about not being able to create > variables "inline" — the most

Re: bookparts

2018-03-05 Thread David Kastrup
Thomas Morley writes: > 2018-03-05 21:33 GMT+01:00 Wols Lists : >> On 05/03/18 17:55, Kieren MacMillan wrote: >>> Hi Knut, >>> Because the definition of testing is invalid at that point of the main source file. If tempTest.ly would

Re: bookparts

2018-03-05 Thread David Kastrup
Wols Lists writes: > On 05/03/18 17:55, Kieren MacMillan wrote: >> Hi Knut, >> >>> Because the definition of testing is invalid at that point of the main >>> source file. If tempTest.ly would contain e.g. a score or a \paper block >>> no error would occur. >> >> No,

Re: bookparts

2018-03-05 Thread Kieren MacMillan
Hi Harm, > Nobody ever complained about not working: > \score { > mus = { R1 } > \new Staff \mus > } Actually, I've complained several times about not being able to create variables "inline" — the most recent time being ,

Re: bookparts

2018-03-05 Thread Thomas Morley
2018-03-05 21:33 GMT+01:00 Wols Lists : > On 05/03/18 17:55, Kieren MacMillan wrote: >> Hi Knut, >> >>> Because the definition of testing is invalid at that point of the main >>> source file. If tempTest.ly would contain e.g. a score or a \paper block >>> no error would

Re: bookparts

2018-03-05 Thread Wols Lists
On 05/03/18 17:55, Kieren MacMillan wrote: > Hi Knut, > >> Because the definition of testing is invalid at that point of the main >> source file. If tempTest.ly would contain e.g. a score or a \paper block >> no error would occur. > > No, it still throws an error because you can't define a

Re: bookparts

2018-03-05 Thread Kieren MacMillan
> You can put included files where you want and they behave just as if > inserted at that position. The content does not magically become more > or less valid. Excellent. We agree! =) Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣

Re: bookparts

2018-03-05 Thread David Kastrup
Kieren MacMillan writes: > Hi David, > >> Sure. Included files behave just as if inserted at that position, and >> at that position no assignments are allowed. >> >> I don't get what is so hard to understand about that. > > Nothing. I was simply confused when you

Re: bookparts

2018-03-05 Thread Kieren MacMillan
Hi David, > Sure. Included files behave just as if inserted at that position, and > at that position no assignments are allowed. > > I don't get what is so hard to understand about that. Nothing. I was simply confused when you said you can include files — with no qualification about what the

Re: bookparts

2018-03-05 Thread Kieren MacMillan
Hi Knut, > Because the definition of testing is invalid at that point of the main > source file. If tempTest.ly would contain e.g. a score or a \paper block > no error would occur. No, it still throws an error because you can't define a variable inside a \bookpart (which is what \include-ing it

Re: bookparts

2018-03-05 Thread Kieren MacMillan
Hi David, > Variable definitions must be at top level. That was my point to Joram. Thanks, Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email: i...@kierenmacmillan.info ___ lilypond-user

Re: bookparts

2018-03-05 Thread Knut Petersen
Hi Joram et al! *What I want to achieve* is to have ~10 independent pieces and concatenate all of them into one book as well as printing everyone on its own. The separate pieces should have taglines etc. on the first/last page as usual. But the book should not repeat them for every piece. Each

Re: bookparts

2018-03-05 Thread David Kastrup
Kieren MacMillan writes: > Arg. typo in the comment line… should be: > > %%% tempTest.ly > > \version "2.19" > testing = { c''4 4 4 4 } > > > %%% file2.ly > > \version "2.19" > \bookpart { > \include "tempTest.ly" > \score { \testing } > } > > throws several

Re: bookparts

2018-03-05 Thread David Kastrup
Kieren MacMillan writes: > Hi David, > Q: Included files just behave as if the content was inserted at the same position? Q: Includes must be at top level? >>> >>> Yes x 2. >> >> Second yes is wrong. > > Even if the included file has variable

Re: bookparts

2018-03-05 Thread Knut Petersen
Hi Kieren! %%% tempTest.ly \version "2.19" testing = { c''4 4 4 4 } %%% file2.ly \version "2.19" \bookpart { \include "tempTest.ly" \score { \testing } } throws several errors. Because the definition of testing is invalid at that point of the main source file. If tempTest.ly would

Re: Replace ly:music elements in a Scheme function

2018-03-05 Thread David Kastrup
paolo prete writes: > Thanks David, > one last question: is it possible to _check_ if x is a rest or a note? > > (if... ) Sure. (if (music-is-of-type? x 'rest-event) ...) and 'note-event, respectively. There is also 'event-chord for multiple note events in a

Re: bookparts

2018-03-05 Thread Kieren MacMillan
e.g. %%% file1.ly \version "2.19.58" testing = { c''4 4 4 4 } %%% file2.ly \version "2.19" \bookpart { \include "tempTest.ly" \score { \testing } } throws several errors. Kieren. Kieren MacMillan, composer ‣ website: www.kierenmacmillan.info ‣ email:

Re: Replace ly:music elements in a Scheme function

2018-03-05 Thread paolo prete
Thanks David, one last question: is it possible to _check_ if x is a rest or a note? (if... ) I just made an easier implementation of the function, but I need this check... 2018-03-05 18:12 GMT+01:00 David Kastrup : > paolo prete writes: > > > I

Re: bookparts

2018-03-05 Thread Kieren MacMillan
Arg. typo in the comment line… should be: %%% tempTest.ly \version "2.19" testing = { c''4 4 4 4 } %%% file2.ly \version "2.19" \bookpart { \include "tempTest.ly" \score { \testing } } throws several errors. Kieren. Kieren MacMillan, composer ‣ website:

Re: bookparts

2018-03-05 Thread Kieren MacMillan
Hi David, >>> Q: Included files just behave as if the content was inserted at the same >>> position? >>> Q: Includes must be at top level? >> >> Yes x 2. > > Second yes is wrong. Even if the included file has variable definitions? Thanks, Kieren. Kieren

Re: bookparts

2018-03-05 Thread David Kastrup
Kieren MacMillan writes: >> Q: Included files just behave as if the content was inserted at the same >> position? >> Q: Includes must be at top level? > > Yes x 2. Second yes is wrong. -- David Kastrup ___

Re: Replace ly:music elements in a Scheme function

2018-03-05 Thread David Kastrup
paolo prete writes: > I see. > Then I ask if is it possible at least, by placing a simple instruction > inside lambda (x y) ( ...) while iterating, to: > > 1) replace x with a rest No. > 2) add a list of articulations (for example: "->", "\mp") to x Yes. Same

Re: bookparts

2018-03-05 Thread Kieren MacMillan
Oof… > for example, the first three songs of the Piano/Conductor Score of a musical > might fit nicely on 8 pages, so I wrap the three \scores in a \bookpart with > a \paper { page-count = 3 } instruction. Obviously, that should be page-count = 8. Sorry for the typo. K.

Re: bookparts

2018-03-05 Thread Kieren MacMillan
Hi Joram, > *What I want to achieve* is to have ~10 independent pieces and > concatenate all of them into one book as well as printing everyone on > its own. I do this all the time: my musicals each have 20+ independent "cues" (songs, instrumentals, etc.); the songs are always printed together

Re: Replace ly:music elements in a Scheme function

2018-03-05 Thread paolo prete
I see. Then I ask if is it possible at least, by placing a simple instruction inside lambda (x y) ( ...) while iterating, to: 1) replace x with a rest 2) add a list of articulations (for example: "->", "\mp") to x 2018-03-05 17:28 GMT+01:00 David Kastrup : > paolo prete

Re: Replace ly:music elements in a Scheme function

2018-03-05 Thread David Kastrup
paolo prete writes: > Hello David, > thanks for the snippet but I ask if it is possible to modify only the body > of my function, inside lambda (x y)( ... ) so to obtain the same result. > Something like: > > > > > fun = #(define-music-function (parser location

Re: Replace ly:music elements in a Scheme function

2018-03-05 Thread paolo prete
Hello David, thanks for the snippet but I ask if it is possible to modify only the body of my function, inside lambda (x y)( ... ) so to obtain the same result. Something like: fun = #(define-music-function (parser location music1 music2) (ly:music? ly:music?) (let (

Re: Replace ly:music elements in a Scheme function

2018-03-05 Thread David Kastrup
paolo prete writes: > in the snippet below I want to replace, while iterating two lists, the > elements of music1 with the elements of music2. > The code shows how to do that for pitches, but how can I replace the whole > element? (for example, a rest or a note with its

Replace ly:music elements in a Scheme function

2018-03-05 Thread paolo prete
Hello, in the snippet below I want to replace, while iterating two lists, the elements of music1 with the elements of music2. The code shows how to do that for pitches, but how can I replace the whole element? (for example, a rest or a note with its articulation) Thanks fun =

Re: Edition Engraver bug?

2018-03-05 Thread Jan-Peter Voigt
Thank you, David! Sometimes I need a pointer to the obvious ... * I will refactor the EE to also broadcast overrides. * Of course I can listen to Overrides (and SetProperty) and check if there are editionMods and music colliding - the reason they didn't show up when I listened to StreamEvent

Re: Edition Engraver bug?

2018-03-05 Thread David Kastrup
Jan-Peter Voigt writes: > Hi David, > > Am 05.03.2018 um 10:42 schrieb David Kastrup: >>> This is a failure that can happen whenever there are (implicit) >>> overrides in the music. I'll try to track/fetch overrides generated >>> outside the EE to avoid this issue. >> Any chance

Re: Edition Engraver bug?

2018-03-05 Thread Jan-Peter Voigt
Hi David, Am 05.03.2018 um 10:42 schrieb David Kastrup: This is a failure that can happen whenever there are (implicit) overrides in the music. I'll try to track/fetch overrides generated outside the EE to avoid this issue. Any chance to actually use the equivalent of "\once" here? It's

Re: Edition Engraver bug?

2018-03-05 Thread David Kastrup
Jan-Peter Voigt writes: > Hi Stefano, > > thanks again for bringing up this issue! Now I identified it an EE-bug > and I was able to reproduce the failure with: > -- > \version "2.19.80" > \include "oll-core/package.ily" > \loadPackage

Re: Simple midi player

2018-03-05 Thread Jacques Menu Muzhic
Hello Nathan, Frescobaldi/SimpleSynth provides this, what’s the advantage of using vim/a pdf reader? JM > Le 5 mars 2018 à 03:10, Nathan Sprangers a > écrit : > > Hello all, > > Can anyone suggest a simple midi player that can begin or cue playback from a >

Re: Edition Engraver bug?

2018-03-05 Thread Jan-Peter Voigt
Hi Stefano, thanks again for bringing up this issue! Now I identified it an EE-bug and I was able to reproduce the failure with: -- \version "2.19.80" \include "oll-core/package.ily" \loadPackage edition-engraver \consistToContexts #edition-engraver

Re: bookparts

2018-03-05 Thread Graeme Lee
Hi Noeck. On 5/03/2018 4:09 AM, Noeck wrote: Hi, I need some further insights in what a bookpart is. I've read the doc but it is very short on the issue: http://lilypond.org/doc/v2.19/Documentation/notation/multiple-scores-in-a-book My understanding from try and error is this (and I would be