Ejemplo n.º 1
0
 /*        public class relations : ObservableCollection<string>
 {
     public relations()
     {
         Add("LightBlue");
         Add("Pink");
         Add("Red");
         Add("Purple");
         Add("Blue");
         Add("Green");
     }
 }
 */
 // listen for new peers from Pressure, and add them
 // listen for deleted peers from Pressure, and remove them
 public void fill(Pressure p)
 {
     foreach (Peer pr in p.Peers)
     {
         // add each peer's target; value; [owner;] [type;]
         LV.Items.Add(pr.ToString());
     }
 }
Ejemplo n.º 2
0
        public MTLFOMachine(IBuzzMachineHost host)
        {
            this.host = host;

            // look for PP
            IMachine master = null;

            foreach (IMachine m in Global.Buzz.Song.Machines)
                if (m.DLL.Name == "MT Peer Pressure")
                    master = m;

            // if its there set pressure
            if (master != null) pressure = (Pressure)master.ManagedMachine;

            tracks = 0;
            peers[0] = pressure.newPeer(host.Machine);
            peers[0].InputEffector = new LFOEffector();
        }
Ejemplo n.º 3
0
        public OverpassMachine(IBuzzMachineHost host)
        {
            this.host = host;
            //Gain = new Interpolator();
            //            mac = new ObservableCollection<int>();
            //            peers = new ObservableCollection<Peer>();

            // look for PP
            IMachine master = null;

            foreach (IMachine m in Global.Buzz.Song.Machines)
                if (m.DLL.Name == "MT Peer Pressure")
                    master = m;

            // if its there set pressure
            if (master != null) pressure = (Pressure)master.ManagedMachine;
            // else we need to make one and add it to the song

            // add my effector
            pressure.Effectors.Add(new MT_Peer_Pressure.Effectors.SliderEffector(null, null, 0));
        }
Ejemplo n.º 4
0
 public ListPanel(Pressure p)
 {
     InitializeComponent();
     //fill(p);
     P = p;
 }