Join Bill Weinman for an in-depth discussion in this video Creating the waveform, part of Code Clinic: C++.
- Because it's a low-level interface,…the OS10 Audio Unit center face…is both powerful and complex.…Take a look at this view controller implementation file,…you'll notice around line 13 where the first things…in this file is a stand alone C function…that's not actually part of the class.…This is actually a call-back that's used…by the Audio Units interface,…and this call-back is used to render the…sine-wave waveform that we're using for the Theremin.…So, down here in this loop,…starting around line 31,…this four-loop is used to generate the actual sine-wave.…
You'll notice in here, that the sine-wave…is multiplied by an amplitude,…that sets the volume of the tone that we hear.…That's calculated, actually, up above based on…the slider and the constant E for a natural logarithm.…Here on line 22, I see if the constant has…been set or not, so I only set it once.…Then on line 24, calculate the amplitude based…on the position of the volume slider and the constant E.…Coming down into View Did Load,…so this gets called an IOS application,…
Bill introduces challenges and provides an overview of his solutions in C++. Challenges include topics such as statistical analysis, searching directories for images, and accessing peripheral devices.
Visit other courses in the series to see how to solve the exact same challenges in languages like C#, Java, PHP, Python, and Ruby.
Skill Level Intermediate
Q: I am unable to access the Lake Pend Oreille data from outside the U.S.
A: A static copy of this data is provided here for lynda.com members outside of the U.S
Problem One: Exploring Lake Pend Oreille
Solution overview2m 51s
Problem Two: Image Analysis
Problem Three: Eight Queens
Problem Four: Accessing Peripherals
Problem Five: Recursion and Directories
Problem Six: Building the Web
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.