Re: Search inside LilyPond
On Tue, Apr 28, 2020 at 4:51 PM David Nalesnik wrote: > On Tue, Apr 28, 2020 at 3:46 PM David Nalesnik > wrote: > > > > On Mon, Apr 27, 2020 at 10:56 AM Adam Good > wrote: > > > > > > Freeman see below... > > > > > > On Sat, Apr 25, 2020 at 8:52 PM Freeman Gilmore < > freeman.gilm...@gmail.com> wrote: > > >> > > >> David: > > >> Sorry but i am lost, I do not understand how to get to the file were, > \makamGlyphs is define with this. > > >> Thank you, ƒg > > > > > > > > > On a Windows machine your path is (most likely)... > > > > > > C:\Program Files (x86)\LilyPond\usr\share\lilypond\current\ly > > > > > > > I would suggest using some sort of text editor. For example, > > Notepad++ is easy to install and use on a Windows machine. You can > > open the folder Adam is pointing you to with "folder as workspace" and > > easily search and navigate. I would suggest that you also open > > C:\Program Files (x86)\LilyPond\usr\share\lilypond\current\scm since > > there will no doubt be relevant materials there, too. > > > > Actually, duh (that's for me), do you have Frescobaldi installed? > Just use that to navigate to those folders we mentioned and look at > the code. > Would not leave home with out it, opens everything!I even use it in place of sandbox (never used). I have the windows search working now so i have what i need. Thank you, ƒg > > David >
Re: Search inside LilyPond
On Tue, Apr 28, 2020 at 4:46 PM David Nalesnik wrote: > On Mon, Apr 27, 2020 at 10:56 AM Adam Good wrote: > > > > Freeman see below... > > > > On Sat, Apr 25, 2020 at 8:52 PM Freeman Gilmore < > freeman.gilm...@gmail.com> wrote: > >> > >> David: > >> Sorry but i am lost, I do not understand how to get to the file were, > \makamGlyphs is define with this. > >> Thank you, ƒg > > > > > > On a Windows machine your path is (most likely)... > > > > C:\Program Files (x86)\LilyPond\usr\share\lilypond\current\ly > > > > I would suggest using some sort of text editor. For example, > Notepad++ is easy to install and use on a Windows machine. You can > open the folder Adam is pointing you to with "folder as workspace" and > easily search and navigate. I would suggest that you also open > C:\Program Files (x86)\LilyPond\usr\share\lilypond\current\scm since > there will no doubt be relevant materials there, too. > > The function you mention elsewhere (ly:parser-set-note-names) is > written in C++, and the source isn't going to be on your computer with > just an install. To examine and work with this code, I've got a > virtual machine set up. (See the Contributor's Manual for > instructions. This may be farther than you intend to go! You can do > plenty with just ly and scm files.) > Not ready for this yet. Thank you, ƒg > > Hope this is helpful, > > David >
Re: Search inside LilyPond
On Mon, Apr 27, 2020 at 10:56 AM Adam Good wrote: > > Freeman see below... > > On Sat, Apr 25, 2020 at 8:52 PM Freeman Gilmore > wrote: >> >> David: >> Sorry but i am lost, I do not understand how to get to the file were, >> \makamGlyphs is define with this. >> Thank you, ƒg > > > On a Windows machine your path is (most likely)... > > C:\Program Files (x86)\LilyPond\usr\share\lilypond\current\ly > I would suggest using some sort of text editor. For example, Notepad++ is easy to install and use on a Windows machine. You can open the folder Adam is pointing you to with "folder as workspace" and easily search and navigate. I would suggest that you also open C:\Program Files (x86)\LilyPond\usr\share\lilypond\current\scm since there will no doubt be relevant materials there, too. The function you mention elsewhere (ly:parser-set-note-names) is written in C++, and the source isn't going to be on your computer with just an install. To examine and work with this code, I've got a virtual machine set up. (See the Contributor's Manual for instructions. This may be farther than you intend to go! You can do plenty with just ly and scm files.) Hope this is helpful, David
Re: Search inside LilyPond
On Tue, Apr 28, 2020 at 3:46 PM David Nalesnik wrote: > > On Mon, Apr 27, 2020 at 10:56 AM Adam Good wrote: > > > > Freeman see below... > > > > On Sat, Apr 25, 2020 at 8:52 PM Freeman Gilmore > > wrote: > >> > >> David: > >> Sorry but i am lost, I do not understand how to get to the file were, > >> \makamGlyphs is define with this. > >> Thank you, ƒg > > > > > > On a Windows machine your path is (most likely)... > > > > C:\Program Files (x86)\LilyPond\usr\share\lilypond\current\ly > > > > I would suggest using some sort of text editor. For example, > Notepad++ is easy to install and use on a Windows machine. You can > open the folder Adam is pointing you to with "folder as workspace" and > easily search and navigate. I would suggest that you also open > C:\Program Files (x86)\LilyPond\usr\share\lilypond\current\scm since > there will no doubt be relevant materials there, too. > Actually, duh (that's for me), do you have Frescobaldi installed? Just use that to navigate to those folders we mentioned and look at the code. David
Re: Search inside LilyPond
Gottit sorry for the misunderstanding. If you haven't figured it out yet how about this: https://www.howtogeek.com/99406/how-to-search-for-text-inside-of-any-file-using-windows-search/ Pretty straight forward. Basically you'll add an ly extension to what files are searchable. Then head to the ly directory in File Explorer, in the search field, type in for example: content:scale ...and that will show you all of the files that have the word "scale" I'm not great with Windows so, very happy you brought this up! Hopefully I'm not further misunderstanding, please let me know. best, Adam
Re: Search inside LilyPond
On Mon, Apr 27, 2020 at 11:27 AM David Wright wrote: > On Sat 25 Apr 2020 at 21:11:50 (-0400), Freeman Gilmore wrote: > > On Sat, Apr 25, 2020 at 8:20 PM David Wright > wrote: > > > On Sat 25 Apr 2020 at 19:40:47 (-0400), Freeman Gilmore wrote: > > > > Is there an app that can search inside LilyPond? > > > > > > > > For example in makam.ly there is: \override > > > KeySignature.glyph-name-alist = > > > > \makamGlyphs . > > > > > > > > I would like to find where, \makamGlyphs, is defined. > > > > > > $ grep -r makamGlyphs lilypond-2.21.0-1.linux-64/ > […] > > > (best piped into less) or > > > > > > $ less $(grep -r -l 'makamGlyphs' lilypond-2.21.0-1.linux-64/) > > > $ > > > > > > which will open a set of matching files in less. > > > > > > > This is probably what i am looking for, i use windows. > > $ less $(grep -r -l 'makamGlyphs' lilypond-2.21.0-1.linux-64/) $ Help! > > I'm afraid that windows users will have to step up. I haven't used it > since the days of dos6.22 and windows 3.11 in about 1997. > > Cheers, > David. > David: I do not have hel-arabic,ly in my version of LilyPond at least by that name. Thank you, ƒg
Re: Search inside LilyPond
On Mon, Apr 27, 2020 at 11:56 AM Adam Good wrote: > Freeman see below... > > On Sat, Apr 25, 2020 at 8:52 PM Freeman Gilmore > wrote: > >> David: >> Sorry but i am lost, I do not understand how to get to the file were, >> \makamGlyphs >> is define with this. >> Thank you, ƒg >> > > On a Windows machine your path is (most likely)... > > C:\Program Files (x86)\LilyPond\usr\share\lilypond\current\ly > > to find makam.ly > > I would like to ask however, are you having an issue with makam.ly? Or > question? There's some work being done on Turkish makam support and things > have come a ways since. > > best, > Adam Good > Adam: I know were makam.ly is and that is the path I and I know about some work on a new makam.ly but thanks any way. I am trying to understand how it works. I have tried several things to see what happens and have learned a lot. But I am not able to find thing like makamGlyphs and the assq that calls makamPitchNames. Or even ly:parser-set-note-names. David Wright told me about $ grep -r makamGlyphs lilypond-2.21.0-1.linux-64/. But I do not know how to use it or if it works in windows. What I need is a way to search LilyPond to find the files that contain these type variables and procedures. Thank you, ƒg
Re: Search inside LilyPond
Freeman see below... On Sat, Apr 25, 2020 at 8:52 PM Freeman Gilmore wrote: > David: > Sorry but i am lost, I do not understand how to get to the file were, > \makamGlyphs > is define with this. > Thank you, ƒg > On a Windows machine your path is (most likely)... C:\Program Files (x86)\LilyPond\usr\share\lilypond\current\ly to find makam.ly I would like to ask however, are you having an issue with makam.ly? Or question? There's some work being done on Turkish makam support and things have come a ways since. best, Adam Good
Re: Search inside LilyPond
On Sat 25 Apr 2020 at 21:11:50 (-0400), Freeman Gilmore wrote: > On Sat, Apr 25, 2020 at 8:20 PM David Wright > wrote: > > On Sat 25 Apr 2020 at 19:40:47 (-0400), Freeman Gilmore wrote: > > > Is there an app that can search inside LilyPond? > > > > > > For example in makam.ly there is: \override > > KeySignature.glyph-name-alist = > > > \makamGlyphs . > > > > > > I would like to find where, \makamGlyphs, is defined. > > > > $ grep -r makamGlyphs lilypond-2.21.0-1.linux-64/ […] > > (best piped into less) or > > > > $ less $(grep -r -l 'makamGlyphs' lilypond-2.21.0-1.linux-64/) > > $ > > > > which will open a set of matching files in less. > > > > This is probably what i am looking for, i use windows. > $ less $(grep -r -l 'makamGlyphs' lilypond-2.21.0-1.linux-64/) $ Help! I'm afraid that windows users will have to step up. I haven't used it since the days of dos6.22 and windows 3.11 in about 1997. Cheers, David. \version "2.19.22" %{ Define 1/9 alterations. %} #(define-public EKSIK-IKI 5/18) #(define-public EKSIK-UC 6/18) #(define-public KOMA 1/9) #(define-public BAKIYE 4/9) #(define-public KUCUK 5/9) #(define-public BUYUKMUCENNEB 8/9) %{ Define pitch names %} makamPitchNames = #`( (c . ,(ly:make-pitch -1 0 NATURAL)) (d . ,(ly:make-pitch -1 1 NATURAL)) (e . ,(ly:make-pitch -1 2 NATURAL)) (f . ,(ly:make-pitch -1 3 NATURAL)) (g . ,(ly:make-pitch -1 4 NATURAL)) (a . ,(ly:make-pitch -1 5 NATURAL)) (b . ,(ly:make-pitch -1 6 NATURAL)) (cc . ,(ly:make-pitch -1 0 KOMA)) (dc . ,(ly:make-pitch -1 1 KOMA)) (ec . ,(ly:make-pitch -1 2 KOMA)) (fc . ,(ly:make-pitch -1 3 KOMA)) (gc . ,(ly:make-pitch -1 4 KOMA)) (ac . ,(ly:make-pitch -1 5 KOMA)) (bc . ,(ly:make-pitch -1 6 KOMA)) (cb . ,(ly:make-pitch -1 0 BAKIYE)) (db . ,(ly:make-pitch -1 1 BAKIYE)) (eb . ,(ly:make-pitch -1 2 BAKIYE)) (fb . ,(ly:make-pitch -1 3 BAKIYE)) (gb . ,(ly:make-pitch -1 4 BAKIYE)) (ab . ,(ly:make-pitch -1 5 BAKIYE)) (bb . ,(ly:make-pitch -1 6 BAKIYE)) (ck . ,(ly:make-pitch -1 0 KUCUK)) (dk . ,(ly:make-pitch -1 1 KUCUK)) (ek . ,(ly:make-pitch -1 2 KUCUK)) (fk . ,(ly:make-pitch -1 3 KUCUK)) (gk . ,(ly:make-pitch -1 4 KUCUK)) (ak . ,(ly:make-pitch -1 5 KUCUK)) (bk . ,(ly:make-pitch -1 6 KUCUK)) (cbm . ,(ly:make-pitch -1 0 BUYUKMUCENNEB)) (dbm . ,(ly:make-pitch -1 1 BUYUKMUCENNEB)) (ebm . ,(ly:make-pitch -1 2 BUYUKMUCENNEB)) (fbm . ,(ly:make-pitch -1 3 BUYUKMUCENNEB)) (gbm . ,(ly:make-pitch -1 4 BUYUKMUCENNEB)) (abm . ,(ly:make-pitch -1 5 BUYUKMUCENNEB)) (bbm . ,(ly:make-pitch -1 6 BUYUKMUCENNEB)) ;; f for flat. (cfc . ,(ly:make-pitch -1 0 (- KOMA))) (dfc . ,(ly:make-pitch -1 1 (- KOMA))) (efc . ,(ly:make-pitch -1 2 (- KOMA))) (ffc . ,(ly:make-pitch -1 3 (- KOMA))) (gfc . ,(ly:make-pitch -1 4 (- KOMA))) (afc . ,(ly:make-pitch -1 5 (- KOMA))) (bfc . ,(ly:make-pitch -1 6 (- KOMA))) (cfb . ,(ly:make-pitch -1 0 (- BAKIYE))) (dfb . ,(ly:make-pitch -1 1 (- BAKIYE))) (efb . ,(ly:make-pitch -1 2 (- BAKIYE))) (ffb . ,(ly:make-pitch -1 3 (- BAKIYE))) (gfb . ,(ly:make-pitch -1 4 (- BAKIYE))) (afb . ,(ly:make-pitch -1 5 (- BAKIYE))) (bfb . ,(ly:make-pitch -1 6 (- BAKIYE))) (cfk . ,(ly:make-pitch -1 0 (- KUCUK))) (dfk . ,(ly:make-pitch -1 1 (- KUCUK))) (efk . ,(ly:make-pitch -1 2 (- KUCUK))) (ffk . ,(ly:make-pitch -1 3 (- KUCUK))) (gfk . ,(ly:make-pitch -1 4 (- KUCUK))) (afk . ,(ly:make-pitch -1 5 (- KUCUK))) (bfk . ,(ly:make-pitch -1 6 (- KUCUK))) (cfi . ,(ly:make-pitch -1 0 (- EKSIK-IKI))) (dfi . ,(ly:make-pitch -1 1 (- EKSIK-IKI))) (efi . ,(ly:make-pitch -1 2 (- EKSIK-IKI))) (ffi . ,(ly:make-pitch -1 3 (- EKSIK-IKI))) (gfi . ,(ly:make-pitch -1 4 (- EKSIK-IKI))) (afi . ,(ly:make-pitch -1 5 (- EKSIK-IKI))) (bfi . ,(ly:make-pitch -1 6 (- EKSIK-IKI))) (cfu . ,(ly:make-pitch -1 0 (- EKSIK-UC))) (dfu . ,(ly:make-pitch -1 1 (- EKSIK-UC))) (efu . ,(ly:make-pitch -1 2 (- EKSIK-UC))) (ffu . ,(ly:make-pitch -1 3 (- EKSIK-UC))) (gfu . ,(ly:make-pitch -1 4 (- EKSIK-UC))) (afu . ,(ly:make-pitch -1 5 (- EKSIK-UC))) (bfu . ,(ly:make-pitch -1 6 (- EKSIK-UC))) (cfbm . ,(ly:make-pitch -1 0 (- BUYUKMUCENNEB))) (dfbm . ,(ly:make-pitch -1 1 (- BUYUKMUCENNEB))) (efbm . ,(ly:make-pitch -1 2 (- BUYUKMUCENNEB))) (ffbm . ,(ly:make-pitch -1 3 (- BUYUKMUCENNEB))) (gfbm . ,(ly:make-pitch -1 4 (- BUYUKMUCENNEB))) (afbm . ,(ly:make-pitch -1 5 (- BUYUKMUCENNEB))) (bfbm . ,(ly:make-pitch -1 6 (- BUYUKMUCENNEB))) ) %% set pitch names. pitchnames = \makamPitchNames #(ly:parser-set-note-names makamPitchNames) #(define eksikMirroredSlashedFlat (if (defined? 'eksikMirroredSlashedFlat) eksikMirroredSlashedFlat #f)) makamGlyphs = #`((1 . "accidentals.doublesharp") (8/9 . "accidentals.sharp.slashslashslash.stemstem") (5/9 . "acci
Re: Search inside LilyPond
On Sat, Apr 25, 2020 at 8:20 PM David Wright wrote: > On Sat 25 Apr 2020 at 19:40:47 (-0400), Freeman Gilmore wrote: > > Is there an app that can search inside LilyPond? > > > > For example in makam.ly there is: \override > KeySignature.glyph-name-alist = > > \makamGlyphs . > > > > I would like to find where, \makamGlyphs, is defined. > > $ grep -r makamGlyphs lilypond-2.21.0-1.linux-64/ > lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/makam.ly:makamGlyphs > = #`((1 . "accidentals.doublesharp") > lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/makam.ly: > \override KeySignature.glyph-name-alist = \makamGlyphs > lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/makam.ly: > \override Accidental.glyph-name-alist = \makamGlyphs > lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/makam.ly: > \override AccidentalCautionary.glyph-name-alist = \makamGlyphs > lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/makam.ly: > \override TrillPitchAccidental.glyph-name-alist = \makamGlyphs > lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/makam.ly: > \override AmbitusAccidental.glyph-name-alist = \makamGlyphs > > lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/hel-arabic.ly:HelmakamGlyphs > = #'( > lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/ > hel-arabic.ly:\override KeySignature #'glyph-name-alist = > \HelmakamGlyphs > lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/ > hel-arabic.ly:\override Accidental #'glyph-name-alist = > \HelmakamGlyphs > lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/ > hel-arabic.ly:\override AccidentalCautionary #'glyph-name-alist = > \HelmakamGlyphs > lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/ > hel-arabic.ly:\override TrillPitchAccidental #'glyph-name-alist = > \HelmakamGlyphs > lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/ > hel-arabic.ly:\override AmbitusAccidental #'glyph-name-alist = > \HelmakamGlyphs > $ > > (best piped into less) or > > $ less $(grep -r -l 'makamGlyphs' lilypond-2.21.0-1.linux-64/) > $ > > which will open a set of matching files in less. > This is probably what i am looking for, i use windows. $ less $(grep -r -l 'makamGlyphs' lilypond-2.21.0-1.linux-64/) $ Help! Thank you, ƒg > > Cheers, > David. >
Re: Search inside LilyPond
On Sat, Apr 25, 2020 at 8:09 PM David Nalesnik wrote: > On Sat, Apr 25, 2020 at 6:41 PM Freeman Gilmore > wrote: > > > > Is there an app that can search inside LilyPond? > > > > For example in makam.ly there is: \override > KeySignature.glyph-name-alist = \makamGlyphs . > > > > I would like to find where, \makamGlyphs, is defined. > > > > > > Thank you, ƒg > > > > You can grep 'makamGlyphs' here: > http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=summary > > That takes me to > > http://git.savannah.gnu.org/gitweb/?p=lilypond.git=search=HEAD=grep=makamGlyphs > > HTH. > David > David: Sorry but i am lost, I do not understand how to get to the file were, \makamGlyphs is define with this. Thank you, ƒg
Re: Search inside LilyPond
On Sat 25 Apr 2020 at 19:40:47 (-0400), Freeman Gilmore wrote: > Is there an app that can search inside LilyPond? > > For example in makam.ly there is: \override KeySignature.glyph-name-alist = > \makamGlyphs . > > I would like to find where, \makamGlyphs, is defined. $ grep -r makamGlyphs lilypond-2.21.0-1.linux-64/ lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/makam.ly:makamGlyphs = #`((1 . "accidentals.doublesharp") lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/makam.ly: \override KeySignature.glyph-name-alist = \makamGlyphs lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/makam.ly: \override Accidental.glyph-name-alist = \makamGlyphs lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/makam.ly: \override AccidentalCautionary.glyph-name-alist = \makamGlyphs lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/makam.ly: \override TrillPitchAccidental.glyph-name-alist = \makamGlyphs lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/makam.ly: \override AmbitusAccidental.glyph-name-alist = \makamGlyphs lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/hel-arabic.ly:HelmakamGlyphs = #'( lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/hel-arabic.ly: \override KeySignature #'glyph-name-alist = \HelmakamGlyphs lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/hel-arabic.ly: \override Accidental #'glyph-name-alist = \HelmakamGlyphs lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/hel-arabic.ly: \override AccidentalCautionary #'glyph-name-alist = \HelmakamGlyphs lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/hel-arabic.ly: \override TrillPitchAccidental #'glyph-name-alist = \HelmakamGlyphs lilypond-2.21.0-1.linux-64/lilypond/usr/share/lilypond/current/ly/hel-arabic.ly: \override AmbitusAccidental #'glyph-name-alist = \HelmakamGlyphs $ (best piped into less) or $ less $(grep -r -l 'makamGlyphs' lilypond-2.21.0-1.linux-64/) $ which will open a set of matching files in less. Cheers, David.
Re: Search inside LilyPond
On Sat, Apr 25, 2020 at 6:41 PM Freeman Gilmore wrote: > > Is there an app that can search inside LilyPond? > > For example in makam.ly there is: \override KeySignature.glyph-name-alist = > \makamGlyphs . > > I would like to find where, \makamGlyphs, is defined. > > > Thank you, ƒg > You can grep 'makamGlyphs' here: http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=summary That takes me to http://git.savannah.gnu.org/gitweb/?p=lilypond.git=search=HEAD=grep=makamGlyphs HTH. David
Search inside LilyPond
Is there an app that can search inside LilyPond? For example in makam.ly there is: \override KeySignature.glyph-name-alist = \makamGlyphs . I would like to find where, \makamGlyphs, is defined. Thank you, ƒg