mirror of
https://git.femboyfinancial.jp/james/lipsync.git
synced 2024-11-25 03:52:02 -08:00
54 lines
1.4 KiB
C#
54 lines
1.4 KiB
C#
|
/*
|
|||
|
* VsqBarLineType.cs
|
|||
|
* Copyright (c) 2008-2009 kbinani
|
|||
|
*
|
|||
|
* This file is part of Boare.Lib.Vsq
|
|||
|
*
|
|||
|
* Boare.Lib.Vsq is free software; you can redistribute it and/or
|
|||
|
* modify it under the terms of the BSD License.
|
|||
|
*
|
|||
|
* Boare.Lib.Vsq is distributed in the hope that it will be useful,
|
|||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|||
|
*/
|
|||
|
using System;
|
|||
|
|
|||
|
namespace Boare.Lib.Vsq {
|
|||
|
|
|||
|
public struct VsqBarLineType {
|
|||
|
private int m_clock;
|
|||
|
private bool m_is_separator;
|
|||
|
private int m_denominator;
|
|||
|
private int m_numerator;
|
|||
|
private int m_bar_count;
|
|||
|
|
|||
|
public int getBarCount() {
|
|||
|
return m_bar_count;
|
|||
|
}
|
|||
|
|
|||
|
public int getLocalDenominator() {
|
|||
|
return m_denominator;
|
|||
|
}
|
|||
|
|
|||
|
public int getLocalNumerator() {
|
|||
|
return m_numerator;
|
|||
|
}
|
|||
|
|
|||
|
public int clock() {
|
|||
|
return m_clock;
|
|||
|
}
|
|||
|
|
|||
|
public bool isSeparator() {
|
|||
|
return m_is_separator;
|
|||
|
}
|
|||
|
|
|||
|
public VsqBarLineType( int clock, bool is_separator, int denominator, int numerator, int bar_count ) {
|
|||
|
m_clock = clock;
|
|||
|
m_is_separator = is_separator;
|
|||
|
m_denominator = denominator;
|
|||
|
m_numerator = numerator;
|
|||
|
m_bar_count = bar_count;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
}
|