Example #1
0
        public void SetIntrument(SimpleApi saa, Instrument instrument, Harp harp)
        {
            harpIntrument = HarpInstrumentFactory.HarpDatabaeObject2HarpInstrument(harp);

            if (harpIntrument.InstrumentNotesDefinition.Count <= 0)
            {
                return;
            }

            var inn = harpIntrument.InstrumentNotesDefinition.Keys.Select(m => m).Where(kvp => kvp.BreathDirection == eBreathDirection.blow).Select(k => k.Slot).ToList();
        }
Example #2
0
        public void SaveInitialHarps(string fileName)
        {
            if (File.Exists(FormInstances.Instance().DatabaseFile))
            {
                File.Delete(FormInstances.Instance().DatabaseFile);
            }
            HarpInstrumentClass hi = HarpInstrumentFactory.SeydelDeLuxeSteelOrchestra(eKey.C_DUR);

            Harp ins = new Harp();
            List <AirSlotAttributesClass> airSlots = new List <AirSlotAttributesClass>();

            airSlots.AddRange(hi.InstrumentNotesDefinition.Keys);
            ins.AirSlots    = airSlots;
            ins.Name        = hi.Name;
            ins.Description = hi.Name;
            ins.Stamp       = DateTime.Now;
            ins.Key         = hi.Key;
            var sq = new SQLDataClass(fileName);

            sq.InsertDatas(ins);


            hi       = HarpInstrumentFactory.HohnerUnsereLieblinge(eKey.C_DUR);
            ins      = new Harp();
            airSlots = new List <AirSlotAttributesClass>();
            airSlots.AddRange(hi.InstrumentNotesDefinition.Keys);
            ins.AirSlots    = airSlots;
            ins.Name        = hi.Name;
            ins.Description = hi.Name;
            ins.Stamp       = DateTime.Now;
            ins.Key         = hi.Key;

            sq.InsertDatas(ins);

            hi       = HarpInstrumentFactory.ChroamticStandard(eKey.C_DUR);
            ins      = new Harp();
            airSlots = new List <AirSlotAttributesClass>();
            airSlots.AddRange(hi.InstrumentNotesDefinition.Keys);
            ins.AirSlots    = airSlots;
            ins.Name        = hi.Name;
            ins.Description = hi.Name;
            ins.Stamp       = DateTime.Now;
            ins.Key         = hi.Key;

            sq.InsertDatas(ins);
        }