CS 111 - Program Design

Spring 2014

Exam 3 Topics

Java Topics
  • arrays - the big new thing since the last exam
  • still need the Java items from previous exams
    • while loops
    • for loops
    • if statements
    • method calls
    • method writing
    • return statements
    • arithmetic operators (including %)
    • relational operators
    • boolean operators
    • variables
Sound Topics
  • constructors using a filename and the number of samples
    • Sound s1 = new Sound(filename);
    • Sound s2 = new Sound (22050);
  • getLength()
  • getSamples()
  • getSamplingRate()
  • use of the SoundSample array
  • SoundSample[] ssarr = s.getSamples();
    • val1 = ssarr[i].getValue();
    • ssarr[i].setValue(val1);
  • volume control (mutliplying the SoundSample value)
  • combining two sounds to play at same time (adding the SoundSample values)
  • joining two sounds to play in order (position/index modification)
  • fade-in - increasing volume over time
  • fade-out - decreasing volume over time
  • increase pitch - compressing the sound
  • decrease pitch - expanding the sound
-- Main.troy - 2014-05-02
Topic revision: r1 - 2014-05-02 - 18:45:00 - Main.troy
 
Copyright 2016 The Board of Trustees
of the University of Illinois.webmaster@cs.uic.edu
WISEST
Helping Women Faculty Advance
Funded by NSF