COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Old 04-16-2020, 07:22 PM   #1
vasyan
Human being with feelings
 
vasyan's Avatar
 
Join Date: Oct 2019
Location: Sayan Mountains, Siberia
Posts: 22
Default Question on IPlugConvoEngine

I tried the IPlugConvoEngine example, but unfortunately I can’t understand how to make IR from the amplitude-frequency characteristic.
How can I get IR from an array of values of frequencies and amplitudes, for example:
Code:
struct TAmpFreq
{
  double Amplitude;
  double Frequency;
};

WDL_PtrList<TAmpFreq> AmpFreq; // List of frequencies and amplitudes

float* GetIR(int &IrLength)
{
/* 
	How to implement this function so that it returns pointer to IR?
*/	
}
vasyan is offline   Reply With Quote
Old 04-17-2020, 01:22 AM   #2
Tale
Human being with feelings
 
Tale's Avatar
 
Join Date: Jul 2008
Location: The Netherlands
Posts: 3,646
Default

I'm not sure what you're after, but one way of constructing an IR is to send a single 1.0 and then many 0.0 samples through a filter or reverb, and then record the output. The result can be loaded into ReaVerb, or used with WDL_ConvolutionEngine.

Note that WDL_ConvolutionEngine will take the FFT of the IR, which will result in a list of complex numbers representing amp/phase pairs at certain pre-determineed freqs (so it's kinda lika your amp/freq list). But this is not the way you usually feed an IR to the engine.
Tale is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:19 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.