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

Renaming everything to jet_engine, because it combines flame noise and turbine modes

parent b38e94c9
......@@ -21,11 +21,11 @@ if( ITA_VISTA_BUILD_STATIC )
endif( )
add_executable( ITADSP_pd_forced_flame ITADSP_pd_forced_flame.cpp )
target_link_libraries( ITADSP_pd_forced_flame ${VISTA_USE_PACKAGE_LIBRARIES} )
add_executable( ITADSP_pd_jet_engine ITADSP_pd_jet_engine.cpp )
target_link_libraries( ITADSP_pd_jet_engine ${VISTA_USE_PACKAGE_LIBRARIES} )
vista_configure_app( ITADSP_pd_forced_flame )
vista_install( ITADSP_pd_forced_flame )
vista_create_default_info_file( ITADSP_pd_forced_flame )
vista_configure_app( ITADSP_pd_jet_engine )
vista_install( ITADSP_pd_jet_engine )
vista_create_default_info_file( ITADSP_pd_jet_engine )
set_property( TARGET ITADSP_pd_forced_flame PROPERTY FOLDER "ITACoreLibs/Tests/ITADSP/pd" )
set_property( TARGET ITADSP_pd_jet_engine PROPERTY FOLDER "ITACoreLibs/Tests/ITADSP/pd" )
......@@ -79,11 +79,11 @@ int main( int, char** )
{
ITASampleBuffer oOutputBuffer( g_iOutputLengthSamples );
float fRPM = 2500.f;
float fRPM = 1100.f;
ITADSP::PD::CJetEngine oPatch( fRPM );
oPatch.Process( oOutputBuffer.GetData(), g_iOutputLengthSamples );
string sFilePath = "ITADSP_pd_jet_engine_out.wav";
string sFilePath = "ITADSP_pd_jet_engine_out_rpm1100.wav";
writeAudiofile( sFilePath, &oOutputBuffer, g_dSampleRate, ITAQuantization::ITA_FLOAT );
cout << "Exported result to " << sFilePath << endl;
......@@ -173,7 +173,10 @@ void ITADSP::PD::CJetEngine::Process( float* pfOutputBuffer, int iNumSamples )
// Jet engine
fCurrentSample += m_fTempSample * 0.1f; // combine turbine and flame with factor *~ 0.5 from jet engine patch
m_fTempSample *= 0.5f; // *~ 0.5
const float fManualBalance = 0.2 / 0.5; // Manual modifier [NOT INCLUDED IN PD PATCH]
fCurrentSample += fManualBalance * m_fTempSample; // combine turbine and flame from jet engine patch (with a manual balance that sound better)
m_oJetEngineLP1.process( 1, &pfTempSampleAlias ); // ~lop 11000
......
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