public AddWindow() { InitializeComponent(); this.songStyle = SongStyle.None; SetTheme(); SetLanguage(); }
public Song(Song sng) { this.Title = sng.Title; this.Author = sng.Author; this.Path = sng.Path; this.Style = sng.Style; }
public Song(string author, string title, SongStyle style, double length, string path) { Title = title; Author = author; Style = style; Path = path; }
public static void SwitchMusicStyle() { if (currentSongStyle == SongStyle.Play) { currentSongStyle = SongStyle.Lobby; } else { currentSongStyle = SongStyle.Play; } }
public Song ComposeSong(string root, int octave, ScaleType mode, float minNoteLength) { var song = CreateSong(minNoteLength); MusicalScale scale = new MusicalScale(root, mode, octave); SongStyle songStyle = new SongStyle(this, song, scale, minNoteLength); songStyle .Compose(); return(song); }
public void StartNewSong(SongStyle style = SongStyle.Lobby) { foreach (ListOfMusic list in StackOfMusic) { if (list.style == style) { Song song = list.GetRandomSongFromList(); lastPlayedSong = song; _source.clip = song.clip; _source.Play(); } } }
private void RadioButton_Checked(object sender, RoutedEventArgs e) { var checkedRadioButton = sender as RadioButton; this.songStyle = Song.TryParse(checkedRadioButton.Content.ToString()); }
private void RadioButton_Checked(object sender, RoutedEventArgs e){ var checkedRadioButton = sender as RadioButton; this.songStyle = Song.TryParse(checkedRadioButton.Content.ToString()); }
public AddWindow(){ InitializeComponent(); this.songStyle = SongStyle.None; SetTheme(); SetLanguage(); }