- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all,
I would like to know if you know the source code to create in fortran .wav sounds at user informed frequencies?
thanks
ivomar
I would like to know if you know the source code to create in fortran .wav sounds at user informed frequencies?
thanks
ivomar
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are going to need to be more specific with your question. Do you mean create a .wav file programmatically, produce a sound programmatically, or produce a sound from a pre-existing .wav file?
James
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yeah, I want to create programmaticaly (source code) that generates .wav files. I want to generate a .wav file with a beep where you can specify its frequency and duration to be played in other programs. Aren't there any modules in Fortran that already perform this task?
Greetings,
Ivomar
Greetings,
Ivomar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yeah, I want to create programmaticaly (source code) that generates .wav files. I want to generate a .wav file with a beep where you can specify its frequency and duration to be played in other programs. Aren't there any modules in Fortran that already perform this task?
Greetings,
Ivomar
Greetings,
Ivomar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
>...
>I want to generate a .wav file with a beep where you can specify its frequency and duration to be played in other programs.
Why don't you use the WinAPI function
BOOL Beep(
DWORD dwFreq, // sound frequency, in hertz
DWORD dwDuration // sound duration, in milliseconds
);
for this purpose. It's simple to call from within CVF. For example:
USE DFWINTY
USE KERNEL32
INTEGER (DWORD) dwFreq, dwDuration
INTEGER iRet
dwFreq = 200 ! Hz
dwDuration = 1000 ! ms
iRet = Beep(dwFreq, dwDuration)
Joerg Kuthe
www.qtsoftware.de
>I want to generate a .wav file with a beep where you can specify its frequency and duration to be played in other programs.
Why don't you use the WinAPI function
BOOL Beep(
DWORD dwFreq, // sound frequency, in hertz
DWORD dwDuration // sound duration, in milliseconds
);
for this purpose. It's simple to call from within CVF. For example:
USE DFWINTY
USE KERNEL32
INTEGER (DWORD) dwFreq, dwDuration
INTEGER iRet
dwFreq = 200 ! Hz
dwDuration = 1000 ! ms
iRet = Beep(dwFreq, dwDuration)
Joerg Kuthe
www.qtsoftware.de
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page