Still trying...

This commit is contained in:
xenakios 2017-11-16 02:48:24 +02:00
parent adc6505424
commit 84e564b393
5 changed files with 14 additions and 6 deletions

View File

@ -83,7 +83,8 @@ void BinauralBeats::process(REALTYPE *smpsl,REALTYPE *smpsr,int nsmps,REALTYPE p
REALTYPE outl2=m1-m2; REALTYPE outl2=m1-m2;
h1=0,h2=0; h1=0;
h2=0;
hr.process(smpsr[i],h1,h2); hr.process(smpsr[i],h1,h2);
m1=h1*cos(x); m1=h1*cos(x);

View File

@ -161,7 +161,8 @@ void StretchAudioSource::getNextAudioBlock(const AudioSourceChannelInfo & buffer
int wanted = m_resampler->ResamplePrepare(bufferToFill.numSamples, m_num_outchans, &rsinbuf); int wanted = m_resampler->ResamplePrepare(bufferToFill.numSamples, m_num_outchans, &rsinbuf);
double silencethreshold = Decibels::decibelsToGain(-70.0); double silencethreshold = Decibels::decibelsToGain(-70.0);
bool tempfirst = true; bool tempfirst = true;
//if (m_output_counter<=m_process_fftsize*2) // && m_inputfile->hasEnded() == false) auto foofilepos0 = m_inputfile->getCurrentPosition();
//if (m_output_counter<=m_process_fftsize*2) // && m_inputfile->hasEnded() == false)
{ {
while (m_stretchoutringbuf.available() < wanted*m_num_outchans) while (m_stretchoutringbuf.available() < wanted*m_num_outchans)
{ {
@ -231,6 +232,8 @@ void StretchAudioSource::getNextAudioBlock(const AudioSourceChannelInfo & buffer
} }
} }
auto foofilepos1 = m_inputfile->getCurrentPosition();
//jassert(abs(foofilepos1-foofilepos0)>0);
for (int i = 0; i < wanted*m_num_outchans; ++i) for (int i = 0; i < wanted*m_num_outchans; ++i)
{ {
double sample = m_stretchoutringbuf.get(); double sample = m_stretchoutringbuf.get();

View File

@ -14,7 +14,10 @@
//============================================================================== //==============================================================================
PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor (PaulstretchpluginAudioProcessor& p) PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor (PaulstretchpluginAudioProcessor& p)
: AudioProcessorEditor (&p), processor (p), m_wavecomponent(p.m_afm.get()) : AudioProcessorEditor (&p),
m_wavecomponent(p.m_afm.get()),
processor (p)
{ {
addAndMakeVisible(&m_import_button); addAndMakeVisible(&m_import_button);
m_import_button.setButtonText("Import file..."); m_import_button.setButtonText("Import file...");

View File

@ -140,7 +140,7 @@ void PaulstretchpluginAudioProcessor::prepareToPlay(double sampleRate, int sampl
} }
if (m_ready_to_play == false) if (m_ready_to_play == false)
{ {
m_control->setFFTSize(0.7); m_control->setFFTSize(0.5);
m_control->update_player_stretch(); m_control->update_player_stretch();
m_control->update_process_parameters(); m_control->update_process_parameters();

View File

@ -57,11 +57,12 @@
<CONFIGURATION name="Debug" enablePluginBinaryCopyStep="1" isDebug="1" optimisation="1" <CONFIGURATION name="Debug" enablePluginBinaryCopyStep="1" isDebug="1" optimisation="1"
linkTimeOptimisation="0" targetName="paulstretchplugin" headerPath="Source/PS_Source&#10;Source/WDL&#10;" linkTimeOptimisation="0" targetName="paulstretchplugin" headerPath="Source/PS_Source&#10;Source/WDL&#10;"
libraryPath="/usr/local/Cellar/fftw/3.3.6-pl2/lib" cppLibType="libc++" libraryPath="/usr/local/Cellar/fftw/3.3.6-pl2/lib" cppLibType="libc++"
osxArchitecture="64BitIntel" osxCompatibility="10.9 SDK" osxSDK="default"/> osxArchitecture="64BitIntel" osxCompatibility="10.9 SDK" osxSDK="default"
defines="JUCE_NO_DEPRECATION_WARNINGS"/>
<CONFIGURATION name="Release" enablePluginBinaryCopyStep="1" isDebug="0" optimisation="3" <CONFIGURATION name="Release" enablePluginBinaryCopyStep="1" isDebug="0" optimisation="3"
linkTimeOptimisation="1" targetName="paulstretchplugin" headerPath="Source/PS_Source&#10;Source/WDL&#10;" linkTimeOptimisation="1" targetName="paulstretchplugin" headerPath="Source/PS_Source&#10;Source/WDL&#10;"
osxCompatibility="10.9 SDK" osxArchitecture="64BitIntel" cppLibType="libc++" osxCompatibility="10.9 SDK" osxArchitecture="64BitIntel" cppLibType="libc++"
libraryPath="/usr/local/Cellar/fftw/3.3.6-pl2/lib"/> libraryPath="/usr/local/Cellar/fftw/3.3.6-pl2/lib" defines="JUCE_NO_DEPRECATION_WARNINGS"/>
</CONFIGURATIONS> </CONFIGURATIONS>
<MODULEPATHS> <MODULEPATHS>
<MODULEPATH id="juce_core" path="../JUCE/modules"/> <MODULEPATH id="juce_core" path="../JUCE/modules"/>