Пример #1
0
        private void InsertNewTuneElement(char c, int index)
        {
            TuneElement newTuneElement = null;

            if (c == '0')
            {
                newTuneElement = new Pause(previousDuration);
            }
            else
            {
                var pitch = pitchKeypressConverter.Parse(c.ToString());

                newTuneElement = new Note(pitch, previousScale, previousDuration);
            }

            nokiaComposerTuneElementList.Insert(index, newTuneElement);

            CurrentTuneElement = newTuneElement;
        }
 public void ParseNullParameterDoFail()
 {
     converter.Parse(null);
 }