view Source/Main.cpp @ 1:e86e9c111b29

Updates stuff that potentially fixes the memory leak and also makes it work on Windows and Linux (Need to test). Still have to fix fftw include for linux in Jucer.
author David Ronan <d.m.ronan@qmul.ac.uk>
date Thu, 09 Jul 2015 15:01:32 +0100
parents 25bf17994ef1
children 005e311b5e62
line wrap: on
line source
/*
  ==============================================================================

    This file was auto-generated!

    It contains the basic startup code for a Juce application.

  ==============================================================================
*/

#include<string>

#include "../JuceLibraryCode/JuceHeader.h"
#include "AudioFileData.h"
#include "AudioReader.h"
#include "ParseCSV.h"
#include <iostream>



//==============================================================================
int main (int argc, char* argv[])
{
	if(argc == 4)
	{
		cout << "*** Feature Extraction Tool ***\n";
		cout << "*** Native Instruments 2014 ***\n";
		cout << "*** Written by David Ronan  ***\n\n\n";

		std::string fileName;
		fileName = argv[1];
		int poolTimeSecs = atoi(argv[2]);
		int analysisWindowSize = atoi(argv[3]);

		ParseCSV parser = ParseCSV();
		AudioReader audioReader = AudioReader();
		audioReader.Read(parser.Parse(fileName), (float)poolTimeSecs, analysisWindowSize);
	}
	else
	{
		cout << "ERROR: Not enough parameters\n";
	}
    return 0;
}