Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cs-142:sound [2015/10/12 22:17]
kseppi
cs-142:sound [2015/10/12 22:18] (current)
kseppi
Line 1: Line 1:
 +Sounds can be represented by an array of "​sample vales" that describe the intensity of the sound at a point in time. This sample code reads a sound file (in WAV format), calls a function process for processing the sample values, and saves the sound file. Your task is to implement the process function by introducing an echo. For each sound value, add the value from 2 seconds ago. Scale the result so that no value is larger than 32767. This sample file http://​dna.cs.byu.edu/​cs142/​clement.wav can be used, but you can record your own. It needs to be mono 16 bit uncompresses WAV.
 +
 <code cpp> <code cpp>
 #include <​iostream>​ #include <​iostream>​
cs-142/sound.txt ยท Last modified: 2015/10/12 22:18 by kseppi
Back to top
CC Attribution-Share Alike 4.0 International
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0