<div>(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!)</div><div><br class="webkit-block-placeholder"></div><div>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?
</div><div><br class="webkit-block-placeholder"></div><div>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.
</div><div><br class="webkit-block-placeholder"></div><div>Thanks!</div><div>B</div><br><div><span class="gmail_quote">On 6/28/07, <b class="gmail_sendername">David García Garzón</b> <<a href="mailto:dgarcia@iua.upf.edu">
dgarcia@iua.upf.edu</a>> wrote:</span><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">On Wednesday 27 June 2007 20:11:01 bennett kolasinski wrote:<br>> Incorporated some of David's comments into my earlier patch and trickled
<br>> new features into SchemaBrowser... please disregard patch from earlier<br>> today! B<br><br>Commit r10295<br>Thanks, Bennett.<br><br>Next step, make the ClamExtractorExample generate such kind of FloatArray:<br>
* On BuildSchema, add a call to add 'Frame::SpectrumMagnitude', guess or<br>invent the bin gap and offset.<br>* On MFCC2Pool get the write pool for such attribute and fill it.<br>* Regenarate the example pool data
<br><br>Further step, make feasible to visualize such FloatArray attributes, in<br>PoolFloatArrayDataSource (PFADS) and InstantViewPlugin:<br>* PFADS::nBins() should be taken from the new attribute property NBins if<br>available, if not, from the labels size as it is done now.
<br>* PFADS::getLabel should return:<br>** The binLabel if bin<_binLabel size.<br>** A numeric representation if the needed attribute properties is available<br>** Empty string or 'ERR' if not<br>* For BarGraph filter FloatArrays without binLabels AND without NBins
<br>* Adapt all the InstantViewPlugins to use the NBins when available.<br>* Run the Annotator, add a BarGraph for SpectrumMagnitude and send a<br>development screenshot to the wiki ;-)<br><br>Very further step: Add a view for temporal evolution of FloatArrays
<br><br>Consider to put this todos on the wiki, modify them as you feel or as problems<br>emerge, and check them when done.<br><br>David.<br><br></blockquote></div><br>