[Clam-devel] Re: [PATCH] Re: adding spectrum magnitude to annotator discussion

bennett kolasinski bennett.kolasinski at gmail.com
Thu Jul 5 10:25:53 PDT 2007


Patch attached with fixes.  Couple questions:

So many errors should have ended in something noticeable but in fact we are
> not having any error because we are not using them. They should be used on
> PoolFloatArrayDataSource::getLabel, but now it is computing the label by
> returning the string formatting of NBins, instead the string formatting of
> offset+i*bingap.


I updated PFADS::getLabel but I'm not sure what you mean by offset-- you
mean the starting frequency (which, the more i think about it, might not be
a necessary attribute at all since you said it's always 0)?  So getLabel now
returns bin*binGap if the bin does not have a label, which should be the
starting frequency of the bin.


also- PFADS::setCurrentTime uses binLabels but I'm not sure of the purpose
of the function so I'm not sure what to do about removing them.  The code
shouldn't crash but I think a call to setCurrentTime with no binLabels
assigned will set the _frameData attribute to 0... hmm maybe that is bad.

and finally-- ok, I'm not sure if it's my mac quirks or me still needing to
work out how to use Annotator well... but I can't figure out how to get rid
of views in Annotator after I add them.  Is there supposed to be a close
widget on them or am I missing something?  And the first bin of the MFCC bar
view when I've been running it always seems to be at its max value, which I
think is causing the view of the other bins to be scaled and thus be pretty
small.

OK, hope this patch helps...
B

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20070705/9a98d5d8/attachment-0003.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PFADSUpdate.patch
Type: application/octet-stream
Size: 2739 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20070705/9a98d5d8/attachment-0003.obj>


More information about the clam-devel mailing list