mirror of
https://git.femboyfinancial.jp/james/lipsync.git
synced 2024-11-26 04:12:00 -08:00
51 lines
1.4 KiB
C#
51 lines
1.4 KiB
C#
/*
|
|
* TimeSig.cs
|
|
* Copyright (c) 2007-2009 kbinani
|
|
*
|
|
* This file is part of LipSync.
|
|
*
|
|
* LipSync is free software; you can redistribute it and/or
|
|
* modify it under the terms of the BSD License.
|
|
*
|
|
* LipSync 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 LipSync {
|
|
|
|
/// <summary>
|
|
/// 旧バージョン用。現在は使われていない。
|
|
/// </summary>
|
|
[Serializable, Obsolete]
|
|
public class TimeSig {
|
|
public TimeSigType Type;
|
|
/// <summary>
|
|
/// 拍子・またはテンポが変更される時間位置
|
|
/// </summary>
|
|
public float Start;
|
|
/// <summary>
|
|
/// 拍子変更後の4分音符の長さ
|
|
/// </summary>
|
|
public float Length;
|
|
/// <summary>
|
|
/// 拍子の分母
|
|
/// </summary>
|
|
public int Denominator;
|
|
/// <summary>
|
|
/// 拍子の分子
|
|
/// </summary>
|
|
public int Numerator;
|
|
|
|
public TimeSig( TimeSigType type, float start, float length, int denominator, int numerator ) {
|
|
Type = type;
|
|
Start = start;
|
|
Length = length;
|
|
Denominator = denominator;
|
|
Numerator = numerator;
|
|
}
|
|
}
|
|
|
|
}
|