美文网首页
讲解:FLVS Course、C++、MIDI protocol

讲解:FLVS Course、C++、MIDI protocol

作者: jiniuyu | 来源:发表于2020-01-10 13:11 被阅读0次

FLVS Course Popup 5/15/19, 6(55 PMhttps://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 210.02 Assignment InstructionsPurpose: 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 thefollowing.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 quarternotes, 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 MidiPlayerclass (e.g., FLUTE, PIANO, etc.). Assign the instrument constant as the parameter in thesetInstrument() 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 transcribedinto 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 thecollaborative extension to this assignment. Several collaborative opportunities are provided throughout thecourse, but you only need to complete one.1. Notify your instructor that you need partners for this collaborative assignment. Tell your instructorwhether you read music or not. While you are waiting for partners to be assigned, continue on to thenext assignment.FLVS Course Popup 5/15/19, 6(55 PMhttps://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 22. When your instructor matches you up with other students, contact your partners and introduceyourself. When possible, a team will consist of at least two students who read music and one whodoes not.3. Work together with your partners and choose a different song to program. Locate the sheet musicfor 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 thesong with a whole rest, a middle C quarter note, and another whole rest to provide asynchronization point. Test your transcription with your program for this assignment to makesure 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 providea synchronization point. Test your transcription with your program for this assignment tomake sure it plays correctly. Send program to Student C.Student C - Mixer. Download the Quick Start Audacity Instructions to your Mod10Documents 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 songwith Audacity.Run the program received from Student B and capture an audio recording of the songwith Audacity.Use the middle C quarter note at the beginning of each song file to synchronize theseparate voices. After the voices are synchronized, delete the synchronization pointand 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 copyof the program and the mp3 audio file as well as the Self-Assessment Collaboration Survey. Print转自:http://www.7daixie.com/2019051813954858.html

相关文章

网友评论

      本文标题:讲解:FLVS Course、C++、MIDI protocol

      本文链接:https://www.haomeiwen.com/subject/psbpactx.html