-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scheme modules in snippets #33
Comments
What does this use of scheme modules mean/imply/require? Or are you asking whether it is acceptable to add these modules too into our repo? Then I'd say of course that's OK. And the standard headers should be easily transferable to Scheme comments, isn't it? |
Am 20.03.2014 15:00, schrieb Urs Liska:
So the "edition-engraver.ily" is dependant on "lalily-modules.ly",
If you say that dependency is not acceptable, I will revert it. But I |
OK, I have looked (somehow) at that folder, and I have one problem with that approach (but I think we'll find a solution that is working for everybody). the snippets repository is intended to be used this way: the root directory should be added to LilyPond's include path and then snippets should be included with their relative path. This will make it quite explicit in the main .ly file:
However, in your case it would be: Actually it would be very good if you could break that dependency, presumably by adopting this root-directory approach. when I replace your relative include with I don't know how that the lalily folder may well stay where it is, although I'd even say it is some kind of "library", and maybe we should create a library folder, where lalily and other included stuff can be placed. But I'd need some feedback from others... |
On 20.03.2014 15:44, Urs Liska wrote:
|
Are you not content with requiring the user to have the root directory in the include path anyway? I really favor having this snippets repo used this way. That is, different from LSR where you take stuff out and insert it wherever you like.
If you don't mind create a folder |
On 20.03.2014 17:43, Urs Liska wrote:
|
I still don't see through all this, but I think this is appropriate now. |
2014-03-20 17:43 GMT+01:00 Urs Liska notifications@github.com:
Um, isn't the snippets repo a library itself? I mean, does it make sense to Unfortunately i don't really have any definite opinion on how this should |
Anyway, don't worry about it too much. What's important is to have a |
Am 21.03.2014 00:02, schrieb Janek Warchoł:
|
ok. As i said, do whatever is most convenient for the developer(s). |
good morning, Am 21.03.2014 00:02, schrieb Janek Warchoł:
hm, you're absolutely right ... perhaps we should call it "frameworks"? One initial idea was to collect snippets in OLL-snippets, which does not I propose a folder "scheme" with a file modules.ily to append %load-path One word on modules: A scheme-module is initialized once if (use-modules One more word ;) I use this with the edition-engraver, to store the |
I'm sorry, i really don't have an opinion on this :( |
Somehow it's like David K's patches which aren't properly reviewed because everybody feels overwhelmed... Trying to "make" something like an opinion: You are right that this repository has changed its intention from a stashing area for non-LSR-compatible snippets to that of a general-purpose library. Actually this is much more what we originally had in mind with "openLilyLib". [Maybe we should consider changing name, also to avoid confusion with the official LSR?] In general the idea of using Scheme modules (as you describe them) seems to make sense to me, although I don't have a clue about it yet. If inclusion in our repo could lead to a better understanding of this aspect it would be a good thing too. What would your "module-inclusion file in oll-root" actually do or provide? Would this be a requirement to be able to load modules that are located anywhere in the repo? Could you please give a usage example? Regarding the location of an .ily and a .scm file for the edition engraver (and future modules as well) I'd prefer having them in one folder, accepting the need for a longer include statement. I'm not completely sure what your suggested "scheme" folder and its modules.ily would actually contain. You think of a storage location for modules (and other Scheme code) that any other snippets may depend on? But in general I can only second Janek's comment: In the end we will follow your judgment. |
I merged the state of the edition-engraver to master. In branch lalily-module I introduced a few more scheme-modules and ---tadatata--- the template-engine. This is of course a work in progress, but the example should compile! To provide those functions, I introduced some more scheme-code in folder scheme-lib. There is one file "modules.ily" to append the snippets-root-folder to %load-path, so after including that file, you can use load-from-path and use-modules to load scheme-code from oll-snippets. |
Hi, sorry for the delayed answer - i was ill :( 2014-03-25 13:29 GMT+01:00 jpvoigt notifications@github.com:
Good.
It does - and looks very nice! Now I am struggling with: where to place meta-data and documentation ...
Hmm. I suggest to have separate folders for:
Each of these folders would contain a README.md with appropriate
Hope this helps, |
I closed the issue to move the edition-engraver ... it is moved now.
But I placed some essential functions inside the lalily folder in scheme modules. This way I can create module-local singletons and IMO it allows cleaner example code.
And the code is a little bit better prepared for inclusion in standard lilypond ...
Is this acceptable?
And how can we add the standard oll snippet headers?
The text was updated successfully, but these errors were encountered: