CS 372: Module 2: Square Wave (1.5 Points)
Developed by Professor Tralie and Professor Mongan.Exercise Goals
The goals of this exercise are:- To use numpy operations to create audio
- To apply formulate for creating sinusoids and related functions
Create a 660hz cosine-based square wave at a which occupies a half of a second, sampled at 44100 samples per second. To do this, create a 660hz cosine wave, then feed it as an argument to the np.sign
function
Below is an image of the first 400 samples of the square wave you're shooting for
Welcome to our online modules system!
Be sure to log in with your Urinus ID
before you proceed.
For example, Professor Tralie's ID is ctralie.
If you are not an Ursinus student, that's fine!
Just make something up, and you can still run everything