LibiadaMusic.BorodaDivider.FmotivDivider.ThirdTempMethod C# (CSharp) Method

ThirdTempMethod() private method

The third temp method.
private ThirdTempMethod ( Fmotiv fmotivBuffer, string fmotivType, int noteCount ) : Fmotiv
fmotivBuffer Fmotiv /// The fmotiv buffer. ///
fmotivType string /// The fmotiv type. ///
noteCount int /// The note count. ///
return Fmotiv
        private Fmotiv ThirdTempMethod(Fmotiv fmotivBuffer, string fmotivType, int noteCount)
        {
            var fmotiv = new Fmotiv(fmotivType);
            while (fmotivBuffer.NoteList.Count > 0)
            {
                if (ExtractNoteList(fmotiv).Count == noteCount)
                {
                    if (paramPauseTreatment != ParamPauseTreatment.NoteTrace)
                    {
                        break;
                    }

                    if ((paramPauseTreatment == ParamPauseTreatment.NoteTrace) &&
                        (fmotivBuffer.NoteList[0].Pitch.Count > 0))
                    {
                        break;
                    }
                }

                fmotiv.NoteList.Add((ValueNote)fmotivBuffer.NoteList[0].Clone());
                fmotivBuffer.NoteList.RemoveAt(0);

                TempMethod(fmotiv, fmotivBuffer);
            }

            return (Fmotiv)fmotiv.Clone();
        }