Exemplo n.º 1
0
        public void Init(uint instaddr, SongUtil.Track track)
        {
            this.SongInstrumentList     = SongInstrumentForm.MakeList(instaddr);
            this.ChangeVoices           = SongUtil.GetVoices(track);
            this.VolNumericUpDown.Value = 0;
            this.PanNumericUpDown.Value = 0;

            this.VoiceListbox.BeginUpdate();
            for (int i = 0; i < this.ChangeVoices.Count; i++)
            {
                string v = GetVoiceName(this.ChangeVoices[i]);
                this.VoiceListbox.Items.Add(v);
            }
            this.VoiceListbox.EndUpdate();

            this.Address.Value = Program.ROM.p32((uint)track.basepointer);
        }
Exemplo n.º 2
0
        public void Init(uint instaddr, List <SongUtil.Track> tracks)
        {
            this.SongInstrumentList = SongInstrumentForm.MakeList(instaddr);

            this.ChangeVoices = new List <SongUtil.ChangeVoiceSt>();
            for (int i = 0; i < tracks.Count; i++)
            {
                SongUtil.GetVoices(tracks[i], ref this.ChangeVoices);
            }
            this.VolNumericUpDown.Value = 0;
            this.PanNumericUpDown.Value = 0;

            this.VoiceListbox.BeginUpdate();
            for (int i = 0; i < this.ChangeVoices.Count; i++)
            {
                string v = GetVoiceName(this.ChangeVoices[i]);
                this.VoiceListbox.Items.Add(v);
            }
            this.VoiceListbox.EndUpdate();
        }