0
0

Hello again, got a few more questions about dsp’s and channels :
(i use the java version of fmodEx, but i guess its the same methods on c++)

1 – Whats the difference of using a CHANNEL_FREE and a CHANNEL_REUSE when using it to play an oscillator DSP ?

2- Is it possible to play multiple sin waves at different frequencies at teh same time(diff channels) using only ONE dsp ? Or do i need at least as many DSPs as the number of frequencies i want to play? Atm im doing it using 12 DSP units for the frequencies..12 = nr of keys in an octave

3- I have got a lot of trouble when i try to initialize a channel using the method System::getChannel(int index, Channel c) . I cant play more than one freq at a time and sometimes i get an error result saying INVALID HANDLE. So what i do to counter this problem is to use System::playDSP with the paused flag as TRUE for each channel i have. Also, what is the index parameter for?

4- Another problem im having is that when i play an oscillator DSP with..lets say 400hz and i stop the channel, then i play again but with 3000hz, i still hear a bit of the sin wave of 400hz. Even if i wait 1 minute after i stop the channel. I cant find any error on my code why this is happening..so if its normal is there any way around this? If not..perhaps i have to look again…

5- When i play different oscillator DSPs with different frequencies on different channels at the same time, instead of hearing each frequence on a different channel, i seem to hear both frequences added in one channel.. like.. instead of hearing a 200 and a 250 sin wave i hear a (200+250) sin wave, which results in a lot of noise sometimes. Is this normal or im doing smth wrong?

I guess thats all for now.. i still havent tried to use any callbacks, i’m new to fmod and i started just one week ago and i still dont have much time..university and all making me busy.

Also, if someone knows any web site with info on some instruments, like the effects i need to make the musical notes sound like the notes of such instruments, etc, i’d appreciate. I tried to change some properties on effects to sound like a piano..but it still aint perfect :/

Many thanks if someone can help me on this. :)

  • You must to post comments
0
0

[quote="ManuelFelicio":2shapfo5]Hello again, got a few more questions about dsp’s and channels :
(i use the java version of fmodEx, but i guess its the same methods on c++)

1 – Whats the difference of using a CHANNEL_FREE and a CHANNEL_REUSE when using it to play an oscillator DSP ?
[/quote:2shapfo5]

free may stop your old channel and pick a new one, reuse will use the same channel. audibly it will be the same because dsps can only be played once

[quote:2shapfo5]

2- Is it possible to play multiple sin waves at different frequencies at teh same time(diff channels) using only ONE dsp ? Or do i need at least as many DSPs as the number of frequencies i want to play? Atm im doing it using 12 DSP units for the frequencies..12 = nr of keys in an octave
[/quote:2shapfo5]

If a dsp generates a sine wave, obviously it cant suddenly do multiple sine waves, you need to create a dsp for each instance.

[quote:2shapfo5]
3- I have got a lot of trouble when i try to initialize a channel using the method System::getChannel(int index, Channel c) . I cant play more than one freq at a time and sometimes i get an error result saying INVALID HANDLE. So what i do to counter this problem is to use System::playDSP with the paused flag as TRUE for each channel i have. Also, what is the index parameter for?
[/quote:2shapfo5]

you’re doing it wrong, you’re supposed to use playdsp, or playsound and use the dsp api. playdsp is a simple way to play a dsp or dsp network even.

[quote:2shapfo5]
4- Another problem im having is that when i play an oscillator DSP with..lets say 400hz and i stop the channel, then i play again but with 3000hz, i still hear a bit of the sin wave of 400hz. Even if i wait 1 minute after i stop the channel. I cant find any error on my code why this is happening..so if its normal is there any way around this? If not..perhaps i have to look again…
[/quote:2shapfo5]

Its possible it is something we need to look at

[quote:2shapfo5]

5- When i play different oscillator DSPs with different frequencies on different channels at the same time, instead of hearing each frequence on a different channel, i seem to hear both frequences added in one channel.. like.. instead of hearing a 200 and a 250 sin wave i hear a (200+250) sin wave, which results in a lot of noise sometimes. Is this normal or im doing smth wrong?
[/quote:2shapfo5]

Uou’re playing 2 oscillators at full volume, you are getting distortion. Make their volumes lower.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.