[Clam-devel] [PATCH] Hacking ClamExtractorExample (incomplete)

bennett kolasinski bennett.kolasinski at gmail.com
Thu Jun 28 20:33:44 PDT 2007


(Sending this patch to the list for the sake of open communication with my
GSoC mentor even though it is INCOMPLETE-- please do not apply to your
sandboxen!)

David-- I have been modifying ClamExtractorExample and I think I'm pretty
close to a complete patch for this step, but I'm not sure what attribute to
add for the SpectrumMagnitude WritePool (as per your suggestion of
populating the WritePool in MFCC2Pool).  I was thinking something along the
lines of spectrum.GetMag but I don't think that's right.  Line 597 of
ClamExtractorExample.cxx (after applying my patch) is the one i'm
questioning.  (This code compiles and runs but doesn't do anything
interesting).  Suggestions?

BTW-- I had to call schemaAttribute.UpdateData() after adding the new
properties but before populating them or else I get a crash when running the
extractor, so that's in this patch too.

Thanks!
B

On 6/28/07, David García Garzón <dgarcia at iua.upf.edu> wrote:
>
> On Wednesday 27 June 2007 20:11:01 bennett kolasinski wrote:
> > Incorporated some of David's comments into my earlier patch and trickled
> > new features into SchemaBrowser... please disregard patch from earlier
> > today! B
>
> Commit r10295
> Thanks, Bennett.
>
> Next step, make the ClamExtractorExample generate such kind of FloatArray:
> * On BuildSchema, add a call to add 'Frame::SpectrumMagnitude', guess or
> invent the bin gap and offset.
> * On MFCC2Pool get the write pool for such attribute and fill it.
> * Regenarate the example pool data
>
> Further step, make feasible to visualize such FloatArray attributes, in
> PoolFloatArrayDataSource (PFADS) and InstantViewPlugin:
> * PFADS::nBins() should be taken from the new attribute property NBins if
> available, if not, from the labels size as it is done now.
> * PFADS::getLabel should return:
> ** The binLabel if bin<_binLabel size.
> ** A numeric representation if the needed attribute properties is
> available
> ** Empty string or 'ERR' if not
> * For BarGraph filter FloatArrays without binLabels AND without NBins
> * Adapt all the InstantViewPlugins to use the NBins when available.
> * Run the Annotator, add a BarGraph for SpectrumMagnitude and send a
> development screenshot to the wiki ;-)
>
> Very further step: Add a view for temporal evolution of FloatArrays
>
> Consider to put this todos on the wiki, modify them as you feel or as
> problems
> emerge, and check them when done.
>
> David.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20070628/9d1d2481/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ClamEEUpdate.patch
Type: application/octet-stream
Size: 1631 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20070628/9d1d2481/attachment-0002.obj>


More information about the clam-devel mailing list