]> git.donarmstrong.com Git - lilypond.git/commit
Set context-id for implicit voices in polyphony shorthand.
authorNeil Puttock <n.puttock@gmail.com>
Wed, 27 Jan 2010 01:41:04 +0000 (01:41 +0000)
committerNeil Puttock <n.puttock@gmail.com>
Wed, 27 Jan 2010 01:41:04 +0000 (01:41 +0000)
commit7f5363be4d24bb512d9c25dcd8c975ed87e4c923
tree63a37948dbb0801eb8945665c8a04d640f9c8577
parent6cf377378b908f695a04e2b7edee34b1f6e69abb
Set context-id for implicit voices in polyphony shorthand.

Since voicify-music now uses the context alias `Bottom' to create the
appropriate voice-level contexts in a << { } \\ { } >> construct, the
context-id sent via context-spec-music is ignored.

* add context-id as arg to Global_context/Context::get_default_interpreter (),
  with empty string as default

* pass context-id to Context::get_default_interpreter () so it can
  be used in call to create_context () instead of empty string

* add regtest, which will fail to compile if context-id is invalid
input/regression/automatic-polyphony-context-id.ly [new file with mode: 0644]
lily/context.cc
lily/global-context.cc
lily/include/context.hh
lily/include/global-context.hh