Re: [bounty] context generating function - how to get context def from its name?

2014-07-26 Thread Janek Warchoł
Hi David & all, 2014-07-25 21:34 GMT+02:00 David Kastrup : > > Janek Warchoł writes: >> 2) i didn't manage to get midi stuff done inside the same function as >> the layout stuff - but i think that i'll be able to solve that if i >> have a solution to 1). > > You basically need to collect just the

Re: [bounty] context generating function - how to get context def from its name?

2014-07-25 Thread Janek Warchoł
2014-07-25 21:34 GMT+02:00 David Kastrup : > Janek Warchoł writes: > >> newInstrument = >> #(define-scheme-function >> (parser location instrName parentName settings)(string? ly:context-mod?) >> ;; ... >> #{ >> \layout { >> \context { > $(module-ref (current-modul

Re: [bounty] context generating function - how to get context def from its name?

2014-07-25 Thread David Kastrup
Janek Warchoł writes: > newInstrument = > #(define-scheme-function > (parser location instrName parentName settings)(string? ly:context-mod?) > ;; ... > #{ > \layout { > \context { $(module-ref (current-module) (string->symbol parentName)) > ;; create "

Re: [bounty] context generating function - how to get context def from its name?

2014-07-25 Thread Janek Warchoł
And the missing attachment. 2014-07-25 20:03 GMT+02:00 Janek Warchoł : > Hi all, > > i got stuck when working on a function that creates custom context > definitions. The idea is to have a function \newInstrument that would > take a list of settings and create new customized xxxStaff and > xxxVoi

[bounty] context generating function - how to get context def from its name?

2014-07-25 Thread Janek Warchoł
Hi all, i got stuck when working on a function that creates custom context definitions. The idea is to have a function \newInstrument that would take a list of settings and create new customized xxxStaff and xxxVoice contexts - something like this: newInstrument = #(define-scheme-function (par