Re: [OLL] Setting up options for local package

2019-04-05 Thread Pedro Pessoa
his can be fixed rather soon (it shouldn't be that hard but I > currently have to restrain myself from diving into such issues). > > Urs > Am 30.03.19 um 23:45 schrieb Pedro Pessoa: > > Hello, > I'm trying to use OLL infrastructure to organize my local toolset. I'm &

Re: [OLL] Setting up options for local package

2019-03-30 Thread Pedro Pessoa
nda of instructions on how to structure a package I could check myself if I followed the right track. -- Pessoa On Sat, Mar 30, 2019 at 9:17 PM Urs Liska wrote: > Hi Pedro, > > Am 30. März 2019 23:45:07 MEZ schrieb Pedro Pessoa : > >Hello, > >I'm trying to use OLL infr

Re: Define variable only if it doesn't exist / is unbound

2019-03-30 Thread Pedro Pessoa
Yes, precisely. I'm sticking with the following for now: #(if (not (defined? 'foo)) (ly:parser-define! 'foo 47)) ----- Cheers, -- Pedro Pessoa -- Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html ___ lilypond-user mailin

[OLL] Setting up options for local package

2019-03-30 Thread Pedro Pessoa
A" #(display (getOption '(local option))) %%% end %%% file: whatever/project.ly \include "oll-core/package.ily" \registerOption local.option "B" \loadPackage local %%% end -- Outputs: "B" So the question is: how to properly handle this? Cheers, --

Re: Define variable only if it doesn't exist / is unbound

2019-03-28 Thread Pedro Pessoa
Thanks, this is it. -- Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Define variable only if it doesn't exist / is unbound

2019-03-28 Thread Pedro Pessoa
Hello, I want to init a variable only if it isn't bound. This seems a simple matter, I was surpised I couldn't do it. The thing is that it throws an 'unbound variable error' with anything I try. I imagined something like: %%% pseudo #(define var (not (is-bound? var) 0)

Re: Script for note/rest refactor? (with parsing tools)

2019-03-01 Thread Pedro Pessoa
Thanks for the replies. I've heard of abjad, but wans't remebering about it. This particular extension seems to deal with the phase of generating the code. I think it wont't help me in this case. The part of generating the isorhythm is working. It is like simple translation from a parsed text (a sy

Script for note/rest refactor? (with parsing tools)

2019-02-26 Thread Pedro Pessoa
Hello list, I'm working in a python script to generate lilypond code which generates an almost isorhythmic stream of notes/rests. The sustain of the notes isn't important. For better readability, I wanna refactor these values to fit the beat's timeunit. Where time unit = 4 : 1) des16 r16 r16 r16 -

Re: Partcombine with drums?

2019-02-17 Thread Pedro Pessoa
Thanks, this is more close to what I want. I noticed the actual \partcombine doesn't behaves as I want for this case (never split voices). But still it doesn't work: when the music is different, using this method will rise errors and don't behave as desired. I see two ways of building a solution, r

Partcombine with drums?

2019-02-17 Thread Pedro Pessoa
Hello! Is there a known way of using partcombine with drums? I'm not familiar with it, but I tried to do it as in the notation reference. I found nothing about this limitation in neither manuals, mailing archive or LSR. Thanks! %% Snippet Begin \version "2.19.82" drumA = \drummode { sn8 8 8 8 } d

Re: aligning variables with upbeats

2019-02-12 Thread Pedro Pessoa
Hello John, I took this task as a way of learning a bit more about moments and durations (and also, I wanted to achieve this a while ago). It is certainly not a very robust or elegant solution, but seems to work for this particular case. %% \makeRestOfLenght \mus "rest/skip" upbeat %% \version "2

Use String to reference Variable

2018-12-03 Thread Pedro Pessoa
Hello! I want a function that takes a string as arg an from that produces a valid variable reference, as follows: %%% pseudo Nabc={a1 d e f} Nxyz={b1 e a d} fun= #(define-music-function (x)(string?) #{ << #(concat x "abc") \\ #(concat x "xyz") >> #}) \fun "N

Re: Spacing issue after Mark and TextScript

2018-11-21 Thread Pedro Pessoa
Hey David. Not sure if I got how you want it to be, but - with the \nobreak uncommented) - if you add tree more m's to the TextScript, it produces something which looks right. Don't know why. Pessoa mailing_Spacing_issue_after_Mark_and_TextScript.png

Re: Edition Engraver in 2.19

2018-11-19 Thread Pedro Pessoa
I was quite happy when I found about https://openlilylib.org/, then I realized it didn't actually had content in it. The repo have the information needed to get OLL and things running, but I think it would be worth putting some "hello world"s on the website. It would be especially nice for newcomer

vibesDamper - auto position "X" glyph next to note

2018-10-30 Thread Pedro Pessoa
Hello, With more trial and error than wisdom, I've managed to create a function to attach an X to a note and tweak its position % \vibesDamper #'(0 . 0) note %. This X between notes is a dampening notation for vibraphone. I'm really happy with it, since I shall use it a lot. One improvment I can t

Re: Function or command to omit only certain accidentals of a chord?

2018-10-28 Thread Pedro Pessoa
Hello Jan! I'm just testing out EE and I've come across the need to adress a noteHead tweak in a note inside a chord. Looking for a solution, I came to this post. Is this implemented? -- Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html __

Re: Lilypond-Book error (can't find the "screech-and-boink.ly" snippet)

2018-10-09 Thread Pedro Pessoa
ps: I am on a Windows 6.1.7601 -- Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Lilypond-Book error (can't find the "screech-and-boink.ly" snippet)

2018-10-09 Thread Pedro Pessoa
lable *** I looked up and this screech-and-boink.ly is just a snippet that happens to show on the learning docs. It doesn't look like and essential file at all. Also, the lilypond-book command points to a website to report bugs, but it is broken. http://post.gmane.org/post.php?group=gmane.comp.

"Generate PDF" works, but cmd doesn't

2018-09-24 Thread Pedro Pessoa
Hello! I want to generate pdf from lilypond files via cmd, so I can run it with AutoHotKey. My test file works on Frescobaldi and with the Generate PDF context menu. I'm using Windows 7 and running cmd with Admin privileges. The ">lilypond" command returns the version and help context. When I execu