mirror of
https://git.femboyfinancial.jp/james/lipsync.git
synced 2025-11-30 00:23:52 -08:00
git-svn-id: http://svn.sourceforge.jp/svnroot/lipsync@11 b1f601f4-4f45-0410-8980-aecacb008692
This commit is contained in:
@@ -113,6 +113,10 @@ namespace Boare.Lib.Vsq {
|
||||
DepthBP = new VibratoBPList();
|
||||
}
|
||||
|
||||
/*public static VibratoHandle[] fromVED( string ved_file, int original ){
|
||||
|
||||
}*/
|
||||
|
||||
public object Clone() {
|
||||
VibratoHandle result = new VibratoHandle();
|
||||
result.Index = Index;
|
||||
|
||||
@@ -23,11 +23,12 @@ namespace Boare.Lib.Vsq {
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class VsqID : ICloneable {
|
||||
public const int MAX_NOTE_LENGTH = 16383;
|
||||
internal int value;
|
||||
public VsqIDType type;
|
||||
internal int IconHandle_index;
|
||||
public IconHandle IconHandle;
|
||||
public int Length;
|
||||
private int m_length;
|
||||
public int Note;
|
||||
public int Dynamics;
|
||||
public int PMBendDepth;
|
||||
@@ -42,9 +43,28 @@ namespace Boare.Lib.Vsq {
|
||||
public int VibratoDelay;
|
||||
internal int NoteHeadHandle_index;
|
||||
public NoteHeadHandle NoteHeadHandle;
|
||||
public int pMeanOnsetFirstNote = 0x0a;
|
||||
public int vMeanNoteTransition = 0x0c;
|
||||
public int d4mean = 0x18;
|
||||
public int pMeanEndingNote = 0x0c;
|
||||
|
||||
public static VsqID EOS = new VsqID( -1 );
|
||||
|
||||
public int Length {
|
||||
get {
|
||||
return m_length;
|
||||
}
|
||||
set {
|
||||
if ( value < 0 ) {
|
||||
m_length = 0;
|
||||
} else if ( MAX_NOTE_LENGTH < value ) {
|
||||
m_length = MAX_NOTE_LENGTH;
|
||||
} else {
|
||||
m_length = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// このインスタンスの簡易コピーを取得します。
|
||||
/// </summary>
|
||||
@@ -63,6 +83,10 @@ namespace Boare.Lib.Vsq {
|
||||
result.PMbPortamentoUse = this.PMbPortamentoUse;
|
||||
result.DEMdecGainRate = this.DEMdecGainRate;
|
||||
result.DEMaccent = this.DEMaccent;
|
||||
result.d4mean = this.d4mean;
|
||||
result.pMeanOnsetFirstNote = this.pMeanOnsetFirstNote;
|
||||
result.vMeanNoteTransition = this.vMeanNoteTransition;
|
||||
result.pMeanEndingNote = this.pMeanEndingNote;
|
||||
if ( this.LyricHandle != null ) {
|
||||
result.LyricHandle = (LyricHandle)this.LyricHandle.Clone();
|
||||
}
|
||||
|
||||
@@ -845,15 +845,15 @@ namespace Boare.Lib.Vsq {
|
||||
}
|
||||
|
||||
public static bool test( string fpath ) {
|
||||
VsqMetaText metaText;
|
||||
/*VsqMetaText metaText;
|
||||
using ( TextMemoryStream sr = new TextMemoryStream( fpath, Encoding.Unicode ) ) {
|
||||
metaText = new VsqMetaText( sr );
|
||||
}
|
||||
}*/
|
||||
string result = "test.txt";
|
||||
|
||||
StreamReader honmono = new StreamReader( fpath );
|
||||
TextMemoryStream copy = new TextMemoryStream( FileAccess.ReadWrite );
|
||||
metaText.print( copy, true, 1000, 100 );
|
||||
TextMemoryStream copy = new TextMemoryStream();
|
||||
//metaText.print( copy, true, 1000, 100 );
|
||||
copy.rewind();
|
||||
while ( honmono.Peek() >= 0 && copy.peek() >= 0 ) {
|
||||
string hon = honmono.ReadLine();
|
||||
|
||||
Reference in New Issue
Block a user