Playing the horn

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mikephfl
    Senior Member
    • Jul 2004
    • 524
    • Clearwater, FL

    #1

    Playing the horn

    I apologize if this has been asked and answered, but so far I haven't found it. I noticed, even in the new version, when you sound the horn, it plays the entire .wav file no matter how long you hold the space bar. Is there a way to sound a short horn blast?

    Thanks in advance
    Mike
    Proud Supporter of OR
    Creator of YardMaster
    "Thanks for using YardMaster"
  • twpol
    Senior Member
    • Oct 2009
    • 434
    • United Kingdom

    #2
    This has been asked many, many times before. There is no way currently to play a short blast, it is a known issue.
    James Ross
    Open Rails Management Team
    sigpic

    Comment

    • csantucci
      Senior Member
      • Nov 1999
      • 856
      • Torino, Italy.

      #3
      If and when the ORTS team will implement the SetStreamVolume () command available in the MSTS .sms sound language, it will be possible to have the short blast, as it is possible under MSTS.

      Carlo
      sigpic

      Comment

      • longiron
        1000 Post Veteran and Moderator

        • Jan 2007
        • 1453
        • Just south of NYC

        #4
        Originally posted by csantucci
        If and when the ORTS team will implement the SetStreamVolume () command available in the MSTS .sms sound language, it will be possible to have the short blast, as it is possible under MSTS.

        Carlo
        Carlo,
        At the present time, Open Rails does not properly recognize cue points in the wav file. It is being worked on as well as other sound system enhancements.
        Chris
        "True rail fans have two favorite railroads. The B&O and one other."

        Comment

        • mikephfl
          Senior Member
          • Jul 2004
          • 524
          • Clearwater, FL

          #5
          Thanks for all the info. I hope I didn't sound impatient, it's the one thing that keeps me from using OR exclusively over MSTS. Just wondered what the current situation was.
          Mike
          Proud Supporter of OR
          Creator of YardMaster
          "Thanks for using YardMaster"

          Comment

          • Komachi
            1500 Post Veteran
            • Oct 2006
            • 1707
            • Lancaster, Pennsylvania

            #6
            Hah.. Yeah that is a bit of an annoyance, especially with the PERFECT surfliner cab horn that was uploaded the other day in the FL, it PERFECTLY loops to your keyboard presses, no more "*press* Hoooooooooooo*let go*oooooooooooonk", it STOPS RIGHT when you let off the spacebar.

            Comment

            • csantucci
              Senior Member
              • Nov 1999
              • 856
              • Torino, Italy.

              #7
              Originally posted by longiron
              Carlo,
              At the present time, Open Rails does not properly recognize cue points in the wav file. It is being worked on as well as other sound system enhancements.
              Longiron, excuse me because my last post wasn't well centered. I see that the main way to have horn blasts of any desired length is to insert in the .wav file multiple cue points, and this provides a good result.
              My post originated from the fact that I use a different (not necessarily better) way to have the same result.

              I use a stream like this
              Stream (
              Volume ( 1.0 )
              Skip ( *** Horn body *** )
              Priority ( 6 )
              Triggers ( 4
              Initial_Trigger ( SetStreamVolume ( 0.0 )
              Initial_Trigger ( StartLoopRelease ( 1
              File ( "hornbody.wav" -1 )
              SelectionMethod ( RandomSelection ) ) )
              Discrete_Trigger ( 8 SetStreamVolume ( 1.0 ))
              Discrete_Trigger ( 9 SetStreamVolume ( 0.0 ))
              )
              )
              This way the horn is heared for exactly the time the space key is pressed.
              A second stream can be added to play the horn tail sound just at the end of the horn body sound, like this
              Stream (
              Volume ( 1.0 )
              Skip ( *** - Last part of horn sound *** )
              Priority ( 6 )
              Triggers ( 1
              Discrete_Trigger ( 9 PlayOneShot ( 1
              File ( "horntail.wav" -1 )
              SelectionMethod ( SequentialSelection )))
              )
              )
              sigpic

              Comment

              Working...