Since I don't have a signal generator, and I am a software engineer, I had the thought that I could just write a simple program to generate whatever signals I needed. Then, suchayo posted asking for signal generator software and it inspired me to actually figure out how I would do it. http://www.energeticforum.com/renewa...tml#post103110
I decided to write it in ChucK, since it is designed for audio generation, and has free runtimes available for OS X, Windows, and Linux. It makes doing stuff like this incredibly trivial. There are built in generators for sin waves, square waves, triangle waves, and impulses.
ChucK => Strongly-timed, On-the-fly Audio Programming Language
Attached is the output of that program. Sorry it's fuzzy. The built in soundcard on my mac mini puts out 250 millivolts. Hook it up to a home stereo amplifier to get more.
I'll have to fiddle around a little more to figure out how to do amplitude modulation. It's probably not too hard.
This is the scope I have, by the way. It's great:
SparkFun Electronics - DSO Nano - Pocket-Sized Digital Oscilloscope
I decided to write it in ChucK, since it is designed for audio generation, and has free runtimes available for OS X, Windows, and Linux. It makes doing stuff like this incredibly trivial. There are built in generators for sin waves, square waves, triangle waves, and impulses.
ChucK => Strongly-timed, On-the-fly Audio Programming Language
Code:
// connect SinOsc to dac SinOsc s => dac; // set initial frequency to 440 hz 440 => s.freq; // let time pass for 1 second 1::second => now;
I'll have to fiddle around a little more to figure out how to do amplitude modulation. It's probably not too hard.
This is the scope I have, by the way. It's great:
SparkFun Electronics - DSO Nano - Pocket-Sized Digital Oscilloscope
Comment