Skip to content
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

\genericFrame doesn't seem to work in Drum Staff #9

Open
pedro-psb opened this issue Oct 28, 2018 · 4 comments
Open

\genericFrame doesn't seem to work in Drum Staff #9

pedro-psb opened this issue Oct 28, 2018 · 4 comments

Comments

@pedro-psb
Copy link

Hello!
I was testing the package and it seems the Border tool doesn't work with drummode.
This is the code I tried:

\version "2.19.82"

\include "oll-core/package.ily"
\loadPackage \with {
  modules = frames
}
analysis

% Works in Normal Staff
\score {
  \new Staff{
    \relative c' {
      \genericFrame {
        c8 e g c g e e4
      }
    }
  }
}

% Does not work in Drum Staff
\score {
  \new DrumStaff{
    \drummode {
      \genericFrame {
        sn16 8 toml16~ 16 16 8  
        sn 8 8 toml8 8
      }
    }
  }
}
@KlausBlum
Copy link
Contributor

Hi pedro-psb,

\genericFrame relies on the Horizontal_bracket_engraver which is not part of the Voice or DrumVoice context by default, so it has to be added manually.
For the Voice context, this is done in the "frame" module, but not for DrumVoice. (Maybe we should add it...)

So the solution should simply be to add this at the end of your code:

\layout { \context { \DrumVoice \consists "Horizontal_bracket_engraver" } }

Does it work now?

Cheers,
Klaus

@KlausBlum
Copy link
Contributor

@uliska: I don't think that this would cause any problems. Can we add it to module.ily ?

@pedro-psb
Copy link
Author

Yes, it works! Sounds a good ideia to add it to the module default.
Thanks

@uliska
Copy link
Contributor

uliska commented Nov 20, 2018

I haven't looked into it in detail, but generally I don't see any issue with it. However, then it would probably be more consistent to add it to all voice-level contexts, for which \consistToContexts from oll-core.util.consist-to-contexts is useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants