public static void Initialize(Pattern pattern) { EditorSequencerPianoRoll window = GetWindow <EditorSequencerPianoRoll>("Piano roll"); Current = pattern; window.instrument = 0; //focus on first note window.Focus(); }
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(); }
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(); }