Class MoraIndentity
FullContextLabLineのモーラ(拍)情報
Namespace: LibSasara.Model.FullContextLabel
Assembly: LibSasara.dll
Syntax
public record MoraIndentity : IFullContext, IEquatable<MoraIndentity>
Constructors
MoraIndentity(ReadOnlyMemory<char>)
FullContextLabLineのモーラ(拍)情報
Declaration
public MoraIndentity(ReadOnlyMemory<char> curtMoraInfo)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlyMemory<char> | curtMoraInfo |
MoraIndentity(string, int, int)
FullContextLabLineのモーラ(拍)情報
Declaration
public MoraIndentity(string a1, int a2, int a3)
Parameters
Type | Name | Description |
---|---|---|
string | a1 | |
int | a2 | |
int | a3 |
Properties
AccentPosDiff
the difference between accent type and position of the current mora identity
Declaration
public string AccentPosDiff { get; set; }
Property Value
Type | Description |
---|---|
string | "xx" or number string(-49 ∼ 49) |
BackwardPos
position of the current mora identity in the current accent phrase (backward)
Declaration
public int BackwardPos { get; set; }
Property Value
Type | Description |
---|---|
int | "xx" or number string(1 ∼ 49) |
ForwardPos
position of the current mora identity in the current accent phrase (forward)
Declaration
public int ForwardPos { get; set; }
Property Value
Type | Description |
---|---|
int | "xx" or number string(1 ∼ 49) |
HasValidAccentPosDiff
有効な AccentPosDiffを持っているかどうか
Declaration
public bool HasValidAccentPosDiff { get; }
Property Value
Type | Description |
---|---|
bool |
IsMora
モーラかどうか
Declaration
public bool IsMora { get; }
Property Value
Type | Description |
---|---|
bool |
Remarks
pauやsilなどの場合はfalse
Positions
a set of positions of the current mora identity in the current accent phrase (forward / backward)
Declaration
public (int Forward, int Backward) Positions { get; }
Property Value
Type | Description |
---|---|
(int octave, int step) | invalid: -1, valid: 1 ∼ 49 |
Methods
TryGetAccentPosDiffValue(out int)
有効な AccentPosDiffを持っているかどうかを調べて、有効な場合は値を返す
Declaration
public bool TryGetAccentPosDiffValue(out int value)
Parameters
Type | Name | Description |
---|---|---|
int | value | 有効な場合の差分値 |
Returns
Type | Description |
---|---|
bool |