Sam Varner wrote:
> On Tue, 2002-04-23 at 04:41, Erik Hofman wrote:
> 
>>Sam Varner wrote:
>>
>>>How do I get sound for my FDM?  I have an engine model and I can get the
>>>rotational speed.  How do I use this to get the pitch of the engine
>>>sample?
>>>
>>You can take a look at FlightGear/Aircraft/c172/c172-sound.xml
>>
>>for engine you would see:
>>
>><pitch>
>>     <property>/engines/engine/rpm</property>
>>
>>This means you would have to assign the right (engine) rpm to that property:
>>
>>  fgSetFloat("/engines/engine/rpm", my_rpm);
>>
> 
> Thanks, Erik.  I'm making noise now, but the pitch stops going up at
> about 4000 RPM.  The engine speed guage keeps going up (and around and
> around:) but the sound doesn't change.  I haven't found where this limit
> is set.  Any ideas? 

It's this line in the c172-sound.xml file:

<pitch>
  <max>5.0</max>

Erik



_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to