How to call SetModifiedFlag() from C#
How to call SetModifiedFlag() from C#
Anyone know how to call SetModifiedFlag() from C# machine?
Re: How to call SetModifiedFlag() from C#
Another thing: When new control machine is added to Buzz Machine view, new track is automatically added in the Sequence Editor. Is there an easy way NOT to add the track for the machine from C#?
Re: How to call SetModifiedFlag() from C#
I can't find a way to do that directly but I think if you make any change to a machine parameter/attribute/position/whatever then Buzz would notice and set the song modified itself.wde wrote:Anyone know how to call SetModifiedFlag() from C# machine?
The only thing I found is BuzzGUI.Common.Settings.Setting.IsModified which is a property of the Setting class, so perhaps you could find an instance of Setting and set that property manually (if you're allowed) and Buzz would notice?
I don't think there's a way to prevent the addition of a track in the sequencer. I suspect the best you could do is automatically remove it after your machine has been created but I don't know if that's possible.
Sorry I can't help more.
Re: How to call SetModifiedFlag() from C#
Ok, here is one solution to notify Buzz that something has changed:
First parameter group includes Vol and Pan, so it seems to be safe to use.
Code: Select all
int val = host.Machine.ParameterGroups[0].Parameters[0].GetValue(0);
host.Machine.ParameterGroups[0].Parameters[0].SetValue(0, val);