lucasw / tao_synth

Sound synthesis with physical models - from http://taopm.sourceforge.net
GNU General Public License v2.0
6 stars 1 forks source link

Simple model to mix simulation channels into 1-2 channels #9

Open lucasw opened 6 years ago

lucasw commented 6 years ago

Needed for #8.

There could be different configured modes. One would simply sum all the channels, the next would be to combine them according to preset gains.

A more complex one would be to have a virtual microphone and then compute the effects of distance on delays and attenuation. (Probably don't want to bother with frequency varying attenuation, air models- that should be handled externally)

lucasw commented 6 years ago

It looks like the resonators in 40strings.cpp are how the sounds are mixed in the simulation. One string is attach along it's length to locations near the end of the 40 strings, then 5 or so evenly spaced locations are attached to a second string, then points near the left and right ends become the left and right channels.

How to do this for ellipse/rectangle instruments? Should a circle resonator be attached to a circle instrument?

In http://taopm.sourceforge.net/examples/circles.gif it looks like there is still a string resonator attached to multiple circles.