Group mulitple setValueNotifyingHost calls into one UndoManager transaction

You can try this: AudioProcessorUndoAttachment
It works quite well for me. Cheers, Yair