Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

PitchEvent.cc File Reference

Implements PitchEvent, which provides information about a tone detected from the microphone(s). More...

#include "PitchEvent.h"
#include "EventBase.h"
#include <sstream>
#include <libxml/tree.h>
Include dependency graph for PitchEvent.cc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define SAVE_PARAM(name)
 a little local macro to make saving fields easier

Detailed Description

Implements PitchEvent, which provides information about a tone detected from the microphone(s).

Author:
Matus Telgarsky and Jonah Sherman (Creators)
Ethan Tira-Thompson (imported into framework)

Originally written as a part of a final project at Carnegie Mellon (15-494 Cognitive Robotics, Spring 2006)

Definition in file PitchEvent.cc.


Define Documentation

#define SAVE_PARAM ( name   ) 
Value:
{ \
  xmlNode* cur=xmlNewChild(node,NULL,(const xmlChar*)"param",NULL); \
  if(cur==NULL) \
    throw bad_format(node,"Error: PitchEvent xml error on saving param"); \
  xmlSetProp(cur,(const xmlChar*)"name",(const xmlChar*)#name); \
  char valbuf[20]; \
  snprintf(valbuf,20,"%g",name); \
  xmlSetProp(cur,(const xmlChar*)"value",(const xmlChar*)valbuf); }

a little local macro to make saving fields easier

Definition at line 87 of file PitchEvent.cc.


Tekkotsu v5.1CVS
Generated Mon May 9 04:59:00 2016 by Doxygen 1.6.3