cosmicb0y / amr Goto Github PK
View Code? Open in Web Editor NEWAudio Modulation Reverter
Audio Modulation Reverter
Add pitch value slider bar in main windows. You can use Horizontal Slider(QSlider) component in Qt Create Design mode.
See the latest code of AudioModulator::pitchShift(AudioDataParam param) in audiomodulator.cpp.
https://github.com/c0smicv0w/amr/blob/1f9eff2e9540e755ad3a73a0a1e8f7a68327f05d/src/audiomodulator.cpp
Suppose that param.pcmIn->size() is 1024(2048 bytes).
int numElems = param.pcmIn->size(); // 1024
int bytesPerSample = 2;
int size = numElems/bytesPerSample; // 512
At the end of the function,
for (int i = 0; i < size; i ++) // move only 512 items
{
short value = (short)ceil(outputCom[i].re() * 32768.0, -32768.0, 32767.0);
tempOut[i] = value;
}
param.pcmOut->clear();
param.pcmOut->reserve(numElems);
for (int i = 0; i < numElems; i++) // move 1024 items
{
param.pcmOut->push_back(tempOut[i]);
}
Is it right?
Append sample wav files such as
Make ppt draft. https://github.com/c0smicv0w/amr/tree/issue12
Refactor source codes
In class AudioModulator, pitch member variable shoud be initialized into zero(0). In addition, initialize audioFormat variable.
When down scaling, I hear some noises.
typedef struct {
QByteArray *pcmIn;
QList *freqIn;
QByteArray *pcmOut;
QList *freqOut;
}AudioDataParam;
QList should be chaned into QVector for CPU performance.
Set a last built binary files(amr) into "bin" folder.
When stop button is clicked, stop action should be implemented.
Change written wave file name format
yyyymmdd-hhnnss-zzz-in.wav
yyyymmdd-hhnnss-zzz-out.wav
pcmIn(original) and pcmOut(pitch shifted) data should be saved into separate wave files.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.