Commit 85ab6f58 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Adding Matlab open plot n playback script, some minor changes during testing

parent de84a236
......@@ -57,7 +57,7 @@ int main( int, char** )
{
ITASampleBuffer oOutputBuffer( g_iOutputLengthSamples );
ITADSP::PD::CForcedFlame oPatch( 0.1f );
ITADSP::PD::CForcedFlame oPatch( 0.5f );
oPatch.Process( oOutputBuffer.GetData(), g_iOutputLengthSamples );
string sFilePath = "ITADSP_pd_forced_flame_out.wav";
......@@ -73,8 +73,7 @@ void ITADSP::PD::CForcedFlame::Process( float* pfOutputBuffer, int iNumSamples )
{
float* pfCurrentSample( &(pfOutputBuffer[ n ]) );
const float fWhiteNoiseSamples = oRNG.GenerateFloat( -1.0f, 1.0f );
*pfCurrentSample = fWhiteNoiseSamples; // noise~
*pfCurrentSample = oRNG.GenerateFloat( -1.0f, 1.0f ); // noise~
m_oBandPassFilter1.process( 1, &pfCurrentSample ); // bd~ 8000 0.5
......@@ -84,14 +83,9 @@ void ITADSP::PD::CForcedFlame::Process( float* pfOutputBuffer, int iNumSamples )
*pfCurrentSample *= 120.0f; // *~ 120
// clip~ -1 1
if( *pfCurrentSample < -1.0f )
*pfCurrentSample = 1.0f;
else if( *pfCurrentSample > 1.0f )
*pfCurrentSample = 1.0f;
*pfCurrentSample = ( *pfCurrentSample < -1.0f ) ? -1 : ( ( *pfCurrentSample > 1 ) ? 1 : *pfCurrentSample ); // clip~ -1 1
m_oBandPassFilter3.process( 1, &pfCurrentSample ); // vcf~ 0 0.6 (real part only = band pass)
}
}
......
ita_read_wav( 'ITADSP_pd_forced_flame_out.wav' )
ITADSP_pd_forced_flame_out.pt
ITADSP_pd_forced_flame_out.play
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment