/// <inheritdoc /> public Partial(DrumKey key) { Key = key; Basic = new Basic(); Assign = new Assign(); Amplifier = new Amplifier(); Output = new Output(); Expression = new Expression(); VelocityControl = new VelocityControl(); Wmts = new[] { new Wmt.Wmt(), new Wmt.Wmt(), new Wmt.Wmt(), new Wmt.Wmt() }; Pitch = new Pitch(); Tvf = new Tvf(); Tva = new Tva(); Other = new Other(); Basic.PropertyChanged += (sender, args) => NotifyOfPropertyChange(nameof(Basic)); Assign.PropertyChanged += (sender, args) => NotifyOfPropertyChange(nameof(Assign)); Amplifier.PropertyChanged += (sender, args) => NotifyOfPropertyChange(nameof(Amplifier)); Output.PropertyChanged += (sender, args) => NotifyOfPropertyChange(nameof(Output)); Expression.PropertyChanged += (sender, args) => NotifyOfPropertyChange(nameof(Expression)); VelocityControl.PropertyChanged += (sender, args) => NotifyOfPropertyChange(nameof(VelocityControl)); Wmt1.PropertyChanged += (sender, args) => NotifyOfPropertyChange(nameof(Wmt1)); Wmt2.PropertyChanged += (sender, args) => NotifyOfPropertyChange(nameof(Wmt2)); Wmt3.PropertyChanged += (sender, args) => NotifyOfPropertyChange(nameof(Wmt3)); Wmt4.PropertyChanged += (sender, args) => NotifyOfPropertyChange(nameof(Wmt4)); Pitch.PropertyChanged += (sender, args) => NotifyOfPropertyChange(nameof(Pitch)); Tvf.PropertyChanged += (sender, args) => NotifyOfPropertyChange(nameof(Tvf)); Tva.PropertyChanged += (sender, args) => NotifyOfPropertyChange(nameof(Tva)); Other.PropertyChanged += (sender, args) => NotifyOfPropertyChange(nameof(Other)); }
/// <summary> /// Partial address offset /// </summary> private static byte[] PartialAddressOffset(DrumKey key) { return(new byte[] { 0x19, 0x70, (byte)key, 0x00 }); }