联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp

您当前位置:首页 >> C/C++编程C/C++编程

日期:2019-05-17 10:06

FLVS Course Popup 5/15/19, 6(55 PM

https://lti.flvsgl.com/flvs-cat-content/a2elrm9ledegcmjiajjl1osneo/fl…rogram1_v9_2_e14_gs/module10/lesson02/pop/10_02_04/10_02_04_pop06.htm Page 1 of 2

10.02 Assignment Instructions

Purpose: Play a song translated into the MIDI protocol.

Materials: PlaySongDemo.zip (../../zip/PlaySongDemo.zip) and sheet music for a song of your choice.

Program Specifications: Use the following guidelines to write your program.

1. Locate a web site with copyright free sheet music for a song of your choice, or use one of the

following.

National Anthem of the United States (../../pop/10_02_04/10_02_04_pop03.htm)

Pop Goes the Weasel (../../pop/10_02_04/10_02_04_pop04.htm)

Londonerry Air (../../pop/10_02_04/10_02_04_pop05.htm)

2. Write the names of the notes in the song above each line of music (e.g., C, G, etc.).

3. Convert name of the note to its corresponding MIDI note number

(//l.flvsgl.com/GSL0ca44dd5d11e2306425bf988e09c05a6c) for each line of music (e.g., middle C =

60).

4. Record the duration of each note using 1000 for whole notes, 500 for half notes, 250 for quarter

notes, 125 for eighth notes, and 62 for sixteenth notes.

5. Make a copy of the PlaySongDemo and rename it PlayMySong.

6. Assign the MIDI note numbers to the notes[ ] array.

7. Assign the MIDI duration numbers to the duration[ ] array.

8. Choose an instrument from those listed in the documentation at the beginning of the MidiPlayer

class (e.g., FLUTE, PIANO, etc.). Assign the instrument constant as the parameter in the

setInstrument() method.

9. Be sure to add applause at the end of your performance.

Expected Output: When your program runs correctly it will play the melody of the song you transcribed

into the MIDI format.

Analysis Questions: Please answer the following questions.

1. What are some similarities and differences between playing music and writing a program?

2. Which instrument did you like the best and why?

3. What question(s) of your own did you answer while writing this program?

4. What unanswered question(s) do you have after writing this program?

Optional Collaborative Assignment Specifications: Use the following guidelines to complete the

collaborative extension to this assignment. Several collaborative opportunities are provided throughout the

course, but you only need to complete one.

1. Notify your instructor that you need partners for this collaborative assignment. Tell your instructor

whether you read music or not. While you are waiting for partners to be assigned, continue on to the

next assignment.

FLVS Course Popup 5/15/19, 6(55 PM

https://lti.flvsgl.com/flvs-cat-content/a2elrm9ledegcmjiajjl1osneo/fl…ogram1_v9_2_e14_gs/module10/lesson02/pop/10_02_04/10_02_04_pop06.htm Page 2 of 2

2. When your instructor matches you up with other students, contact your partners and introduce

yourself. When possible, a team will consist of at least two students who read music and one who

does not.

3. Work together with your partners and choose a different song to program. Locate the sheet music

for the song, but remember it must not be copyrighted.

4. Next, decide among yourselves who will transcribe the music and who will mix the voices.

Student A - First Transcriber: Transcribe one voice of the song into the MIDI format. Begin the

song with a whole rest, a middle C quarter note, and another whole rest to provide a

synchronization point. Test your transcription with your program for this assignment to make

sure it plays correctly. Send program to Student C.

Student B - Second Transcriber: Transcribe a different voice of the song into the MIDI format.

Begin the song with a whole rest, a middle C quarter note, and another whole rest to provide

a synchronization point. Test your transcription with your program for this assignment to

make sure it plays correctly. Send program to Student C.

Student C - Mixer. Download the Quick Start Audacity Instructions to your Mod10

Documents folder. Follow the instructions and set up Audacity on your computer.

Run the program received from Student A and capture an audio recording of the song

with Audacity.

Run the program received from Student B and capture an audio recording of the song

with Audacity.

Use the middle C quarter note at the beginning of each song file to synchronize the

separate voices. After the voices are synchronized, delete the synchronization point

and export the audio file in the mp3 format. Send the mp3 file to your partners.

5. Your work will be submitted through as 10.05 Collaborative Project. Each student will submit a copy

of the program and the mp3 audio file as well as the Self-Assessment Collaboration Survey.

 Print


版权所有:留学生编程辅导网 2020 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp