Example #1
0
        /// <summary>
        /// Creates a new instance of the renderer class. The specied Sheet object 
        /// will be used for rendering.
        /// </summary>
        public Renderer(Sheet st) {
            genTempDir();

            sheet = new Sheet();

            sheet.rendParams = st.rendParams;
            sheet.notes = st.notes;
            sheet.Resampler = st.Resampler;
            sheet.Voicebank = st.Voicebank;
        }
Example #2
0
        /// <summary>
        /// Quickly play back the contents of a temporary render directory, using the
        /// specified Sheet as reference.
        /// </summary>
        public void PlaybackTemp(string tempDir, Sheet playbackSheet) {
            string[] files = Directory.GetFiles(tempDir);
            string tempdir = "";

            // Generate trimmed files ready for splicing 
            tempdir = GenEditedFiles(files, playbackSheet.notes);

            // Show the output in explorer if debug mode is on
            if (debug) {
                Process p = new Process();
                p.StartInfo.FileName = tempdir;
                p.Start();
            }

            // Splice the files
            ConcatenateWav(tempdir + "\\render.wav", Directory.GetFiles(tempdir));

            // Play back resulting file
            new System.Media.SoundPlayer(tempdir + "\\render.wav").Play();
        }
Example #3
0
        public void MakeNewProj() {
            Console.Out.WriteLine("WARNING: This will erase ALL data associated with the current project.");
            Console.Out.WriteLine("Continue? <y/n>: ");
            if (Console.In.ReadLine() == "y") {

                noteSheet = new Sheet();
                or = new OtoReader();
                projString = "New Project";
                vbset = rndset = false;

                Console.Out.WriteLine("Done.");
            }
        }
 public FluidFileWriter(string path, Sheet sheet) {
     baseSheet = sheet;
     filePath = path;
     genXml();
 }
 public FluidFileReader(string fileLoc) {
     filePath = fileLoc;
     Sheet1 = new Sheet();
     ParseXml();
 }