Code Search for Developers
 
 
  

writefile.cpp.texinfo from marsyas at Krugle


Show writefile.cpp.texinfo syntax highlighted

@c Generator: GNU source-highlight, by Lorenzo Bettini, http://www.gnu.org/software/src-highlite
@example
@b{#include} @t{"MarSystemManager.h"}
@b{using} @b{namespace} std;
@b{using} @b{namespace} Marsyas;

void @b{recognize}(string sfName)
@{
       MarSystemManager mng;
       MarSystem* pnet = mng.@b{create}(@t{"Series"}, @t{"pnet"});
@i{// standard network}
       pnet->@b{addMarSystem}(mng.@b{create}(@t{"SoundFileSource"}, @t{"src"}));
       pnet->@b{updctrl}(@t{"SoundFileSource/src/mrs_string/filename"}, sfName);
       pnet->@b{addMarSystem}(mng.@b{create}(@t{"Spectrum"},@t{"spk"}));

@i{// add a PlotSink wherever we want to get data from}
       pnet->@b{addMarSystem}(mng.@b{create}(@t{"PlotSink"},@t{"plot"}));
       pnet->@b{updctrl}(@t{"PlotSink/plot/mrs_string/filename"}, @t{"out"});

       @b{while} ( pnet->@b{getctrl}(@t{"SoundFileSource/src/mrs_bool/notEmpty"})->to<mrs_bool>() )
       @{
              pnet->@b{tick}();
       @}
       @b{delete} pnet;
@}

int @b{main}(int argc, @b{const} char **argv)
@{
       string fileName;
       @b{if} (argc<2)
       @{
              cout<<@t{"Please enter filename."}<<endl;
              @b{exit}(1);
       @}
       @b{else}
       @{
              fileName = argv[1];
       @}
       cout << @t{"Processing file "} << fileName << endl;

       @b{recognize}(fileName);
       @b{exit}(0);
@}

@end example



See more files for this project here

marsyas

Marsyas (Music Analysis, Retrieval and Synthesis for Audio Signals) is a framework for developing systems for audio processing. It provides an general architecture for connecting audio, soundfiles, signal processing blocks and machine learning.

Project homepage: http://sourceforge.net/projects/marsyas
Programming language(s): C++
License: other

  backend.cpp.html
  backend.cpp.texinfo
  backend.h.html
  backend.h.texinfo
  commandOptions.cpp.html
  commandOptions.cpp.texinfo
  controls.cpp.html
  controls.cpp.texinfo
  dataflow-split.cpp.html
  dataflow-split.cpp.texinfo
  gettingdata.cpp.html
  gettingdata.cpp.texinfo
  helloworld.cpp.html
  helloworld.cpp.texinfo
  main.cpp.html
  main.cpp.texinfo
  mainwindow.cpp.html
  mainwindow.cpp.texinfo
  mainwindow.h.html
  mainwindow.h.texinfo
  tutorial.pro.html
  tutorial.pro.texinfo
  writefile.cpp.html
  writefile.cpp.texinfo