buzz forums

forums of the buzz
It is currently Tue Jul 25, 2017 8:44 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Dec 05, 2016 11:04 am 

Joined: Sun Jan 08, 2012 9:28 am
Posts: 60
Anyone know how to call SetModifiedFlag() from C# machine?


Top
 Profile  
 
PostPosted: Tue Dec 06, 2016 4:55 pm 

Joined: Sun Jan 08, 2012 9:28 am
Posts: 60
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#?


Top
 Profile  
 
PostPosted: Wed Dec 07, 2016 2:38 pm 
User avatar

Joined: Wed Nov 23, 2011 3:24 pm
Posts: 499
wde wrote:
Anyone know how to call SetModifiedFlag() from C# machine?

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.

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.


Top
 Profile  
 
PostPosted: Mon Dec 19, 2016 2:13 pm 

Joined: Sun Jan 08, 2012 9:28 am
Posts: 60
Ok, here is one solution to notify Buzz that something has changed:

Code:
int val = host.Machine.ParameterGroups[0].Parameters[0].GetValue(0);           
host.Machine.ParameterGroups[0].Parameters[0].SetValue(0, val);


First parameter group includes Vol and Pan, so it seems to be safe to use.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group