Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Fortran and Sound

  1. Dec 30, 2008 #1
    Hello,

    i want to produce a sound, for example a simple beep, with fortran. Can anyone help me please?



    John
     
  2. jcsd
  3. Dec 30, 2008 #2
    Have you tried something like this, it works on my computer:

    Code (Text):
          print *, char(7)
          STOP
          END
     
    Last edited: Dec 30, 2008
  4. Dec 31, 2008 #3

    Unfortunately it doesn't work on my computer. Any other ideas?


    John
     
  5. Dec 31, 2008 #4
    I would verify the loudspeaker before going further.
    Sometimes it may be defective, turned off, volume too low, or the CPU is too far to be heard.
    If you are using Windows, there are utilities to test it. On my computer, I do not even have external speakers, just the one integrated in the computer case. Either way, I would check it first. If you are using unix or linux, you can try "echo ctrl-g". On Windows, you can try the utility from "Sound" in control-panel, or on a DOS-screen, type in "type ctrl-g". Note that ctrl-g is the key-combination, not the individual letters.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Fortran and Sound
  1. Fortran 90 (Replies: 1)

  2. FORTRAN Help (Replies: 1)

  3. Fortran Help (Replies: 2)

  4. Infinity in fortran (Replies: 5)

  5. Linking Fortran (Replies: 5)

Loading...