Skip to content

DylanFouche/SAMP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAMP

A simple audio manipulation program in C++.

Compile

$make

Run

$./bin/samp -r [sampleRateInHz] -b [bitCount] -c [noChannels] < -o outFileName > [ops] [soundFile1] <soundFile2>

Notes

• "soundFile1" and "soundFile2" are paths to raw audio files.
• "outputFileName" is a prefix for the output audio file.
• -r Specifies the number of samples per second of the audio file(s).
• -b Specifies the size (in bits) of each sample. Only 8bit and 16bit are supported.
• -c Number of channels in the audio file(s). Only mono (1) and stereo (2) are supported.

Operations

• -add: add soundFile1 and soundFile2
• -cut r1 r2: remove samples over range [r1,r2](assumes one sound file)
• -radd r1 r2 s1 s2 : add soundFile1 and soundFile2 over sub-ranges indicated (in seconds). The ranges must be equal in length.
• -cat: concatenate soundFile1 and soundFile2
• -v r1 r2: volume factor for left/right audio (assumes one sound file)
• -rev: reverse sound file (assumes one sound file)
• -rms: Prints out the RMS of the sound file (assumes one sound file)
• -norm r1 r2: normalize file for left/right audio (assumes one sound file and that r1 and r2 are floating point RMS values)

Help

$./bin/samp

Test

$make test

Clean

$make clean   //remove object files
$make nuke    //remove object files and executables

File structure

src: source code cpp files
include: header files
test: test source cpp files
audio: raw audio files
build: object files
bin: executables

About

A simple audio manipulation program in C++.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published