Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
resources:tools-software:sigmastudio:toolbox:mixerssplitters:audiosignalrouter [29 Aug 2016 07:59] – [Audio Signal Router] Venkatesan Krishnamoorthyresources:tools-software:sigmastudio:toolbox:mixerssplitters:audiosignalrouter [23 Jan 2023 11:21] (current) ananthakalyani Sankar
Line 39: Line 39:
 {{ :resources:tools-software:sigmastudio:toolbox:mixerssplitters:audiosignalrouterext.png?nolink |}} {{ :resources:tools-software:sigmastudio:toolbox:mixerssplitters:audiosignalrouterext.png?nolink |}}
  
 +===== Audio Signal Router Script support =====
 +User can able to access this module from script.
 +
 +The following sample code shows how to read parameters from a file using Sigma studio script. 
 +<code csharp>
 +// #LANGUAGE# C#
 +// Get Cell object
 +
 +object obj = ss.GetCellObject("Router1");
 +System.Collections.ArrayList arr = null;
 +System.Reflection.MethodInfo[] memberInfos = ss.ObjectGetMethods(obj);
 +/*foreach (System.Reflection.MethodInfo memberInfo in memberInfos) 
 +{
 +   ss.PrintLine(memberInfo.Name);
 +}*/
 +
 +//OPEN the SETTINGWINDOW
 +System.Reflection.MethodInfo methodInfo = ss.ObjectGetMethod(obj, "settingswindowopen");
 +ss.PrintLine(methodInfo.Name);
 +methodInfo.Invoke(obj, new object[]{});
 +
 +//CHANGE the Table INDEX
 +//and set the values
 +// chage the tabindex count based on need and will get the tabindex value.which is used here.
 +//setTabIndex should be 0 to 3.
 +for (int idx =0; idx <= 1; idx++)
 +{
 +System.Reflection.MethodInfo methodInfo1 = ss.ObjectGetMethod(obj, "setTabIndex");
 +ss.PrintLine(methodInfo1.Name);
 +methodInfo1.Invoke(obj, new object[]{idx,2});
 +ss.ObjectSetProperties("setControlValue", "Router1", 0, 0, "InputGain_0" , 6.0);
 +ss.ObjectSetProperties("setControlValue", "Router1", 0, 0, "InputGain_10" , 2);
 +ss.ObjectSetProperties("setControlValue", "Router1", 0, 0, "InputGain_12" , 3);
 +ss.ObjectSetProperties("setControlValue", "Router1", 0, 0, "OutputGain_10" , 0.3);
 +ss.ObjectSetProperties("setControlValue", "Router1", 0, 0, "OutputGain_12" , 0.3);
 +ss.ObjectSetProperties("setControlValue", "Router1", 0, 0, "OutputGain_9" , 0.3);
 +ss.ObjectSetProperties("setControlValue", "Router1", 0, 0, "CrossGain_0_1" , 0.5);
 +ss.ObjectSetProperties("setControlValue", "Router1", 0, 0, "CrossGain_0_0" ,0.6);
 +}
 +
 +
 +//CLOSE the SETTINGWINDOW
 +System.Reflection.MethodInfo methodInfo2 = ss.ObjectGetMethod(obj, "settingswindowclose");
 +ss.PrintLine(methodInfo2.Name);
 +methodInfo2.Invoke(obj, new object[]{});
 +
 +// 
 +
 +</code>
    
resources/tools-software/sigmastudio/toolbox/mixerssplitters/audiosignalrouter.1472450364.txt.gz · Last modified: 29 Aug 2016 07:59 by Venkatesan Krishnamoorthy