コード例 #1
0
    public void addPhone(ProtoPhone newPhone, string newLetter)
    {
        ProtoPhone[] newArr = new ProtoPhone[phones.Length + 1];
        int          i      = 0;

        for (i = 0; i < phones.Length; i++)
        {
            newArr[i] = phones[i];
        }
        newArr[i] = newPhone;
        phones    = newArr;
        letters  += newLetter;
    }
コード例 #2
0
ファイル: Phone.cs プロジェクト: LechenDai43/LanguageCreator
 public void converProtoPhone(ProtoPhone pp)
 {
     this.IPA        = pp.IPA;
     this.FCB        = pp.FCB;
     this.Openness   = pp.Openness;
     this.Roundness  = pp.Roundness;
     this.Sornority  = pp.Sornority;
     this.POA        = pp.POA;
     this.MOA        = pp.MOA;
     this.Aspiration = pp.Aspiration;
     this.Voiceness  = pp.Voiceness;
     this.Contour    = pp.Contour;
     this.Level      = pp.Level;
 }
コード例 #3
0
    public void addPhone(Phoneme newPhone)
    {
        if (newPhone == null || newPhone.phones == null)
        {
            return;
        }
        ProtoPhone[] newArr = new ProtoPhone[phones.Length + newPhone.phones.Length];
        int          i      = 0;

        for (i = 0; i < phones.Length; i++)
        {
            newArr[i] = phones[i];
        }
        for (int j = 0; j < newPhone.phones.Length; j++)
        {
            newArr[i + j] = newPhone.phones[j];
        }
        phones   = newArr;
        letters += newPhone.letters;
    }