Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Biology
BiologyBotanyMicrobiologyEntomologyEvolutionPaleontology
Chemistry
General ChemistryAnalytical ChemistryElectrochemistryOrganic Synthesis
Earth Science
GeologyMineralogyOceanographyMeteorologyEarthquakes
Physics
General PhysicsResearchRelativityParticle PhysicsElectromagnetismFusionOpticsAcousticsNew Theories

Natural Science Forum / Physics / Acoustics / August 2006



Tip: Looking for answers? Try searching our database.

Panning different sound sources

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bg_ie@yahoo.com - 19 Aug 2006 15:38 GMT
Hi all,

I have two fm instruments with slightly different modulation indices. I
have both instruments playing the same notes at the same time with the
same asdr. I have one of the fm instruments hard panned to the left and
the other to the right. In other words, each instrument has its own
speaker. What I'd like to do is fade out the first instrument and fade
in the second instrument such that the volume level remains constant,
but that you get the illusion of panning and a gradual change of
timbre.

So my question is, how should the fade work, should it be linear or
logarithmic or something else?  

Thanks for your help,

Barry.
Jens Rodrigo - 19 Aug 2006 16:26 GMT
> I have two fm instruments with slightly different modulation indices.
> I
[quoted text clipped - 8 lines]
> So my question is, how should the fade work, should it be linear or
> logarithmic or something else?

Use the sinus/cosinus law. Fade the loud instrument with a
cosinus amplitude curve down and the other instrument with the
sinus amplitude up. Then the sum of the power of both instruments
stays constant. When cos and sin meet, the level is 3 dB down.

Cheers Jens
Jens Rodrigo - 19 Aug 2006 16:36 GMT
>> I have two fm instruments with slightly different modulation indices.
>> I
[quoted text clipped - 17 lines]
>
> Cheers Jens

And so looks your fading law which is also the panpot law:
http://www.mu-s.com/images/M-images/edu/panpot.gif
You see, its neither linear nor logarithmic.

Cheers Jens
bg_ie@yahoo.com - 24 Aug 2006 10:14 GMT
> >> I have two fm instruments with slightly different modulation indices.
> >> I
[quoted text clipped - 23 lines]
>
> Cheers Jens

Thanks for the reply, another quick question though. Is the cosine/sine
fade with respect to a linear scale or a dB scale. For example, is the
following equation valid -

do
{
 d+=1/frequency;

 fade = cos(PI/_length*(d-_startTime)/2)
           *(_startVolume - _finishVolume )+_finishVolume;

signal*=fade;
}
while(d<(_length+_startTime));

where _startVolume and _finishVolume are linear values such as 300 and
30000, with these values in the range -32768 to +32767 for 16 bit
audio?

Thanks for your help,

Barry.
Jens Rodrigo - 24 Aug 2006 10:45 GMT
bg_ie@yahoo.com> schrieb:
> Thanks for the reply, another quick question though. Is the
> cosine/sine
[quoted text clipped - 15 lines]
> 30000, with these values in the range -32768 to +32767 for 16 bit
> audio?

The sinus and cosinus curves go with the amplitude
values of the voltage.
Here you find the sinus/cosinus as dB curves:
http://www.sengpielaudio.com/Panoramaregler-Panpot.pdf#search=%22panpot%22

Cheers Jens
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.