Assignment 68 - Music Notes for cs2

This assignment is a good introduction to queues, as well as reading from a file.

This assignment is inspired by a Nifty assignment, but using BRIDGES for the visualization and Audio API. Students create a program to read notes to a song from a file, place them in a queue, and then play the song. Included with this assignment we have the files for happy birthday, and twinkle twinkle little star. The student is welcome to write other songs or download some of the other samples from Nifty; in fact, this would increase engagement of the assignment as it provides choices for students to choose their own songs and share the assignemnt output with others.

Goals

The purpose of this assignment is to learn to

  1. Read Song Notes From Files
  2. Manipulate Queues
  3. Use the Bridges Audio API

Programming part

Task

Build a queue of notes from a file

Steps

  1. Open your base code.
  2. Plug in your credentials.

Build Notes queue from file

Build Song from Notes Queue

Reference

Music Theory Converting Notes to HZ

Java

Bridges Audio Clip

Java Queue

C++

Bridges Audio Clip

Python

Bridges Audio Clip