0
0

Hello Everyone,

Is it possible to pass data from a single channel to multiple filters. The thing i want to do is that i have one sound source (some audio file) and i first want to decompose the sound data into some frequency bands and then do processing for part of sound data in that frequency band and then mix the data together back again.

After scanning documentation multiple times i am still not able to find if I can create a channel from a sound file and then add multiple filters (in my case multiple custom band pass filters) to that channel. So that every data from the channel follow multiple paths.

In the worst case I will have to create filters for each frequency bands.

Any pointers will be highly appreciated.
Thanks.

  • You must to post comments
0
0

yes if you use the DSP api, you can disconnect a channel dsphead from its first input (ie wavetable), then add all your multiple effects to the channel dsphead as new inputs, then add the old first input (ie the wavetable) as an input to all of your filters.

It would look in the end something like this

before
[code:2x0en877]
[channel dsphead]——-[wavetable]
[/code:2x0en877]

after
[code:2x0en877]
—-[filter1]—–
/ \
[channel dsphead]——-[filter2]——-[wavetable]
\ /
—-[filter3]—–
[/code:2x0en877]

‘dsp_effectsperspeaker’ example does something like this.

  • You must to post comments
0
0

Pretty impressive and neat. So even the wavetable is a DSP unit. Thanks a bunch. I have a built a pretty complicated network out of it 😉

And i was just wondering why is there no FMOD_DSP_TYPE_HIGHPASS_SIMPLE and also currently i am creating a bandpass using a high pass and a low pass filter. The one using PARAMEQ is of not much use for bandpass.

  • You must to post comments
0
0

I tried creating the following DSP network.

[code:3brdw4ct]

[channel dsphead1]—-[filter1]—– — [wavetable1]
\ /
[filter3]
/ \
[channel dsphead2]—-[filter2]—– — [wavetable2]

[/code:3brdw4ct]

But when i play each of the channels. the program crashes. Is there something i am missing here?

Also i believe only way to pan a sound completely to left or right is only possible by using channel->pan(). so i had to create two wavetables one sends signal only to left ear and other only to right ear.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.