Esempio n. 1
0
        public override string ToString()
        {
            string res = "\n";

            if (patternRows[0] != null)
            {
                string ln = "====";
                for (int i = 0; i < patternRows[0].patternChannels.Count; i++)
                {
                    ln += "===========";
                }

                res += ln + "\n";

                for (int i = 0; i < patternRows.Count; i++)
                {
                    res += ModuleUtils.GetAsHex((uint)i, 2) + ":|" + patternRows[i] + "\n";
                }

                res += ln + "\n";
            }
            else
            {
                res += "empty pattern\n";
            }
            return(res);
        }
Esempio n. 2
0
        public override string ToString()
        {
            string res = "\n";

            res += "\n" + "headerLength : " + headerLength;
            res += "\n" + "packingType : " + packingType;
            res += "\n" + "numberOfRows : " + numberOfRows;
            res += "\n" + "packedSize : " + packedSize;
            res += "\n";

            if (patternRows[0] != null)
            {
                string ln = "====";
                for (int i = 0; i < patternRows[0].patternChannels.Count; i++)
                {
                    ln += "===============";
                }

                res += ln + "\n";

                for (int i = 0; i < patternRows.Count; i++)
                {
                    res += ModuleUtils.GetAsHex((uint)i, 2) + ":|" + patternRows[i] + "\n";
                }

                res += ln + "\n";
            }
            else
            {
                res += "empty pattern\n";
            }
            return(res);
        }
Esempio n. 3
0
        public override string ToString()
        {
            string res = ModuleConst.GetNoteNameToIndex((int)noteIndex);

            res += ((period == 0 && noteIndex != 0) || (period != 0 && noteIndex == 0)) ? "!" : " ";
            res += (instrumentIndex != 0) ? ModuleUtils.GetAsHex(instrumentIndex, 2) : "..";
            res += " ";
            res += ((effekt != 0) || (effektOp != 0)) ? ModuleUtils.GetAsHex(effekt, 1) + ModuleUtils.GetAsHex(effektOp, 2) : "...";
            return(res);
        }
Esempio n. 4
0
        public override string ToString()
        {
            string res = GetNoteNameToIndex(noteIndex);

            //res += ((period == 0 && noteIndex != 0) || (period != 0 && noteIndex == 0)) ? "!" : " ";
            res += " " + ((instrumentIndex != 0) ? ModuleUtils.GetAsDec(instrumentIndex, 2) : "..");
            res += " " + getVolumeEffectString(volumeEffect) + " ";
            res += ((effekt != 0) && (effekt < 34)) ? effectStrings[effekt] + ModuleUtils.GetAsHex(effektOp, 2) : "...";
            return(res);
        }
Esempio n. 5
0
        public string InstrumentsToString()
        {
            string res = "Samples info : \n";
            int    i   = 0;

            foreach (MOD_Instrument inst in Instruments.List)
            {
                res += ModuleUtils.GetAsHex((uint)i++, 2) + ':' + inst.ToString() + "\n";
            }
            return(res);
        }