예제 #1
0
        public static void Initialize(Pattern pattern)
        {
            EditorSequencerPianoRoll window = GetWindow <EditorSequencerPianoRoll>("Piano roll");

            Current           = pattern;
            window.instrument = 0;

            //focus on first note
            window.Focus();
        }
예제 #2
0
        public static void Initialize()
        {
            //Show existing window instance. If one doesn't exist, make one.
            EditorSequencerPianoRoll window = GetWindow <EditorSequencerPianoRoll>("Piano roll");

            window.instrument = 0;

            //focus on first note
            window.Focus();
        }
예제 #3
0
        public static void Initialize(InstancedPattern instancedPattern, Track track)
        {
            EditorSequencerPianoRoll window = GetWindow <EditorSequencerPianoRoll>("Piano roll");

            var pattern = track.uniquePatterns[instancedPattern.pattern];

            Current           = pattern;
            window.instrument = 0;

            //focus on first note
            window.Focus();
        }