Пример #1
0
            public bool hasNext()
            {
                int c = m_list.getCount();

                for (int i = m_pos + 1; i < c; i++)
                {
                    if (m_list.getElement(i).ID.type == VsqIDType.Aicon)
                    {
                        return(true);
                    }
                }
                return(false);
            }
Пример #2
0
            public VsqEvent next()
            {
                int nextIndex = findNextIndex();

                if (0 <= nextIndex && nextIndex < source.getCount())
                {
                    lastIndex = nextIndex;
                    return(source.getElement(nextIndex));
                }
                else
                {
                    return(null);
                }
            }
Пример #3
0
            public bool hasNext()
            {
                int count = list.getCount();

                for (int i = pos + 1; i < count; i++)
                {
                    VsqEvent item = list.getElement(i);
                    if (kindSinger)
                    {
                        if (item.ID.type == VsqIDType.Singer)
                        {
                            return(true);
                        }
                    }
                    if (kindNote)
                    {
                        if (item.ID.type == VsqIDType.Anote)
                        {
                            return(true);
                        }
                    }
                    if (item.ID.type == VsqIDType.Aicon && item.ID.IconDynamicsHandle != null && item.ID.IconDynamicsHandle.IconID != null)
                    {
                        string iconid = item.ID.IconDynamicsHandle.IconID;
                        if (kindDynaff)
                        {
                            if (iconid.StartsWith(IconDynamicsHandle.ICONID_HEAD_DYNAFF))
                            {
                                return(true);
                            }
                        }
                        if (kindCrescend)
                        {
                            if (iconid.StartsWith(IconDynamicsHandle.ICONID_HEAD_CRESCEND))
                            {
                                return(true);
                            }
                        }
                        if (kindDecrescend)
                        {
                            if (iconid.StartsWith(IconDynamicsHandle.ICONID_HEAD_DECRESCEND))
                            {
                                return(true);
                            }
                        }
                    }
                }
                return(false);
            }
Пример #4
0
            public bool MoveNext()
            {
                int count = m_list.getCount();

                for (int i = m_pos + 1; i < count; i++)
                {
                    VsqEvent item = m_list.getElement(i);
                    if (item.ID.type == VsqIDType.Anote)
                    {
                        m_pos = i;
                        return(true);
                    }
                }
                m_pos = count;
                return(false);
            }
Пример #5
0
        /// <summary>
        /// EOSイベントが記録されているクロックを取得します。
        /// </summary>
        /// <returns></returns>
        public int getIndexOfEOS()
        {
            if (Events == null)
            {
                return(-1);
            }
            int result;

            if (Events.getCount() > 0)
            {
                int ilast = Events.getCount() - 1;
                result = Events.getElement(ilast).Clock;
            }
            else
            {
                result = -1;
            }
            return(result);
        }
Пример #6
0
 public VsqEvent next()
 {
     m_pos++;
     return(m_list.getElement(m_pos));
 }