VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Tone Generator

by Erik Stites (10 Submissions)
Category: Sound/MP3
Compatability: VB Script
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (7 Votes)

This proj allows you to make audio tones and save them as a wave file. If you have looked at any Oscope type graphs of audio and wondered if you could create sound just by drawing, well, you can. It allows you to create Sine, Cosine, and a Combined signal at different frequencies. You can also draw your own wave clip in either the window or your favorite graphic editor. Use a 512w X 256h bitmap. Any color for the signal, as long as the background is black. To use this feature, Click the 'open bitmap' button and find your saved bitmap (you can also simply draw your own in the program) Then click 'Trace Bitmap' Now be sure to select the 'Use custom drawn' checkbox. Choose your wave properties, then click 'write wave' If you recieve an error when saving a custom sound, try removing any signal points that are very near the top or bottom of the bitmap. I have included a few of my own bitmaps for you to play with (Don't worry, the zip is only 14KB). I would like to thank Alex Murray and his "Bass Maker" for inspiration. Vote if you would like, or don't, but please leave feedback.

Inputs
Frequency, Bitrate, Samplerate, Length, Channels
Code Returns
A wave file
API Declarations
Public Declare Function GetPixel Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long

Rate Tone Generator

Download Tone Generator

Download Tone Generator (15 KB)

Tone Generator Comments

No comments have been posted about Tone Generator. Why not be the first to post a comment about Tone Generator.

Post your comment

Subject:
Message:
0/1000 characters