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.
- achandak asked 11 years ago
I tried creating the following DSP network.
[channel dsphead1]—-[filter1]—– — [wavetable1]
[channel dsphead2]—-[filter2]—– — [wavetable2]
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.
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
‘dsp_effectsperspeaker’ example does something like this.
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.
Please login first to submit.