Example #1
0
        public NoteRoll() {
            InitializeComponent();

            ImageBrush brush = new ImageBrush();
            brush.ImageSource = new BitmapImage(new Uri(System.AppDomain.CurrentDomain.BaseDirectory + "\\res\\01.PNG"));
            brush.TileMode = TileMode.Tile;
            brush.ViewportUnits = BrushMappingMode.Absolute;
            brush.Viewport = new Rect(0, 0, brush.ImageSource.Width, brush.ImageSource.Height);
            brush.Stretch = Stretch.None;
            bkgCanvas.Background = brush;

            otoRead = new OtoReader();
            wavMod = new wavmod.WavMod();

            setDefaultColors();
            PaintPianoKeys();

            scroller.ScrollToVerticalOffset(560);

            NoteSnapping = Snapping.Sixteenth;
            RollSnapping = Snapping.Sixteenth;
        }
Example #2
0
 /// <summary>
 /// Creates a new instance of the OtoReader class based on the specified
 /// configuration file.
 /// </summary>
 /// <param name="file">The configuration file to open.</param>
 public static OtoReader FromFile(string file) {
     OtoReader or = new OtoReader();
     or.OpenFile(file);
     return or; 
 }
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.");
            }
        }