



Quick question on VST audio buffers, I've used this in audio effects without any issue. However, not been able to get working with Synth projects works ok in RACKAFX but not in DAW just makes no sound (Ableton & Reaper). Compiled as VST and tried using the RACKAFX DLL that rackafx produces.Â
Have m_bWantVSTBuffers = true;  set in DXSYNTH.CPP. Commented out the process audio frame code as well.
Â
Below is a quick example code for testing, for the DX synth works ok in Rackafx but not in DAW.
Â
Also unrelated but do you know how I get a VST code from steinberg or AU code from Apple ?Â
Â
bool __stdcall CDXSynth::processVSTAudioBuffer(float** inBuffer, float** outBuffer, UINT uNumChannels, int inFramesToProcess)
{
smoothParameterValues();
Â
float* pOutputL = outBuffer[0];
float* pOutputR= outBuffer[1];
while (--inFramesToProcess >= 0)
{
double dLeftAccum = 0.0;
double dRightAccum = 0.0;
float fMix = 0.25;
double dLeft = 0.0;
double dRight = 0.0;
// --- loop and accumulate voices
for (int i = 0; i<MAX_VOICES; i++)
{
// --- render synth
if (m_pVoiceArray[i])
m_pVoiceArray[i]->doVoice(dLeft, dRight);
// --- accumulate and scale
dLeftAccum += fMix*dLeft;
dRightAccum += fMix*dRight;
}
// Left channel processing
*pOutputL = dLeftAccum;
// If there is a right channel
//if(pInputR)
*pOutputR = dRightAccum;
// advance pointers
//pInputL++;
pOutputL++;
//if(pInputR) pInputR++;
if(pOutputR) pOutputR++;
}
// all OK
return true;
}
Regards
Â
Mark
Ok, you need to do a manual update of your project to add new features that were added in RackAFX v6.8 - one of those is sample accurate MIDI with VST and specifically involving the processVSTBuffers( ) function. The other feature involves sample accurate parameter handling for VST3 plugins only (they are the only ones that support this). I've added a new Forum and topic that has the link for the document to do the updating. Fortunately, it's pretty simple and involves cutting and pasting a few bits of code. I tested it with your DX Synth code and it worked fine. I did notice that you have the smoothParameters( ) function in the wrong place - it should be inside the frame loop rather than outside.Â
Newly created projects do not require any updates as they have the code in place. So, another way to see an example of the new code is to just create a new project and use the Technical Note on the link provided to understand what's going on.
http://www.willpirkle.com/foru.....-features/
If you have any questions or other issues, please address them in the newly created Forum at the above link.
- Will
Most Users Ever Online: 152
Currently Online:
6 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Chaes: 56
Skyler: 48
StevieD: 46
Derek: 46
Frodson: 45
Peter: 43
TheSmile: 43
Nickolai: 43
clau_ste: 39
jeanlecode: 37
Member Stats:
Guest Posters: 2
Members: 784
Moderators: 1
Admins: 6
Forum Stats:
Groups: 13
Forums: 42
Topics: 850
Posts: 3372
Moderators: W Pirkle: 693