Click here to Skip to main content
15,883,978 members
Articles / Web Development / HTML

How to change the pitch and tempo of a sound

Rate me:
Please Sign up or sign in to vote.
4.91/5 (34 votes)
24 Sep 2011LGPL36 min read 195.5K   14.9K   71  
This article shows how to change the pitch and tempo of a sound.
////////////////////////////////////////////////////////////////////////////////
///
/// A class for parsing the cpct application command line parameters
///
////////////////////////////////////////////////////////////////////////////////

#ifndef PARSEPARAMS_H
#define PARSEPARAMS_H

#include <string>
using namespace std;

class ParseParams
{
private:
	char* infile;
	char* outfile;
	float tempo;
	float pitch;

	void setFileName(int numparams, char* params[]);
	void setTempoPitch(int numparams, char* params[]);

public:
	ParseParams(int numparams, char* params[] );
	char* getInputFile();
	char* getOutputFile();
	float getTempo();
	float getPitch();

};

#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


Written By
China China
E-mail:calinyara@gmail.com

Comments and Discussions