Avatar

Please consider registering
Guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
vst audio buffers
No permission to create posts
September 6, 2017
4:48 pm
Avatar
Eddie
Member
Members
Forum Posts: 6
Member Since:
July 11, 2017
sp_UserOfflineSmall Offline

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

September 6, 2017
5:39 pm
Avatar
W Pirkle
Admin
Forum Posts: 140
Member Since:
January 28, 2017
sp_UserOnlineSmall Online

OK, I will look into this. Have you tried Make VST and compiling directly as a VST plugin?

- Will

September 6, 2017
6:31 pm
Avatar
Eddie
Member
Members
Forum Posts: 6
Member Since:
July 11, 2017
sp_UserOfflineSmall Offline

Yes tried . Used make VST compiled to vst 3 sdk 3.6.6  VS 2017 same issue.

September 7, 2017
12:02 pm
Avatar
W Pirkle
Admin
Forum Posts: 140
Member Since:
January 28, 2017
sp_UserOnlineSmall Online

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

September 7, 2017
6:11 pm
Avatar
Eddie
Member
Members
Forum Posts: 6
Member Since:
July 11, 2017
sp_UserOfflineSmall Offline

Cool works now

Forum Timezone: America/New_York

Most Users Ever Online: 36

Currently Online: W Pirkle
3 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 47

Derek: 41

Peter: 41

clau_ste: 39

Frodson: 38

Gwen: 32

EZB: 24

lppier: 23

Msaldaña: 18

Jorge: 17

Member Stats:

Guest Posters: 1

Members: 478

Moderators: 1

Admins: 4

Forum Stats:

Groups: 11

Forums: 29

Topics: 479

Posts: 1870

Newest Members:

certvalue111, sobhana s, sam, annaharris, Marie Weaver, kev, Steven, Mr Anderson, mguy, omelc

Moderators: W Pirkle: 140

Administrators: Tom: 65, JD Young: 80, Will Pirkle: 0, W Pirkle: 140