Bugs item #3299042, was opened at 2011-05-08 15:11 Message generated for change (Comment added) made by mcrodgers You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=564599&aid=3299042&group_id=81968 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Csound API Group: csound5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Martin Rodgers (mcrodgers) Assigned to: Nobody/Anonymous (nobody) Summary: cscoreListExtractTime always returns an empty list Initial Comment: cscoreListExtractTime always returns an empty list. Fix: followed each call to cscoreCopyEvent with the statement: "b->nevents++;" This will reveal a range bug, which can be fixed by replacing the "(e->p[2] < to)" test with "((e->p[2] >= from) && (e->p[2] < to))". ---------------------------------------------------------------------- >Comment By: Martin Rodgers (mcrodgers) Date: 2011-08-21 19:14 Message: void cscore(CSOUND *cs) { EVLIST *a = cscoreListGetSection(cs); EVLIST *b = cscoreListExtractTime(cs, a, FL(1.0), FL(3.0)); printf("%d\n", cscoreListCount(cs, b)); // this always prints '0' } i1 0 1 1 i1 1 1 2 i1 2 1 3 i1 3 1 4 ---------------------------------------------------------------------- Comment By: John ffitch (jpff) Date: 2011-08-21 17:37 Message: Please can you supply either a test program, or a fixed source file, or both? I am having trouble understanding both the error and the fix ---------------------------------------------------------------------- Comment By: John ffitch (jpff) Date: 2011-07-05 18:04 Message: Can be have a test program? I am not sure how to use cscore ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=564599&aid=3299042&group_id=81968 ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net