ECE 1620 - Assignment #6 Part 2 - Due: 18 March 2022


  1. a6/p3.c - digital audio forensics

    Your partner in a bank fraud scheme has encrypted a secret 9-digit account number in an audio message for you, in file p3.audio.

    The police have had no success in decrypting the message, but you have a copy of the encryption program and can easily modify it to perform CBC decryption.

    After decrypting and hearing the account number, submit it here to transfer the funds to your bank.

    Check results - view the log entries for your account number submission

    Optional/extra: decrypt and submit the number from p3x.audio which was created using the same encryption program as above but with an unknown six-digit seed.


  2. a6/p4.c - generating music

    Write a function in the form:

      void play( int key, int duration) // duration units are tenths of a second
    
    which generates and prints samples of sin(w*t) for t=0,1,2,...,n-1 which represent a tone corresponding to piano key number key, where:
      n = (duration/10.0)*8000
    
      w = (2π440rkey-49)/8000
    
      r = 21/12
    
    In the main program call your function to play the first three notes of three blind mice.

    References: piano key numbers and notes, three blind mice score

    Optional/extra: generate more notes, add harmonics and/or harmony, use different song.