mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-06 01:21:38 -05:00
-Debugging strange distortion
This commit is contained in:
parent
3c765ba4cb
commit
2ecbd47742
4 changed files with 13 additions and 5 deletions
|
@ -68,7 +68,7 @@ Jack::Jack()
|
||||||
|
|
||||||
trackOutputs.push_back( new TrackOutput(i, loopers.back() ) );
|
trackOutputs.push_back( new TrackOutput(i, loopers.back() ) );
|
||||||
|
|
||||||
//buffers.audio[Buffers::TRACK_0 + i] = new float( nframes ); // (float*) malloc( sizeof(float) * nframes );
|
buffers.audio[Buffers::TRACK_0 + i] = new float( nframes ); // (float*) malloc( sizeof(float) * nframes );
|
||||||
}
|
}
|
||||||
|
|
||||||
timeManager.registerObserver( &metronome );
|
timeManager.registerObserver( &metronome );
|
||||||
|
@ -114,11 +114,13 @@ int Jack::process (jack_nframes_t nframes)
|
||||||
|
|
||||||
|
|
||||||
// pre-zero output buffers
|
// pre-zero output buffers
|
||||||
|
/*
|
||||||
memset( buffers.audio[Buffers::MASTER_OUTPUT] , 0, sizeof(float) * nframes );
|
memset( buffers.audio[Buffers::MASTER_OUTPUT] , 0, sizeof(float) * nframes );
|
||||||
memset( buffers.audio[Buffers::JACK_MASTER_OUTPUT], 0, sizeof(float) * nframes );
|
memset( buffers.audio[Buffers::JACK_MASTER_OUTPUT], 0, sizeof(float) * nframes );
|
||||||
memset( buffers.audio[Buffers::REVERB] , 0, sizeof(float) * nframes );
|
memset( buffers.audio[Buffers::REVERB] , 0, sizeof(float) * nframes );
|
||||||
memset( buffers.audio[Buffers::SIDECHAIN] , 0, sizeof(float) * nframes );
|
memset( buffers.audio[Buffers::SIDECHAIN] , 0, sizeof(float) * nframes );
|
||||||
memset( buffers.audio[Buffers::POST_SIDECHAIN] , 0, sizeof(float) * nframes );
|
memset( buffers.audio[Buffers::POST_SIDECHAIN] , 0, sizeof(float) * nframes );
|
||||||
|
*/
|
||||||
|
|
||||||
jack_midi_clear_buffer( buffers.midi[Buffers::APC_OUTPUT] );
|
jack_midi_clear_buffer( buffers.midi[Buffers::APC_OUTPUT] );
|
||||||
|
|
||||||
|
@ -152,7 +154,7 @@ int Jack::process (jack_nframes_t nframes)
|
||||||
// process each track, starting at output and working up signal path
|
// process each track, starting at output and working up signal path
|
||||||
for(uint i = 0; i < NTRACKS; i++)
|
for(uint i = 0; i < NTRACKS; i++)
|
||||||
{
|
{
|
||||||
loopers.at(i)->process( nframes, &buffers );
|
trackOutputs.at(i)->process( nframes, &buffers );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -30,8 +30,9 @@ Looper::Looper(int t) :
|
||||||
// init faust pitch shift variables
|
// init faust pitch shift variables
|
||||||
fSamplingFreq = 44100;
|
fSamplingFreq = 44100;
|
||||||
IOTA = 0;
|
IOTA = 0;
|
||||||
for ( int i = 0; i < MAX_BUFFER_SIZE; i++)
|
|
||||||
tmpBuffer.push_back(0.f);
|
tmpBuffer.resize(MAX_BUFFER_SIZE);
|
||||||
|
|
||||||
for (int i=0; i<65536; i++)
|
for (int i=0; i<65536; i++)
|
||||||
fVec0[i] = 0;
|
fVec0[i] = 0;
|
||||||
for (int i=0; i<2; i++)
|
for (int i=0; i<2; i++)
|
||||||
|
|
|
@ -13,6 +13,7 @@ class TrackOutput : public AudioProcessor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TrackOutput(int t, AudioProcessor* ap) :
|
TrackOutput(int t, AudioProcessor* ap) :
|
||||||
|
AudioProcessor(),
|
||||||
track(t),
|
track(t),
|
||||||
previousInChain(ap),
|
previousInChain(ap),
|
||||||
dbMeter(44100)
|
dbMeter(44100)
|
||||||
|
|
|
@ -29,7 +29,11 @@ namespace Worker
|
||||||
ab->nonRtSetSample( buf );
|
ab->nonRtSetSample( buf );
|
||||||
|
|
||||||
cout << "Worker: loadSample() " << path << " size: " << infile.frames() << endl;
|
cout << "Worker: loadSample() " << path << " size: " << infile.frames() << endl;
|
||||||
|
|
||||||
|
if ( infile.frames() > 0 )
|
||||||
return ab;
|
return ab;
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue