How to glue markup with parameter passed note in define-music-function environment?

2010-02-03 Thread Paweł Różański
Hello,

I'm trying to define music function, a note with baroque descriptions.
So it boils down to achieving (simplified example):

 c'_\markup{s}

via:

fun = #(define-music-function
   (parser location note)
   (ly:music?)
 #{
 $note \mark \markup{ s }
#})

{
 \fun c'
}

---

\mark enters another object (I think) and s is misplaced. The question
is,  how to achieve

 $note_\markup{ s }

in define-music-function definition.. because $note_ can't be parsed correctly.

Thanks,
-- 
Paweł Różański


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: How to glue markup with parameter passed note indefine-music-function environment?

2010-02-03 Thread Paweł Różański
 how to achieve
 $note_\markup{ s }
  $note s1*0_\markup { s } 
Ahh of course :) a zero length skip

In my example it works better without  
I just s1*0_\markup { s} $note, so it enters markup in place, and add
note thereafter.

 For a more advanced function, you'll have to use scheme.
 See http://lsr.dsi.unimi.it/LSR/Item?id=82 for example.
No thanks, i have to code on daily basis... If I can achieve something
in lilypond
without closures -  I'll stick to it :) Example is nice, anyway.

Lilypond teach me music well - no need for such constructs.

I'll post my crude example another day.

Thank you very much
-- 
Paweł Różański


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user