How can I test my loudspeaker for sound output in Fortran?

  • Context: Fortran 
  • Thread starter Thread starter jpapa
  • Start date Start date
  • Tags Tags
    Fortran Sound
Click For Summary

Discussion Overview

The discussion revolves around testing loudspeakers for sound output using Fortran, specifically focusing on producing sound, such as a beep, and troubleshooting sound issues that may arise.

Discussion Character

  • Technical explanation, Experimental/applied, Debate/contested

Main Points Raised

  • One participant suggests using the Fortran command print *, char(7) to produce a beep, claiming it works on their computer.
  • Another participant reports that the same command does not work on their computer and requests alternative solutions.
  • A third participant advises verifying the loudspeaker's functionality before further troubleshooting, mentioning potential issues such as defects, being turned off, low volume, or distance from the CPU affecting sound perception.
  • This participant also provides suggestions for testing the loudspeaker on different operating systems, including using utilities on Windows and a command on Unix/Linux.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the effectiveness of the proposed Fortran command, as one participant finds it successful while another does not. The discussion includes multiple approaches to testing loudspeakers, indicating a lack of agreement on a single solution.

Contextual Notes

Some limitations include the dependence on specific computer configurations and operating systems, which may affect the success of the proposed solutions. There are also unresolved assumptions regarding the setup and functionality of the loudspeakers.

jpapa
Messages
4
Reaction score
0
Hello,

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



John
 
Technology news on Phys.org
Have you tried something like this, it works on my computer:

Code:
      print *, char(7)
      STOP
      END
 
Last edited:
mathmate said:
Have you tried something like this, it works on my computer:

Code:
      print *, char(7)
      STOP
      END


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


John
 
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.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 37 ·
2
Replies
37
Views
5K
  • · Replies 17 ·
Replies
17
Views
6K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 59 ·
2
Replies
59
Views
12K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K