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

  • Thread starter Thread starter jpapa
  • Start date Start date
  • Tags Tags
    Fortran Sound
AI Thread Summary
To produce a sound, such as a simple beep, using Fortran, one suggested method is to use the command "print *, char(7)" followed by "STOP" and "END". However, this approach may not work on all systems. It's important to verify the functionality of the computer's loudspeaker, as issues like a defective speaker, low volume, or distance from the CPU can affect sound output. For Windows users, testing utilities are available in the Sound settings, and a command like "type ctrl-g" can be used in a DOS prompt. For Unix or Linux systems, using "echo ctrl-g" may produce the desired beep sound.
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.
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Thread 'Project Documentation'
Trying to package up a small bank account manager project that I have been tempering on for a while. One that is certainly worth something to me. Although I have created methods to whip up quick documents with all fields and properties. I would like something better to reference in order to express the mechanical functions. It is unclear to me about any standardized format for code documentation that exists. I have tried object orientated diagrams with shapes to try and express the...

Similar threads

Back
Top