Counter with limits

One problem I see is this:

        if (octavas == 6)
        {
          octavas = 6;
        }

It should be >=, not ==.

1 Like