Re: [Flightgear-devel] xml sound : Does negative pitch work?

2005-02-26 Thread Erik Hofman
Paul Surgeon wrote: /instrumentation/vertical-speed-indicator/indicated-speed-fpm 0.001 1.0 As you can see I've configured the tone to start playing when the vertical speed drops below -50 fpm. That works perfectly. However the pitch doesn't change - it loops (with

Re: [Flightgear-devel] xml sound : Does negative pitch work?

2005-02-26 Thread Paul Surgeon
On Saturday, 26 February 2005 10:51, Erik Hofman wrote: > The annoying click is because the audio file is not edited correctly. This one has me a bit stumped. It loops without clicks in Audacity and I've check the individual samples and the start/end joint is perfect. Do samples have to start and

Re: [Flightgear-devel] xml sound : Does negative pitch work?

2005-02-26 Thread Paul Surgeon
On Saturday, 26 February 2005 13:07, Paul Surgeon wrote: > On Saturday, 26 February 2005 10:51, Erik Hofman wrote: > > The annoying click is because the audio file is not edited correctly. > > This one has me a bit stumped. > It loops without clicks in Audacity and I've check the individual samples

Re: [Flightgear-devel] xml sound : Does negative pitch work?

2005-02-26 Thread Paul Surgeon
On Saturday, 26 February 2005 14:22, Erik Hofman wrote: > There is one special condition, is set to 0.0 as it's lowest > value, so the only reason pitch can be clamped at the lower end is > because it is really < 0.0. Aha! That cured it - thanks Eric. Everything works perfectly now except the "c

Re: [Flightgear-devel] how to find remaining fuel

2005-02-26 Thread Seamus Thomas Carroll
Hi, I am using the following piece of code to read the fuel levels: double fueln = 0; // get the fuel levels; for( int count = 0; count < 7; count++ ) { string tank = "/consumables/fuel/tank["+ su->intTostring(count)+"]/level-gal_us"; cout << setprecision(6) << "tank " << count << "