neu-fall18
LIKE
DONT
DONE
file-as-bytes
play-sound
song-bytes
7.1

neu-fall18

Matthias Felleisen

 (require neu-fall18) package: neu-fall18

The teachpack provides auxiliary functions for Northeastern’s Fall 2018 Fundamentals I course (regular edition).

A Response is one of:
  • value

    LIKE : string?

    the listener liked the song

  • value

    DONT : string?

    the listener did not like the song

  • value

    DONE : string?

    the listener did not provide feeback

procedure

(file-as-bytes s)  bytes?

  s : string?
retrives a file as a byte string.

procedure

(play-sound s)  Response

  s : bytes?
plays the given MP3 bytes on your computer’s speakers.

Effect It pops up a big-bang window that allows listeners to make the following choices via mouse clicks:
  • pause the MP3 rendering

  • resume a paused MP3 rendering

  • "like" the MP3, and

  • "dislike" the MP3.

struct

(struct song-bytes (title mp3)
    #:extra-constructor-name make-song-bytes)
  title : string?
  mp3 : bytes?
represents MP3 as they are sent from the Fundamentals I server.

Changed in version 0.9 of package neu-fall18: Sat Sep 1 13:46:50 EDT 2018