I seem to recall some previous discussion about this and there being a setting in Kontakt itself that can be disabled to prevent it from responding to specific MIDI CC reset commands. Have a search for it, and let me know if you’re unable to find it.
I have this problem too, but turning off Accept standard controllers for Volume (#7) and Pan (#10) in the Kontakt Instrument Options doesn’t change anything.
For something to change, I need to manually create a CC7 value in Dorico’s Key Editor:
A value of 1 translates to -6db in the Kontakt instrument (where it defaults to currently).
A value of 127 translates to 0db in Kontakt.
I thought I’d gotten around this by adding a CC7 Action in the Init Base Switch, but as soon as the first note is played (i.e. another Playback Technique is triggered), Kontakt jumps back to -6db.
I guess this isn’t a Dorico issue per se except for the fact that this behaviour doesn’t happen in other programs.
I know this topic has come up in other threads but I wanted to ask a question somewhere: is there a reason why the CC7 Action doesn’t just continue until there’s a similar Action in another Playback Technique?
I’m honestly not sure where a CC7 MIDI message would be coming from when Dorico is playing notes. CC7 would be reset when stopping playback (and probably at the very beginning of restarted playback), but unless it is somehow specified in your expression map, no further CC7 values should be sent during playback.
If you can attach a minimal project with your expression map, just one instrument, and the smallest number of bars required to reproduce the problem for you, I can take a look at what MIDI messages are being generated and see if I can spot where the unwanted CC7 data is coming from, assuming I see the same thing you do.