"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ling_class/EST_relation_track.cc" between
speech_tools-2.4-release.tar.gz and speech_tools-2.5.0-release.tar.gz

About: The speech_tools - Edinburgh Speech Tools Library (used by the Festival Speech Synthesis System).

EST_relation_track.cc  (speech_tools-2.4-release):EST_relation_track.cc  (speech_tools-2.5.0-release)
skipping to change at line 189 skipping to change at line 189
} }
static int pos_phone(const EST_Relation &seg, float x, float shift) static int pos_phone(const EST_Relation &seg, float x, float shift)
{ {
// returns true if x is in a positive segment. The decision is // returns true if x is in a positive segment. The decision is
// slightly biased towards positive inclusion when x is near // slightly biased towards positive inclusion when x is near
// a boundary. // a boundary.
EST_Item *p; EST_Item *p;
for (p = seg.head(); p != 0; p = p->next()) for (p = seg.head(); p != 0; p = inext(p))
if (p->f("pos") == 1) if (p->f("pos") == 1)
if ((x < (p->F("end") + (shift / 2.0))) && if ((x < (p->F("end") + (shift / 2.0))) &&
(x > (start(p) - (shift / 2.0)))) (x > (start(p) - (shift / 2.0))))
return 1; return 1;
return 0; return 0;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)