Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="reader"></param>
        /// <param name="index"></param>
        /// <param name="memory"></param>
        /// <param name="name"></param>
        public Song(SongFileReader reader, int index, ISongMemory memory, string name)
        {
            Index  = index;
            Memory = memory;
            Name   = name;

            Timbres = new SongTimbres(this);

            for (int timbreIndex = 0; timbreIndex < reader.NumberOfSongTracks; timbreIndex++)
            {
                Timbres.TimbresCollection.Add(reader.CreateTimbre(Timbres, timbreIndex));
            }
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="mainWindow"></param>
        /// <param name="songFileName"></param>
        /// <param name="songMemory"></param>
        /// <param name="openedPcgWindows"></param>
        public SongWindow(MainWindow mainWindow, string songFileName, ISongMemory songMemory, OpenedPcgWindows openedPcgWindows)
        {
            InitializeComponent();

            SongMemory         = songMemory;
            _mainWindow        = mainWindow;
            ViewModel          = new SongViewModel(openedPcgWindows);
            SongViewModel.Song = listViewSongs.SelectedIndex >= 0
                ? songMemory.Songs.SongCollection[listViewSongs.SelectedIndex]
                : null;

            DataContext = ViewModel;

            /*
             * ViewModel.PropertyChanged += OnViewModelChanged;
             *
             * ComboBoxConnectedPcgFile.ItemsSource = SongViewModel.OpenedPcgWindows.Items;
             *
             * var view = (CollectionView) CollectionViewSource.GetDefaultView(ComboBoxConnectedPcgFile.ItemsSource);
             * view.Filter += ViewFilter;
             */

            songMemory.FileName = songFileName;
        }
 /// <summary>
 ///
 /// </summary>
 /// <param name="songMemory"></param>
 /// <param name="content"></param>
 public NautilusSongFileReader(ISongMemory songMemory, byte[] content)
     : base(songMemory, content)
 {
 }
Пример #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="songMemory"></param>
 /// <param name="content"></param>
 protected TritonSongFileReader(ISongMemory songMemory, byte[] content)
     : base(songMemory, content)
 {
 }
Пример #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="factory"></param>
 /// <param name="fileName"></param>
 public Client(IFactory factory, string fileName)
 {
     _pcgMemory  = factory.CreatePcgMemory(fileName);
     _songMemory = factory.CreateSongMemory(fileName);
 }
Пример #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="memory"></param>
 /// <param name="content"></param>
 /// <returns></returns>
 public override ISongFileReader CreateSongFileReader(ISongMemory memory, byte[] content)
 {
     return(null); // Not supported
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="songMemory"></param>
 /// <param name="content"></param>
 public KronosSongFileReader(ISongMemory songMemory, byte[] content)
     : base(songMemory, content)
 {
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="songMemory"></param>
 /// <param name="content"></param>
 public TritonTrClassicStudioRackSongFileReader(ISongMemory songMemory, byte[] content)
     : base(songMemory, content)
 {
 }
Пример #9
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="memory"></param>
 /// <param name="content"></param>
 /// <returns></returns>
 public override ISongFileReader CreateSongFileReader(ISongMemory memory, byte[] content)
 {
     return(new M1SongFileReader(memory, content));
 }
Пример #10
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="songMemory"></param>
 /// <param name="content"></param>
 /// <returns></returns>
 public abstract ISongFileReader CreateSongFileReader(ISongMemory songMemory, byte[] content);
 /// <summary>
 ///
 /// </summary>
 /// <param name="songMemory"></param>
 /// <param name="content"></param>
 public Zero3RwSongFileReader(ISongMemory songMemory, byte[] content)
     : base(songMemory, content)
 {
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="memory"></param>
 /// <param name="content"></param>
 /// <returns></returns>
 public override ISongFileReader CreateSongFileReader(ISongMemory memory, byte[] content)
 {
     return(new TritonTrClassicStudioRackSongFileReader(memory, content));
 }
Пример #13
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="songMemory"></param>
 /// <param name="content"></param>
 public Ms2000SongFileReader(ISongMemory songMemory, byte[] content)
     : base(songMemory, content)
 {
 }
Пример #14
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="songMemory"></param>
 /// <param name="content"></param>
 public TritonExtremeSongFileReader(ISongMemory songMemory, byte[] content)
     : base(songMemory, content)
 {
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="songMemory"></param>
 /// <param name="content"></param>
 protected KronosOasysSongFileReader(ISongMemory songMemory, byte[] content)
     : base(songMemory, content)
 {
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="songMemory"></param>
 /// <param name="content"></param>
 public MicroKorgXlSongFileReader(ISongMemory songMemory, byte[] content)
     : base(songMemory, content)
 {
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="songMemory"></param>
 /// <param name="content"></param>
 public MicroStationSongFileReader(ISongMemory songMemory, byte[] content)
     : base(songMemory, content)
 {
 }
Пример #18
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="songMemory"></param>
 /// <param name="content"></param>
 protected SongFileReader(ISongMemory songMemory, byte[] content)
 {
     SongMemory                = songMemory;
     SongMemory.Content        = content;
     songMemory.MemoryFileType = Memory.FileType.Sng;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="songMemory"></param>
 /// <param name="content"></param>
 public XSeriesSongFileReader(ISongMemory songMemory, byte[] content)
     : base(songMemory, content)
 {
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="songMemory"></param>
 /// <param name="content"></param>
 public TritonKarmaSongFileReader(ISongMemory songMemory, byte[] content)
     : base(songMemory, content)
 {
 }