[ antrx.com ]

antrx technical discussion => general technical discussion => Topic started by: chr1S on Jul 12, 2010, 10:16AM

Title: Spectrum Lab - Realtime filter program
Post by: chr1S on Jul 12, 2010, 10:16AM
Anybody  here used the program?

I'm trying to use the FFT filter to filter out a certain frequency range and I have NO idea how to set it up properly..

If anybody knows a program where I can feed a sound source (line in) and filter the audio in realtime with a freq range specified by myself then the filtered audio to be spat out via line out is exactly what i'm after, any ideas?
Title: Re: Spectrum Lab - Realtime filter program
Post by: SSS on Jul 13, 2010, 02:29PM
Got a full working copy? Can I grab it? I've got a bit of time this week to stuff around with it.

I know exactly what you are trying to do, only problem is I think it might be a little slow for realtime work.
Title: Re: Spectrum Lab - Realtime filter program
Post by: chr1S on Jul 13, 2010, 07:52PM
Yeh man,

It's all over the net, here is the main link for it;

http://www.qsl.net/dl4yhf/spectra1.html

The link for it is down the bottom of the page, but I thought i'd give you that link so you can have abit of an overview. I have some sample files to test with if you like also.

Thanks :)
Title: Re: Spectrum Lab - Realtime filter program
Post by: SSS on Jul 13, 2010, 10:13PM
email them please mate, dvsu12 at gmail dot com.
Title: Re: Spectrum Lab - Realtime filter program
Post by: chr1S on Jul 14, 2010, 12:49AM
Sent, that was a number plate I wanted to get years ago lol...

Anyway, be sure to check your junk box as i'm having problems with my host at the moment and I don't have a dedicated mail setup.
Title: Re: Spectrum Lab - Realtime filter program
Post by: SSS on Jul 14, 2010, 10:08AM
Ok, using "2500rpm 13-23-13.wma", you can see quite clearly where the knock is at 23 deg timing:
(http://img687.imageshack.us/img687/5513/fftknock.jpg)

Everything over 2500 Hz is irrevelant in this case; even so, i'd ignore everything over 1200 Hz.

I only converted this file to wav and loaded up this file real quick and ran it, I'm going to muck around with it some more later on.
Title: Re: Spectrum Lab - Realtime filter program
Post by: SSS on Jul 14, 2010, 10:08AM
Btw, it defaults to input from the microphone jack on your sound card.
Title: Re: Spectrum Lab - Realtime filter program
Post by: chr1S on Jul 14, 2010, 03:12PM
How did the 5000rpm file look?

http://www.theswansonfamily.us/modules/gallery2/d/57848-1/brian_s6_5500_to_7500bandpass.mp3

Thats been filtered via spectrum lab for something ive been trying to do, I don't know how he got it to sound like that though, my bandpass doesnt even work! Only my low pass filter seems to work. I'm going to download the beta version and try that.

Adam, I configured mine this way so far, input is set to feed from winamp, then i've downloaded a "line in plugin" for winamp and using that to feed as the source. Is it possible I can plug in the knockbox output straight into the mic input on my laptop? I've never really tried using mic as a line input.
Title: Re: Spectrum Lab - Realtime filter program
Post by: Kranzy on Jul 14, 2010, 03:26PM
Mic and line inputs don't mix well. It will work however you might get undesirable results from it.
Title: Re: Spectrum Lab - Realtime filter program
Post by: SSS on Jul 14, 2010, 04:03PM
Chris, you should be able to use the output from the knockbox to feed directly into your line input into spectrum lab.

You may need to do it offline and record the knockbox output via something that will produce a HD wav/mp3 then analyze it after a run has been made.
Title: Re: Spectrum Lab - Realtime filter program
Post by: SSS on Jul 14, 2010, 04:05PM
Sorry, i've misread what you want to do; basically I would watch the spectogram output for detonation. when you do a run.
Title: Re: Spectrum Lab - Realtime filter program
Post by: chr1S on Jul 14, 2010, 06:07PM
^ Yup, exactly right, i'm at the dyno shop now so I may put something up on the dyno later and watch how the graph behaves as the rpm's rise, as the engine noise gets louder, the spectograph gets hectic real quick, you'll notice that when you load the 5000rpm file.

my laptop hasn't got line in!!!!
Title: Re: Spectrum Lab - Realtime filter program
Post by: chr1S on Jul 14, 2010, 06:44PM
Did you convert the wma file to wav then load it into speclab using analyze audio with DSP or something?

Your graph looks very different to mine, you have alot more resolution in yours, my spacing is 15seconds and it only takes up about 1/4 of that. What are your settings? Also, using the same file, my area where knock occurs is dim compared to yours. Yours is so nice, it's very obvious!
Title: Re: Spectrum Lab - Realtime filter program
Post by: chr1S on Jul 14, 2010, 07:13PM
Omg, finally!!!

I managed to filter it ALL out. the knock is sooo obvious now, I inverted the frequency so it's nicer on the ears and more noticable. I'll upload the recording in a sec.

Edit: www.protune.com.au/knock-midfile.wma

Have a listen, tell me what you think. I can raise the filter slightly so I can always hear the engine but I don't know, it's one thing less to listen to while tuning.
Title: Re: Spectrum Lab - Realtime filter program
Post by: SSS on Jul 14, 2010, 08:08PM
How?

The screen dump I posted this morning was straight out of the box with no changes to any of the settings.
Title: Re: Spectrum Lab - Realtime filter program
Post by: Jono on Jul 14, 2010, 09:07PM
Why does it sound like dinging? Is that the inverted frequency you're talking about?
Title: Re: Spectrum Lab - Realtime filter program
Post by: chr1S on Jul 14, 2010, 09:08PM
I veleive it has to do with the sampling elrate, when I use winamp as a feed, it looks exactly like yours. So I'm stumped! Not very important now anyway I guess..
Title: Re: Spectrum Lab - Realtime filter program
Post by: chr1S on Jul 14, 2010, 09:09PM
Yeh Jono that's right, I inverted the frequency so it's easier to listen to
Title: Re: Spectrum Lab - Realtime filter program
Post by: SSS on Jul 15, 2010, 10:39AM
I figured it out, but does yours take ages to process when you input a .wav file (and process with DSP to put it through a filter)?
Title: Re: Spectrum Lab - Realtime filter program
Post by: chr1S on Jul 15, 2010, 10:56AM
See thats what I havn't tried/do yet, I just load the file in realtime via winamp and it applies the filter.

Try my method and see how you go.

My next obstacle is to get the line-in plugin to work with winamp, this way I can plug in the knockbox straight into my line in, load the plugin in winamp and then listen to the output.
Title: Re: Spectrum Lab - Realtime filter program
Post by: SSS on Jul 15, 2010, 12:57PM
I tried running a mp3 track through Spec Lab, but it didn't plot the FFT on the screen...did you have this problem?
Title: Re: Spectrum Lab - Realtime filter program
Post by: chr1S on Jul 15, 2010, 02:05PM
Tell me your exact settings.

This is my setup to get that file to work;

Speclab beta - restored settings to factory
speclab winamp input plugin
2500rpm Wma file played via winamp
ensure winamp is selected for the output plugin to speclab
ensure speclab is feeding input from winamp
don't use the fft adjusment, use filter control panel and use a reject or bandpass filter
output audio to speakers

i did have problems initially but I changed everyaetting under the sun such as sampling rates, output rates, etc etc so that's why I decided to start from scratch and it worked perfect
Title: Re: Spectrum Lab - Realtime filter program
Post by: pedro666 on Jul 15, 2010, 11:50PM
im am liking this thread, haven't seen this prior.