Learn how to write the code to update the volume and frequency of the tone generated based on the movement of track bar controls.
- [Instructor] Now that we're generating a sine wave,…a signal that we're able to play…based on the mouse up and mouse down event,…let's also now change the frequency in the volume…based on changing values of the trackers.…So that horizontal,…or that we're able to scroll left and right on,…let's use that to change the volume,…and the vertical one, to change the frequency.…So we will remove frequency from up here,…line 21, delete.…And often initialize component,…let's set this up so we can say track frequency,…value changed, so track frequency is the control…we'll scroll vertically up and down on,…and when it's value changes,…I would like to add an event handler,…which maps to a lander.…
And all I wanted to do is set a value.…So sine or object above, has a frequency property,…and we'll set that to the track frequency value.…So whenever the value's changed on that control,…someone slides it up or down,…we will change the frequency as per…the sine dot frequency property.…So let's set a initial value.…Track frequency, dot value,…
Skill Level Intermediate
1. Problem 1: Pond Oreille
2. Problem 2: Where Am I?
3. Problem 3: Eight Queens
4. Problem 4: Accessing Peripherals
5. Problem 5: Facial Recognition
6. Problem 6: Real-Time Information Dashboard
Next steps2m 46s
- 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.