private void SetNoteSound(ChannelMessage channelMessage)
        {
            Pitch       pitch;
            Octave      octave;
            MoleOrCross mole;

            helper.GetPitch(previousMidiKey, channelMessage.Data1, out pitch, out octave, out mole);

            // Append the new note.
            noteBuilder = new NoteBuilder();
            noteBuilder.SetPitch(pitch);
            noteBuilder.SetOctave(octave);
            noteBuilder.SetMole(mole);

            previousMidiKey     = channelMessage.Data1;
            startedNoteIsClosed = false;
        }