Class MusicComposerEditorWindow
This is the editor window for creating/editing/deleting songs and their patterns and tracks.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.ScriptableObject
UnityEditor.EditorWindow
MusicComposerEditorWindow
Inherited Members
Namespace: InsaneScatterbrain.RetroKit.Editor
Syntax
public class MusicComposerEditorWindow : MoreEditorWindow
Constructors
MusicComposerEditorWindow()
Declaration
public MusicComposerEditorWindow()
Methods
CreatePattern()
Creates a new pattern and adds it to the active song.
Declaration
public Pattern CreatePattern()
Returns
Type | Description |
---|---|
Pattern |
CreateSong()
Creates a new song object, stores it in the repository and creates a new track and pattern for the song.
Declaration
public Song CreateSong()
Returns
Type | Description |
---|---|
Song | The new song object. |
CreateTrack()
Creates a new track and adds it to the active song
Declaration
public void CreateTrack()
DeletePattern(Pattern)
Remove the given pattern from the active song.
Declaration
public void DeletePattern(Pattern deletePattern)
Parameters
Type | Name | Description |
---|---|---|
Pattern | deletePattern |
Play()
This is called from child window parts, to indicated that they started playing audio.
Declaration
public void Play()
ShowWindow()
Declaration
[MenuItem("Window/RetroKit/Music Composer")]
public static void ShowWindow()
StopPlaying()
Stop playing the song, pattern and all tracks.
Declaration
public void StopPlaying()