CSE 8A Lecture 19: Connecting Sounds with Pictures - Notes

25 views2 pages

Document Summary

Classes are factories they produce objects, each with their own special traits. Static methods owned by the class: call these methods with the name of the class itself, no need for objects. Non-static methods owned by the object pu(cid:271)li(cid:272) stati(cid:272) void (cid:272)ollage(cid:894)(cid:895) { } pu(cid:271)li(cid:272) void filter(cid:894)(cid:895) { } We need an object to call non-static methods, which is what we do here. We only need the class to call static methods public static void main (string[] args) Public: visibility of method static: who owns this method (the main class) Is static because this method is called before everything else must be static because this is called before any objects are made void: returns nothing. Getting the loudest value in a sound helps us normalize the sound make it as loud as possible: largest value is 32,767. Normalize find the largest value divide it by 32,767 to get the factor multiply each sample value in the sound by factor.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions