/// <summary> /// このインスタンスの内容を指定されたファイルに出力します。 /// </summary> /// <param name="sw"></param> /// <param name="encode"></param> public void print(ITextWriter sw, int eos, int start) { if (Common != null) { Common.write(sw); } if (master != null) { master.write(sw); } if (mixer != null) { mixer.write(sw); } List <VsqHandle> handle = writeEventList(sw, eos); foreach (var item in Events.iterator()) { item.write(sw); } for (int i = 0; i < handle.Count; i++) { handle[i].write(sw); } string version = Common.Version; if (PIT.size() > 0) { PIT.print(sw, start, "[PitchBendBPList]"); } if (PBS.size() > 0) { PBS.print(sw, start, "[PitchBendSensBPList]"); } if (DYN.size() > 0) { DYN.print(sw, start, "[DynamicsBPList]"); } if (BRE.size() > 0) { BRE.print(sw, start, "[EpRResidualBPList]"); } if (BRI.size() > 0) { BRI.print(sw, start, "[EpRESlopeBPList]"); } if (CLE.size() > 0) { CLE.print(sw, start, "[EpRESlopeDepthBPList]"); } if (version.StartsWith("DSB2")) { if (harmonics.size() > 0) { harmonics.print(sw, start, "[EpRSineBPList]"); } if (fx2depth.size() > 0) { fx2depth.print(sw, start, "[VibTremDepthBPList]"); } if (reso1FreqBPList.size() > 0) { reso1FreqBPList.print(sw, start, "[Reso1FreqBPList]"); } if (reso2FreqBPList.size() > 0) { reso2FreqBPList.print(sw, start, "[Reso2FreqBPList]"); } if (reso3FreqBPList.size() > 0) { reso3FreqBPList.print(sw, start, "[Reso3FreqBPList]"); } if (reso4FreqBPList.size() > 0) { reso4FreqBPList.print(sw, start, "[Reso4FreqBPList]"); } if (reso1BWBPList.size() > 0) { reso1BWBPList.print(sw, start, "[Reso1BWBPList]"); } if (reso2BWBPList.size() > 0) { reso2BWBPList.print(sw, start, "[Reso2BWBPList]"); } if (reso3BWBPList.size() > 0) { reso3BWBPList.print(sw, start, "[Reso3BWBPList]"); } if (reso4BWBPList.size() > 0) { reso4BWBPList.print(sw, start, "[Reso4BWBPList]"); } if (reso1AmpBPList.size() > 0) { reso1AmpBPList.print(sw, start, "[Reso1AmpBPList]"); } if (reso2AmpBPList.size() > 0) { reso2AmpBPList.print(sw, start, "[Reso2AmpBPList]"); } if (reso3AmpBPList.size() > 0) { reso3AmpBPList.print(sw, start, "[Reso3AmpBPList]"); } if (reso4AmpBPList.size() > 0) { reso4AmpBPList.print(sw, start, "[Reso4AmpBPList]"); } } if (GEN.size() > 0) { GEN.print(sw, start, "[GenderFactorBPList]"); } if (POR.size() > 0) { POR.print(sw, start, "[PortamentoTimingBPList]"); } if (version.StartsWith("DSB3")) { if (OPE.size() > 0) { OPE.print(sw, start, "[OpeningBPList]"); } } }