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

2005-03-08 Thread Erik Hofman
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. Also, you are aware that a sound played with a pitch offset of 1.0 is played twice the original speed (pitch always start at 1.0). I just checked this a

[Flightgear-devel] calctile.nas

2005-03-08 Thread Melchior FRANZ
Here's a port fo calc-tile.pl to Nasal. To make use of it do the following: (0) download this file: http://members.aon.at/mfranz/flightgear/calctile.nas [3 kb] (1) put it into $FG_ROOT/Nasal/ (2) add a keyboard definition like this to your $FG_HOME/keyboard.xml (or wherever you put local key

Re: [Flightgear-devel] calctile.nas

2005-03-08 Thread Andy Ross
Melchior FRANZ wrote: > Some of the digits after the comma may be stripped. Nasal doesn't > seem to support that. Indeed, there is no formatted text mechanism in Nasal right now. Everything is printed to the precision of a full double. Doing this the "right way" (say, a printf-like format string)

[Flightgear-devel] Re: calctile.nas

2005-03-08 Thread Melchior FRANZ
* Andy Ross -- Tuesday 08 March 2005 19:52: > Indeed, there is no formatted text mechanism in Nasal right now. > Everything is printed to the precision of a full double. I've added an ugly truncation function for now. The output is now: Longitude:16.5754919 deg Latitude: 48.1090681 d

Re: [Flightgear-devel] Re: calctile.nas

2005-03-08 Thread Andy Ross
Melchior FRANZ wrote: > Unfortunately, I can't avoid the silly double-0. No idea why. As you pointed out on the IRC channel (which more folks should be on, it's kinda fun sometimes), this is a Nasal bug. Or two, actually. The simple bug is that the string "-" converts to a numerical zero due to