[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with MIDI volume level
From: |
Neil Puttock |
Subject: |
Re: Problem with MIDI volume level |
Date: |
Tue, 8 Mar 2011 21:29:08 +0000 |
On 8 March 2011 09:34, Zoltan Selyem <address@hidden> wrote:
>
> %% Changes in volume affect all the staves in the MIDI output
> %% instead of affecting only the one they are written in.
> %%
> %% This went wrong between 2.13.52 and 2.13.53
>From 2.13.53, voices are mapped to MIDI channels instead of being
lumped together per-stave, but they must be named (i.e., \new Voice =
"name") otherwise they all go to channel 0.
There is however still an issue with your example even if you do name
the voices:
\version "2.13.53"
Upper = \relative c' {
e8\ppp e e e e\fff e e e | e\ppp e e e e\fff e e e
}
Lower = \relative c' {
c8\ppp c c c c c c c | c c c c c c c c
}
\score{
\context StaffGroup
<<
\new Staff \new Voice = "1" \Upper
\new Staff \new Voice = "2" \Lower
>>
\layout{}
\midi{}
}
This still maps both voices to channel 0 since the mapping takes place
at the Staff level, resulting in two instantiations of
Staff_performer, each with a separate <context-id, channel> map.
Possible fix (not sure whether this is considered good coding style
though): in staff-performer.cc make map<string, int> channel_map_
static.
Cheers,
Neil