On Sat, Nov 30, 2019 at 05:17 AM, Klaus Killinger wrote:
If I understand this right, you want to be able to start/stop the engine by a throttle function key, e.g. F8. You can do this in config.xml:
<trigger name="ENGINE_STARTSTOP" type="THROTTLE">
<event-name>F8</event-name>
<target-name>ENGINE</target-name>
<action>NOTHING</action>
</trigger>
This must be declared in the tag sound-event name="ENGINE".
Klaus, thanks for this snippet-it works.? I have no idea how the program links this to the Start/Stop action though, and if there is any way to preclude the action if the speed is not zero.
However, the gain parameter is not doing what I think it should do.? I sampled some other sounds to get a better bell, and cannot lower the relative volume without changing the level in the sound file (which in frustration, I finally did).? In my Config file, I have this snippet (notice the 0.1 gain that I thought would make it very soft):
??? <sound name="BELL" type="configurable">
????? <start-file>sounds/Common/Bell-Start.wav</start-file>
????? <mid-file>sounds/Common/Bell-Middle.wav</mid-file>
????? <end-file>sounds/Common/Bell-End.wav</end-file>
????? <start-sound-duration>136</start-sound-duration>
????? <gain>0.1</gain>
??? </sound>
I had wondered: Can there be a negative gain?? Maybe that is my problem: could the gain be 0.0 for no change, positive for louder, and negative for quieter?? As a test, I tried a gain of -2.0, but no change, so I tried -6.0, no change.? So I must be doing something wrong in my code.
Klaus, thanks for your help and Conrad, thanks for your thoughts.
Phil in gorgeous Young Harris, Georgia, USA