Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="offset"></param>
        private void ReadSingleCombi(int offset)
        {
            Common.Synth.Meta.IBank bank = CurrentPcgMemory.CombiBanks[0];
            bank.ByteOffset = 0;
            bank.ByteLength = 128;
            bank.IsWritable = true;
            bank.IsLoaded   = true;

            Common.Synth.Meta.IPatch combi = bank[0];
            combi.ByteOffset = offset;
            combi.ByteLength = bank.ByteLength;
            combi.IsLoaded   = true;
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="offset"></param>
        protected override void ReadSingleProgram(int offset)
        {
            IProgramBank bank = (IProgramBank)(CurrentPcgMemory.ProgramBanks[0]);

            bank.ByteOffset        = 0;
            bank.BankSynthesisType = ProgramBank.SynthesisType.Ai2;
            bank.ByteLength        = 172; // 172 bytes despite of 164 according to manual
            bank.IsWritable        = true;
            bank.IsLoaded          = true;

            Common.Synth.Meta.IPatch program = bank[0];
            program.ByteOffset = offset;
            program.ByteLength = bank.ByteLength;
            program.IsLoaded   = true;
        }
Example #3
0
        /// <summary>
        /// Improve: use parent method, set patch size in base class.
        /// </summary>
        /// <param name="offset"></param>
        protected virtual void ReadSingleProgram(int offset)
        {
            IProgramBank bank = (IProgramBank)(CurrentPcgMemory.ProgramBanks[0]);

            bank.ByteOffset        = 0;
            bank.BankSynthesisType = ProgramBank.SynthesisType.Ai2;
            bank.ByteLength        = 172;
            bank.IsWritable        = true;
            bank.IsLoaded          = true;

            Common.Synth.Meta.IPatch program = bank[0];
            program.ByteOffset = offset;
            program.ByteLength = bank.ByteLength;
            program.IsLoaded   = true;
        }