Beispiel #1
0
        public void LoadPartsPtr(ref PartsObject PartsObj, bool isCurrentEditing = true)
        {
            PartsBinder.ReAlloc(PartsObj);

            PartAttributes pa = new PartAttributes(PartsBinder.IntPtr, ProjectBinder.IntPtr);

            pa.setIsCurrent(isCurrentEditing);

            pa.setSingerDataFinder(SingerDataFinder);

            this.PropertyViewer.Tag = pa;

            this.PropertyViewer.SelectedObject = this.PropertyViewer.Tag;
        }
Beispiel #2
0
        public Form2()
        {
            InitializeComponent();
            BarkUST bu = new BarkUST();

            poj = bu.GetTest(true);
            OAC.ReAlloc(poj);
        }
Beispiel #3
0
        public void LoadWavPartsPtr(ref WavePartsObject PartsObj)
        {
            WavePartsBinder.ReAlloc(PartsObj);

            WavePartAttributes pa = new WavePartAttributes(WavePartsBinder.IntPtr, ProjectBinder.IntPtr);

            this.PropertyViewer.Tag = pa;

            this.PropertyViewer.SelectedObject = this.PropertyViewer.Tag;
        }
Beispiel #4
0
 public void LoadParts(ref PartsObject parts)
 {
     OAC.ReAlloc(parts);
     Controller.AllocView(OAC.IntPtr);
     ctl_Scroll_LeftPos.Maximum = (int)parts.TickLength;
     ctl_Scroll_LeftPos.Value   = 0;
     ctl_Scroll_LeftPos_Scroll(null, null);
     this.Text = parts.PartName;
     AttributeWindow.LoadPartsPtr(ref parts);
     setupSingerIcon();
 }
Beispiel #5
0
 public void LoadProjectObject(ref ProjectObject projects)
 {
     ProjectBinder.ReAlloc(projects);
     if (projects.GlobalVolume < 100)
     {
         tbVolume.Value = projects.GlobalVolume;
     }
     else
     {
         tbVolume.Value = 100;
     }
 }
Beispiel #6
0
        private void Form1_Load(object sender, EventArgs e)
        {
            ProjectObject poj = LoadUST(@"D:\VocalUtau\VocalUtau.DebugExampleFiles\DemoUSTS\Sakurane2.Tracks\Track-4b158252-eb7f-4223-b7b0-d78f32e044ec.ust");

            OAC.ReAlloc(poj.TrackerList[1].PartList[0]);

            NV = new NoteView(OAC.IntPtr, this.pianoRollWindow1);
            PV = new PitchView(OAC.IntPtr, this.pianoRollWindow1);

            PitV = new PITParamView(OAC.IntPtr, this.paramCurveWindow1);
            DynV = new DYNParamView(OAC.IntPtr, this.paramCurveWindow1);

            UAU = new UndoAbleUtils <PartsObject>();

            AV = new ActionView(OAC.IntPtr, this.pianoRollWindow1, this.paramCurveWindow1);

            NV.HandleEvents   = false;
            PV.HandleEvents   = true;
            PV.EarseModeV2    = true;
            PitV.HandleEvents = false;
            DynV.HandleEvents = true;
            btn_DYN.BackColor = DynV.HandleEvents ? System.Drawing.SystemColors.ControlDark : System.Drawing.SystemColors.Control;
            btn_PIT.BackColor = PitV.HandleEvents ? System.Drawing.SystemColors.ControlDark : System.Drawing.SystemColors.Control;

            NV.NoteActionEnd    += NV_NoteActionEnd;
            PV.PitchActionEnd   += PV_PitchActionEnd;
            PitV.PitchActionEnd += PitV_PitchActionEnd;
            DynV.DynActionEnd   += DynV_DynActionEnd;

            NV.NoteActionBegin    += NV_NoteActionBegin;
            PV.PitchActionBegin   += PV_PitchActionBegin;
            PitV.PitchActionBegin += PitV_PitchActionBegin;
            DynV.DynActionBegin   += DynV_DynActionBegin;

            this.pianoRollWindow1.TrackPaint += TrackPaint;
            InitEventAction();

            AV.TickPos = 480;
        }
Beispiel #7
0
        public void LoadNotesPtr(ref PartsObject PartsObj, ref NoteObject CurrentNote)
        {
            PartsBinder.ReAlloc(PartsObj);

            NoteBinder.ReAlloc(CurrentNote);

            NoteAttributes NA = new NoteAttributes(PartsBinder.IntPtr, NoteBinder.IntPtr, ProjectBinder.IntPtr);

            NA.setSingerDataFinder(SingerDataFinder);

            NA.PhonemesChanged += NA_PhonemesChanged;

            this.PropertyViewer.Tag = NA;

            this.PropertyViewer.SelectedObject = this.PropertyViewer.Tag;
        }
Beispiel #8
0
 public void LoadParts(ref PartsObject parts, bool KeepSelecting = false)
 {
     OAC.ReAlloc(parts);
     Controller.AllocView(OAC.IntPtr);
     ctl_Scroll_LeftPos.Maximum = (int)parts.TickLength;
     ctl_Scroll_LeftPos.Value   = 0;
     ctl_Scroll_LeftPos_Scroll(null, null);
     this.Text = parts.PartName;
     AttributeWindow.LoadPartsPtr(ref parts);
     if (KeepSelecting)
     {
         Controller.RealaramNoteSelecting();
     }
     else
     {
         Controller.Track_NoteView.ClearSelect();
     }
     setupSingerIcon();
 }
Beispiel #9
0
 public SingerDataFinder(ref ProjectObject proj, SingerIndexer Indexer)
 {
     this.Indexer = Indexer;
     ProjectBeeper.ReAlloc(proj);
 }
Beispiel #10
0
 public void LoadProjectObject(ref ProjectObject projects)
 {
     OAC.ReAlloc(projects);
     this.ProjectObjectPtr = OAC.IntPtr;
 }
Beispiel #11
0
 public void LoadProjectObject(ref ProjectObject proj)
 {
     ProjectBeeper.ReAlloc(proj);
 }