Beispiel #1
0
 public SilentRunner(Score s, ProcessLoadDelagete processDelegate, bool autoStart)
 {
     ProcessDelegate = processDelegate;
     syncr           = new SyncrPlayer();
     tempo           = new Tempo();
     triggers        = new List <Trigger>();
     udpHost         = new SyncrUDPHost(syncr);
     _fastLoop       = new FastLoop(Update);
     score           = s;
     AutoStart       = autoStart;
 }
Beispiel #2
0
        public SyncrControlForm(Score s, SilentRunner r, ProcessLoadDelagete processDelegate, bool autoStart = false, bool trackBar = true)
        {
            InitializeComponent();

            runner           = r;
            runner.OnUpdate += Update;
            runner.OnTempo  += OnTempoTick;

            cmd          = new SyncrCommandLine(this);
            Text         = s.TrackName;
            ShowTrackBar = trackBar;
            midi         = new MidiManager(this);
            // StreamReader r = new StreamReader("score.txt");
        }