3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Analog Sound Synthesis on Your Computer

Step 5Other types of voltage sources, other types of sounds.

Other types of voltage sources, other types of sounds.
An analog synthesizer needs a source of random noise. You can generate noise using a "behavioral voltage source" (bv) and you can switch it on and off using a "voltage controlled switch" (sw).

Using the bv component to generate noise involves defining the voltage based on a formula. The formula for generating noise looks like this: V=white(time*X)*Y The white function creates a random voltage between -0.5 and +0.5 V using the current time value as a seed. Setting Y to 2 gives a +/- 1V swing. Setting X between 1,000 (1e3) and 100,000 (1e5) affects the spectrum of the noise and changes the sound.

The voltage controlled switch also needs some parameters to be set in a .model statement. You can use multiple voltage controlled switches and multiple model statements to make each one behave differently if you want. You have to tell the simulator the "on" and "off" resistances and the threshold voltage at which it switches. Vh is "hysteresis voltage". Set it to some positive value like 0.4V and there won't be any clicking sounds when the switch opens and closes.

>>>Update: here's an even easier way to make a gated noise source- just multiply the noise voltage by a pulsed source- see easy_gated_noise.asc, below.
« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
17
Followers
6
Author:Mark Rehorst(Mark Rehorst's Projects Page)
I was electrical engineer for 22+ years, then went back to school and became a dentist.