Ejemplo n.º 1
0
        public GlobalCaret(TimeMarkerUnit timemarkerunit)
        {
            this.timemarkerunit = timemarkerunit;

            timemarkerunit.AddMarker("", Time.Zero, true);
            timemarkerunit.GetMarker("").AfterChange += GlobalCaret_AfterChange;
        }
Ejemplo n.º 2
0
        public NamedTime(TimeMarkerUnit timemarkerunit)
        {
            this.timemarkerunit = timemarkerunit;

            MarkerName.AfterChange += MarkerName_AfterChange;
            Offset.AfterChange     += delegate { Update(); };
        }
Ejemplo n.º 3
0
        public Pin(
            StorageObjectID storageobjectID,
            EditorFile file,
            TimeMarkerUnit timemarkerunit
            ) :
            base(
                storageobjectID,
                file,
                null     //TODO
                )
        {
            time = new NamedTime(timemarkerunit);

            //TODO: see if changing time.MarkerName is the right action to do to rename the marker

            var obj = this.Object();

            binder_markername = time.MarkerName.Bind(obj.GetOrMake("marker"));
            binder_offset     = time.Offset.Bind(obj.GetOrMake("offset"));
        }
        public TrackControllerSettings(
            IStorageObject storage,
            EditorFile file
            ) :
            base(
                storage.ID,
                file,
                null
                )
        {
            this.storage = storage;

            propertymanager = new PropertyManager(storage.GetOrMake("property-manager"), file);

            musicbrain = new MusicBrain();
            musicbrain.InsertCog(new NotePerceptualCog());
            musicbrain.InsertCog(new MeasureLayoutPerceptualCog());

            timemarkerunit = new TimeMarkerUnit(storage.GetOrMake("time-markers"), file);

            globalcaret = new GlobalCaret(timemarkerunit);
        }