Mercurial > hg > amuse
comparison implementations/mtp/methods.lisp @ 98:cb7576b21c8e
implementations/mtp/: implement GROUND-TRUTH-SEGMENTER-{BEFORE,AFTER}
darcs-hash:20070724135109-c0ce4-387415a9014a7205e5f6a232db20493ceb6df8ec.gz
author | Marcus Pearce <m.pearce@gold.ac.uk> |
---|---|
date | Tue, 24 Jul 2007 14:51:09 +0100 |
parents | fade42e8a087 |
children | 43d3e707b384 |
comparison
equal
deleted
inserted
replaced
97:6a9349bfde7f | 98:cb7576b21c8e |
---|---|
272 (make-mtp-event :cpitch cpitch :mpitch (* (/ cpitch 12) 7)))) | 272 (make-mtp-event :cpitch cpitch :mpitch (* (/ cpitch 12) 7)))) |
273 #.(clsql:restore-sql-reader-syntax-state) | 273 #.(clsql:restore-sql-reader-syntax-state) |
274 | 274 |
275 ;;; Phrase boundaries | 275 ;;; Phrase boundaries |
276 | 276 |
277 (defmethod ground-truth-segmenter-before ((c mtp-composition)) | |
278 (declare (ignore c)) | |
279 (make-instance 'mtp-before-segmenter)) | |
280 | |
281 (defmethod ground-truth-segmenter-after ((c mtp-composition)) | |
282 (declare (ignore c)) | |
283 (make-instance 'mtp-before-segmenter)) | |
284 | |
285 (defmethod ground-truth-segmenter-before ((e mtp-event)) | |
286 (declare (ignore e)) | |
287 (make-instance 'mtp-before-segmenter)) | |
288 | |
289 (defmethod ground-truth-segmenter-after ((e mtp-event)) | |
290 (declare (ignore e)) | |
291 (make-instance 'mtp-before-segmenter)) | |
292 | |
277 (defmethod boundary-strength ((s mtp-before-segmenter) (e mtp-event) c) | 293 (defmethod boundary-strength ((s mtp-before-segmenter) (e mtp-event) c) |
278 (declare (ignore s c)) | 294 (declare (ignore s c)) |
279 (let ((phrase (%mtp-phrase e))) | 295 (let ((phrase (%mtp-phrase e))) |
280 (case phrase | 296 (case phrase |
281 (-1 1) | 297 (-1 1) |