[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: custom drumstyle-tables with custom noteheads?
From: |
Tao Cumplido |
Subject: |
Re: custom drumstyle-tables with custom noteheads? |
Date: |
Thu, 19 Feb 2009 00:13:05 +0100 |
-------- Original-Nachricht --------
> Datum: Mon, 9 Feb 2009 14:27:28 -0700
> Von: "Carl D. Sorensen" <address@hidden>
> An: Tao Cumplido <address@hidden>, "address@hidden" <address@hidden>
> Betreff: Re: custom drumstyle-tables with custom noteheads?
Uh, it's me again.
Actually I made it to write a workaround that does the job. Better late than
never. ^^
I still have to prepare a presentable sample before I post the result here
though.
> Yes, the .cc files are very hard to understand. But after you look at a
> bunch of them, it gets better....
>
> You can see where the styles are actually used to get glyph names in
> scm/output-lib.scm.
Well, instead of medling further with the installation files I wrote now a
workaround function that actually ignores the 'style property of the grob
completely and just checks on the drumnote-name, i.e. bassdrum and overrides
the 'stencil property with the function from the other thread to create custom
stencils which produce different results depending on the duration-log.
I think that's actually more or less the same you had in mind below.
> Maybe, but this seems like too much of a hack to me. But it's possible, I
> suppose. But if I were going to do it in this fashion, I think I'd add a
> new style to the drumStyleTable and then try to write a new print function
> that checks the style, and if it's parallelogram, use the parallelogram
> print routine, otherwise, use the regular notehead print routine.
>
> Now that I think about it, this approach is a promising way to do this
> without needing to add any font glyphs (which I think would be needed to
> define a new style). You already have a template for how to do this in
> your
> parallelogram function that Neil wrote. It checks the grob, and if its
> duration is 2, it writes the parallelogram. Otherwise, it calls the
> regular
> notehead stuff.
> But I think the output will likely be better if you define new glyphs in
> the
> font and define a new style.
Eventually it'd definitely be easier to use and I think with some more
tinkering I might even be able to do it but right now it works like I want it
to and I prefer not to play with the installation files.
Regards,
Tao
--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen:
http://www.gmx.net/de/go/multimessenger01