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
Real-time Convolution
No permission to create posts
February 27, 2014
9:35 pm
Avatar
hook
Member
Members
Forum Posts: 7
Member Since:
February 27, 2014
sp_UserOfflineSmall Offline

Hi Everyone,

Just wondering if real-time convolution is possible with this framework ? I know theres a convolver project already, is there anyway to turn that into a vst for realt time processing?

Im a third year student at uni and any help would be really appreciated.

Thanks
Gregg

March 1, 2014
7:08 pm
Avatar
W Pirkle
Admin
Forum Posts: 143
Member Since:
January 28, 2017
sp_UserOfflineSmall Offline

Yes, you can. The project in my book makes use of a RackAFX-only feature; when you set the flag m_bWantIRs in your constructor, the RAFX Analyzer's main panel becomes part of your pluug-in; you can then double-click on any of the IRs in the list (that you've created and saved in RAFX, or imported by copying the IR wave files into your IR1024 directory. See the book for more details about IR length and operations. You can also get a bunch of free IRs at the link in the sidebar.

But if you want to use the convolver in a VST client, you'll need a different way to parse the IR information; it could be hard-coded. But a better way is to read the IR directly from a wave file. There is a RAFX object already there for you to do this, built into the code. I'll try to post a Convolver project that opens a wave file and extracts the IR for convolution sometime soon (very swamped with work right now). I'll post the link as a reply to this topic.

All the best,
Will

PS: the book convolver will compile as a VST DLL just fine with no changes; you just have to make your own way of getting the IR

March 4, 2014
10:51 pm
Avatar
hook
Member
Members
Forum Posts: 7
Member Since:
February 27, 2014
sp_UserOfflineSmall Offline

Thats great Will. Thanks for getting back to me.

Just to let you know what I'm doing...

My university project is based around modelling reel to reel players and using the IR's to form a database. The plug-in I hope to program will include the database of wavs as presets.

Look forward to seeing your convolver project, obviously when you have time.

Thanks again
Gregg

March 13, 2014
3:52 pm
Avatar
hook
Member
Members
Forum Posts: 7
Member Since:
February 27, 2014
sp_UserOfflineSmall Offline

Hi Will,

Any luck with that project? Don't worry If you're busy with work. Just reminding/ bugging you.

Cheers
Gregg

March 17, 2014
9:20 pm
Avatar
W Pirkle
Admin
Forum Posts: 143
Member Since:
January 28, 2017
sp_UserOfflineSmall Offline

Hi Gregg

I placed a project called ConvolveIt on the Projects page. You can get it and the details here:

http://www.willpirkle.com/proj...../#CONVOLVE

You can easily turn this into a VST plugin with "Make VST Compatible" on the Edit Projects page.

 

All the best,
Will

March 19, 2014
10:34 pm
Avatar
hook
Member
Members
Forum Posts: 7
Member Since:
February 27, 2014
sp_UserOfflineSmall Offline

Thanks Will! Really appreciate it 

March 25, 2014
2:55 am
Avatar
hook
Member
Members
Forum Posts: 7
Member Since:
February 27, 2014
sp_UserOfflineSmall Offline

Hi Will, 

Sorry to bother you again. I've got the convolveit project compiling and running in my vst host. 

The issue I'm having is building the project in release mode, it only allows me to build it in debug mode. Release mode seems to give me the error, 'unable to start program' and displays the path name for convolveit.dll. 

 

I'm guessing thats why its sounding glitchy?

 

March 25, 2014
5:57 pm
Avatar
W Pirkle
Admin
Forum Posts: 143
Member Since:
January 28, 2017
sp_UserOfflineSmall Offline

Yes, you must build in Release mode to get rid of the Debug code-overhead. 

I have only heard of a problem like yours once - it had to do with an anti-virus software that was installed. In the constructor, I show how to open a wave file programmatically - it is located in the C:\ root which is "off limits" for some anit-virus software. Try removing that loading statement (or moving to a new location) and/or disabling your anti-virus software. 

This has nothing to do with RackAFX - seems to originate with the anti-virus thing.

Also, in the sample project, I setup debug and release mode to be identical except for optimization (Release mode gets full optimization for speed); you might be able to tweak the Optimization setting (Favor Speed over Size) in Debug mode.

 

Let me know when you find the culprit I'll ask around with my students too.

 

Will

 

March 25, 2014
8:55 pm
Avatar
mgill404
Member
Members
Forum Posts: 13
Member Since:
August 27, 2013
sp_UserOfflineSmall Offline

It sounds to me like you are building the program in a funny way. An error like "unable to start the program" would imply that it's trying to run the program, nut build it. I can create this same error in VS by clicking the drop-down menu debug, then clicking start debugging. 

 

My guess is that you're clicking the green arrow on the Visual Studio interface to build, which will cause problems. That is more like a 'Run' button.

May 8, 2014
2:09 pm
Avatar
hook
Member
Members
Forum Posts: 7
Member Since:
February 27, 2014
sp_UserOfflineSmall Offline

Hi,

I managed to successfully build the convolveit project once, in debug mode, but it's obviously crashing inside a DAW because of the cpu hogging.

When i try and build in release mode i get this error:

Creating library C:\Users\Frances\AppData\Roaming\RackAFX\PlugIns\ConvolveIt.lib and object C:\Users\Frances\AppData\Roaming\RackAFX\PlugIns\ConvolveIt.exp
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Any help would be really appreciated !! Thanks

May 8, 2014
5:06 pm
Avatar
W Pirkle
Admin
Forum Posts: 143
Member Since:
January 28, 2017
sp_UserOfflineSmall Offline

Which version of VS are you using? If 2012 did you upgrade from 2010?

We had some big issues with VS2012 last summer when a Microsoft update (Win7/8) killed VS2012. There is a topic in another part of the Forum regarding this. It happened to me, but I was not able to compile at all.

When you compile in Release mode, are you doing a clean rebuild (to delete intermediate files)?

Also, see the threads here:

http://stackoverflow.com/quest.....or-corrupt

and

http://howtofix.pro/fixedfatal.....r-corrupt/

for multiple issues with VS2010->2012.

Hope that helps - let me know what you find.

- Will

May 9, 2014
1:59 am
Avatar
hook
Member
Members
Forum Posts: 7
Member Since:
February 27, 2014
sp_UserOfflineSmall Offline

I'm running VS 2010 express. I might try a different VS though. I'm doing a clean rebuild I think, from the Rack AFX framework menu on the right.

I'll take the advice from those threads on board and report back.

Cheers Will!

Gregg

May 9, 2014
3:59 pm
Avatar
W Pirkle
Admin
Forum Posts: 143
Member Since:
January 28, 2017
sp_UserOfflineSmall Offline

HI Gregg

Quick question: do you have "Make VST Compatible" checked on the Edit Project panel?

I had a student this semester who, for one project only, got this COFF file error but only when that box was checked. She was also on VS2010.

Let me know if you do, and if unchecking it helps; I will look at it over the weekend if so. It might be a rogue file.

- Will

Forum Timezone: America/New_York

Most Users Ever Online: 36

Currently Online:
5 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Skyler: 47

Peter: 41

Derek: 41

clau_ste: 39

Frodson: 38

Gwen: 32

EZB: 24

lppier: 23

Msaldaña: 18

Jorge: 17

Member Stats:

Guest Posters: 1

Members: 476

Moderators: 1

Admins: 4

Forum Stats:

Groups: 11

Forums: 30

Topics: 482

Posts: 1876

Newest Members:

sam, annaharris, Marie Weaver, kev, Steven, Mr Anderson, mguy, omelc

Moderators: W Pirkle: 143

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