(Solved) : Understand Due End Week Needs Done Format Python Document Proffessor Made Us Download Need Q42146716 . . .

I do not understand this at all and is due at the end of theweek it needs to be done in format of the python document myproffessor made us download. I need to know what to fill in for theminuet_filename function, the trio_filename function, the roll_dicefunction, and the construct_waltz function.
A ALERS Desme x Electro x G How m * Practic Fe che symbe where Blu/bbcswebdav/pid-5157877-ct-content-rid-38054920_1/courses/1* A ALEKS Dee Electro | G How m * Practic X G Fecha | Gumbox where x c edu/bbcswebdav/pid-5157877-dt-content-rid-380549201/coA ALEKS Deme t ect G How Practix Fecha x me where c dubbcswebdav/pid-5157877-dt-content-rid-380549201/courses/1198-IAE-101-SEC New Tab ** A ALEXS Desme Bectro How Practix Grech me where X bokedu/bbcswebdav/pid-5157877-ct-content-rid-38054920./coursesimage.pngIDLE File Edit Format Run Options Window Help *musical dice_game.py - /Users/frankorlando tm03 - [None, *59, 42, 54, 16A ALERS Desme x Electro x G How m * Practic Fe che symbe where Blu/bbcswebdav/pid-5157877-ct-content-rid-38054920_1/courses/1198-IAE-101-SEC01-95941/AE101-F19-Project03-Music IAE 101 – Introduction to Digital Intelligence Fall, 2019 Programming Project 03 – Musical Dice Game Assigned: Friday, November 8, 2019 Due: Sunday, December 17, 2019, at 11:55 PM Description: In 1787, Wolfgang Amadeus Mozart created a dice game (Mozart’s Musikalisches Wörfelspiel). In the game, you compose a two-part waltz by pasting together 32 of 272 pre-composed musical elements at random. The waltz. The waltz consists of two parts – the minuet and the trio. Each is comprised of 16 measures, which are generated at random according to a fixed set of rules, as described below. Minuet. The minuet consists of 16 measures. There are 176 possible Minuet measures, named M .wav through 176.wav. To determine which one to play, roll two fair dice, and use the following table. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 7 8 22 141 41 105 122 11 6 128 63 146 46 134 55 110 2 159 148 74 163 45 80 97 36 104 157 27 167 154 68 118 152 60 171 33 99 133 21 84 11450 140 86 169 98 142 42 156 75 129 62 3 87 165 61 13547 147 54 130 10 103 28 37 106 30 70 121 26 9 112 49 109 14 81 117 39 126 56 174 18 116 83 24 66 139 15 132 73 5814579 100 90 176 7 34 67 160 52 170 107 25 143 64 125 76 136 1 93 91 138 71 150 29 101 162 23 151 127 16 155 57 175 43 168 89 172 94 120 88 48 166 51 115 72 111 123 65 77 19 82 137 38 149 33 102 4 31 164 144 59 173 78 5 35 20 105 92 12 124 44 131 10 11 12 For example, if you roll an 11 for measure 3. then play measure 165 • Thio. The trio consists of 16 measures. There are 96 possible Trio measures named Ti.way through 195.waw. To determine which one to play, roll one fair die, and use the following table, 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 72 0 25 a 1 89 13 36 s 46 70 30 95 1966 56 2 42 14 14 22 717 2051 84 8 35 47 75 39 34 65 43 is no 34 93 48 69 58 90 22 4 40 73 26 68 20 55 2 6 22 67 49 77 37 37 33 20 * A ALEKS Dee Electro | G How m * Practic X G Fecha | Gumbox where x c edu/bbcswebdav/pid-5157877-dt-content-rid-380549201/courses/1198-IAE-101-SEC01-95041/AE101-F19-Project03-Musicalice There are 114166-16 different possible results, some of which are more likely than others. Since this is over 10-23 different possibilities, each time you play the game you are likely to compose a piece of music that has This description is stolen, wholesale, from petroos.cs.princeton odavai mentimental never been heard before! Mozart carefully constructed the measures to obey a rigid harmonie structure, so each waltz reflects Mozart’s distinct style. Unfortunately, due to the rigidity, the process never results in anything truly extraordinary. You will implement a program that constructs and plays a random waltz according to the rules of Mozart’s game. Directions: Two setup steps must be completed before beginning the assignment proper First, please install the simplaudio Python package. This can be done with Python’s Package Installer, pip like Windows Py-3 – pip install simpleaudio –user python) — pip install simpleaudio –user M Please do the installation as soon as possible this weekend) so that any installation problems can be resolved in a timely fashion Second, the wudio files are provided to you as a ZIP archive. You must unzip the archive in order to access the files. Download the archive Decompress your computer should know how to do this but just double clicking the file won’t be enough. Then copy all of the wav files inside the “Mozart” folder into the directory where your program is for learn how filepaths in filenames work) Now you are ready to be in the assignment. For this assignment, you will complete the implementation of musical dice py A ALEKS Deme t ect G How Practix Fecha x me where c dubbcswebdav/pid-5157877-dt-content-rid-380549201/courses/1198-IAE-101-SEC01-95941/1AE101-F19-Project03-Musicalice This file contains two tables represented as nested lists. The first table contains Mozart’s table for randomly choosing 16 measures for the minut portion of the waltz. The second table contains Mozart’s table for randomly choosing 16 measures for the trio portion of the waltz. The values in each table are numbers of measures of music represented as strings. Each of these numbers uniquely identifies an audio file distributed with the assignment-the number is a part of the audio file’s name. You are responsible for implementing four functions. The first function, minuet filename), takes one argument, which is a string. That string will be one of the entries randomly selected from Mozart’s minuet table. The function will return a string that is the filename for the corresponding audio file. Fach minut musical file begins with a capital “M”, and then the number from the table, and then a period, and then the file extension for the audio file, “way”. For example, if you select “119” by rolling a 9 for the first minuct measure, then the corresponding filename will be “M119.wav”. The second function, trio filename is very similar. It also takes one argument, a numeral represented as a string that corresponds to the name of one of the audio files that contains a measure of trio music. Again, the function must return the complete filename of the wadio file as a string. The filename begins with a capital “T”. followed by the number from the table, then a period. . and then the file extension for the audio file was For example, if you select “49” by rolling a 4 for the 11 trio measure, then the corresponding filename will be Twa The third facto specifhem er dice is used to late the dice rolling the function takes one argument that d ed dice will be rolled You will use functions from Python’s random b y specified b er of dedice. The funct will then the fall the dice rolls Po s t proces and the second the the C New Tab ** A ALEXS Desme Bectro How Practix Grech me where X bokedu/bbcswebdav/pid-5157877-ct-content-rid-38054920./courses/1198-1E-101-SEC1-95941/AE101-F19Project03-Musical simulate rolling the specified number of 6-sided dice. The function will then return the sum of all the dice rolls performed by the function Solved Game.pdf For example, if the first die roll”produced a 5 and the second “die roll produces a 2, then the result returned by the roll dice function should be The final function is called cost walu Instead, you will loop over the c o of two 6-sided dice today we record your selections. Tren d do o kewwarm , it does not h en call you rodice function ridefying calmesure from each ing each selection to a list a valu a l You The function will then perform the same op over the trie s ing roll dice to m e rolling on sided due to randomly selecting a herdeifing a musicals from each come and appending the result to your list of selections After you have randomly selected all the measures that will make up you wake you the need to play you wal you need to access the audio files that will compose your waltz for playback Loop over your of lections and use the minut filename) tria filename) functions to construct objects of the simples WaveObject class from the corresponding.ww audio files. The filename for each selection should be passed to the Wavelet constructor provided by simplaudis. You should appund each of these objects to a new list as you create them Now loop over your list of Walects call the play method on each one. Make sure that you wantil cach measure has finished playing before playing the next And that is it. Your random wa s complete Sales L ease add you 2 Upload your the polical dice game yes and e We were unable to transcribe this imageIDLE File Edit Format Run Options Window Help *musical dice_game.py – /Users/frankorlando tm03 – [None, *59”, “42”, “54”, “16”, “28”, “62”) tm04 – [None, “25”, “74”, “1”, “68”, “53”,”38″] tmes – [None, “81”, “14”, “65”, “29”, “37”, “4”] tm06 – [None, “41”, “7”, “43”, “55”, “17”, “27”] tm07 – [None, “89”, -26″, -15″, “2”, “44”, “52”] tm08 – [None, “13”, “71”,”80″ “61” “70” “947 tm09 – [None, *36”, “76”, “9”,”22″, “63”,”11″] tm1 = [None, “5”, “20”, “34”, “67”, “85”, “92”) tm11 – [None, *46″, “64”, “93”, “49”,”32″, “24” tm12 – [llone, “79”, “84”. “48”. “77”, “96”, “86”] tm13 – [None, “30”,”8″, “69”, “57”,”12″,”51″] tm14 – [None, “95”, “35”, “58”, “87”,”23″ “60”] tm15 – [None, “19”, “47”, “90”, “33”, “50”, “78”] tm16 – [None, “66”, “88”,”21″, “10”, “91”,”31″] # This table contains all of the columns of the trio portion of Mozart’s # Musical Dice Gome in order. trio_table – [tm61, tm82, tm83, tm4, tm5, 06, tme, tme, tme, tmie, tm11, tm12, 13, 14, 15, tm16] #This function takes a string as an argument and constructs a string that names # one of the wav audio files that contains a measure of music for the minuet # portion of Mozart’s Musical Dice Gome. def minuet Filename(id): return -1 #This function takes a string as an argument and constructs a string that names one of the way audio files that contains a measure of music for the trio # portion of Mozart’s Musical Dice Game def trio.filename(tmid) return -1 # This function takes a single interger, honed un’ as its argument. It # generates the result of rolling “num many 6-sided dice def roll_dice(num – 1): return 1 Inside this main function you will randomly select 16 measures from the mi nuet tableone from each column of the minuet table, and then randomly select. 16 #measures from the trio table, one from each column of the trio table. Each # measure is represented by a string numeral, and corresponds to the name of a way audio file that plays the selected measure of music. # You must then access each of the selected wav Files and play then using #simplesudio’s interface. Make sure you wait for each measure to finish before #playing the next measure def construct waltz: return -1 if name = “main_.” Constructoltz Show transcribed image text A ALERS Desme x Electro x G How m * Practic Fe che symbe where Blu/bbcswebdav/pid-5157877-ct-content-rid-38054920_1/courses/1198-IAE-101-SEC01-95941/AE101-F19-Project03-Music IAE 101 – Introduction to Digital Intelligence Fall, 2019 Programming Project 03 – Musical Dice Game Assigned: Friday, November 8, 2019 Due: Sunday, December 17, 2019, at 11:55 PM Description: In 1787, Wolfgang Amadeus Mozart created a dice game (Mozart’s Musikalisches Wörfelspiel). In the game, you compose a two-part waltz by pasting together 32 of 272 pre-composed musical elements at random. The waltz. The waltz consists of two parts – the minuet and the trio. Each is comprised of 16 measures, which are generated at random according to a fixed set of rules, as described below. Minuet. The minuet consists of 16 measures. There are 176 possible Minuet measures, named M .wav through 176.wav. To determine which one to play, roll two fair dice, and use the following table. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 7 8 22 141 41 105 122 11 6 128 63 146 46 134 55 110 2 159 148 74 163 45 80 97 36 104 157 27 167 154 68 118 152 60 171 33 99 133 21 84 11450 140 86 169 98 142 42 156 75 129 62 3 87 165 61 13547 147 54 130 10 103 28 37 106 30 70 121 26 9 112 49 109 14 81 117 39 126 56 174 18 116 83 24 66 139 15 132 73 5814579 100 90 176 7 34 67 160 52 170 107 25 143 64 125 76 136 1 93 91 138 71 150 29 101 162 23 151 127 16 155 57 175 43 168 89 172 94 120 88 48 166 51 115 72 111 123 65 77 19 82 137 38 149 33 102 4 31 164 144 59 173 78 5 35 20 105 92 12 124 44 131 10 11 12 For example, if you roll an 11 for measure 3. then play measure 165 • Thio. The trio consists of 16 measures. There are 96 possible Trio measures named Ti.way through 195.waw. To determine which one to play, roll one fair die, and use the following table, 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 72 0 25 a 1 89 13 36 s 46 70 30 95 1966 56 2 42 14 14 22 717 2051 84 8 35 47 75 39 34 65 43 is no 34 93 48 69 58 90 22 4 40 73 26 68 20 55 2 6 22 67 49 77 37 37 33 20
* A ALEKS Dee Electro | G How m * Practic X G Fecha | Gumbox where x c edu/bbcswebdav/pid-5157877-dt-content-rid-380549201/courses/1198-IAE-101-SEC01-95041/AE101-F19-Project03-Musicalice There are 114166-16 different possible results, some of which are more likely than others. Since this is over 10-23 different possibilities, each time you play the game you are likely to compose a piece of music that has This description is stolen, wholesale, from petroos.cs.princeton odavai mentimental never been heard before! Mozart carefully constructed the measures to obey a rigid harmonie structure, so each waltz reflects Mozart’s distinct style. Unfortunately, due to the rigidity, the process never results in anything truly extraordinary. You will implement a program that constructs and plays a random waltz according to the rules of Mozart’s game. Directions: Two setup steps must be completed before beginning the assignment proper First, please install the simplaudio Python package. This can be done with Python’s Package Installer, pip like Windows Py-3 – pip install simpleaudio –user python) — pip install simpleaudio –user M Please do the installation as soon as possible this weekend) so that any installation problems can be resolved in a timely fashion Second, the wudio files are provided to you as a ZIP archive. You must unzip the archive in order to access the files. Download the archive Decompress your computer should know how to do this but just double clicking the file won’t be enough. Then copy all of the wav files inside the “Mozart” folder into the directory where your program is for learn how filepaths in filenames work) Now you are ready to be in the assignment. For this assignment, you will complete the implementation of musical dice py
A ALEKS Deme t ect G How Practix Fecha x me where c dubbcswebdav/pid-5157877-dt-content-rid-380549201/courses/1198-IAE-101-SEC01-95941/1AE101-F19-Project03-Musicalice This file contains two tables represented as nested lists. The first table contains Mozart’s table for randomly choosing 16 measures for the minut portion of the waltz. The second table contains Mozart’s table for randomly choosing 16 measures for the trio portion of the waltz. The values in each table are numbers of measures of music represented as strings. Each of these numbers uniquely identifies an audio file distributed with the assignment-the number is a part of the audio file’s name. You are responsible for implementing four functions. The first function, minuet filename), takes one argument, which is a string. That string will be one of the entries randomly selected from Mozart’s minuet table. The function will return a string that is the filename for the corresponding audio file. Fach minut musical file begins with a capital “M”, and then the number from the table, and then a period, and then the file extension for the audio file, “way”. For example, if you select “119” by rolling a 9 for the first minuct measure, then the corresponding filename will be “M119.wav”. The second function, trio filename is very similar. It also takes one argument, a numeral represented as a string that corresponds to the name of one of the audio files that contains a measure of trio music. Again, the function must return the complete filename of the wadio file as a string. The filename begins with a capital “T”. followed by the number from the table, then a period. . and then the file extension for the audio file was For example, if you select “49” by rolling a 4 for the 11 trio measure, then the corresponding filename will be Twa The third facto specifhem er dice is used to late the dice rolling the function takes one argument that d ed dice will be rolled You will use functions from Python’s random b y specified b er of dedice. The funct will then the fall the dice rolls Po s t proces and the second the the
C New Tab ** A ALEXS Desme Bectro How Practix Grech me where X bokedu/bbcswebdav/pid-5157877-ct-content-rid-38054920./courses/1198-1E-101-SEC1-95941/AE101-F19Project03-Musical simulate rolling the specified number of 6-sided dice. The function will then return the sum of all the dice rolls performed by the function Solved Game.pdf For example, if the first die roll”produced a 5 and the second “die roll produces a 2, then the result returned by the roll dice function should be The final function is called cost walu Instead, you will loop over the c o of two 6-sided dice today we record your selections. Tren d do o kewwarm , it does not h en call you rodice function ridefying calmesure from each ing each selection to a list a valu a l You The function will then perform the same op over the trie s ing roll dice to m e rolling on sided due to randomly selecting a herdeifing a musicals from each come and appending the result to your list of selections After you have randomly selected all the measures that will make up you wake you the need to play you wal you need to access the audio files that will compose your waltz for playback Loop over your of lections and use the minut filename) tria filename) functions to construct objects of the simples WaveObject class from the corresponding.ww audio files. The filename for each selection should be passed to the Wavelet constructor provided by simplaudis. You should appund each of these objects to a new list as you create them Now loop over your list of Walects call the play method on each one. Make sure that you wantil cach measure has finished playing before playing the next And that is it. Your random wa s complete Sales L ease add you 2 Upload your the polical dice game yes and e

IDLE File Edit Format Run Options Window Help *musical dice_game.py – /Users/frankorlando tm03 – [None, *59″, “42”, “54”, “16”, “28”, “62”) tm04 – [None, “25”, “74”, “1”, “68”, “53”,”38″] tmes – [None, “81”, “14”, “65”, “29”, “37”, “4”] tm06 – [None, “41”, “7”, “43”, “55”, “17”, “27”] tm07 – [None, “89”, -26″, -15″, “2”, “44”, “52”] tm08 – [None, “13”, “71”,”80″ “61” “70” “947 tm09 – [None, *36”, “76”, “9”,”22″, “63”,”11″] tm1 = [None, “5”, “20”, “34”, “67”, “85”, “92”) tm11 – [None, *46″, “64”, “93”, “49”,”32″, “24” tm12 – [llone, “79”, “84”. “48”. “77”, “96”, “86”] tm13 – [None, “30”,”8″, “69”, “57”,”12″,”51″] tm14 – [None, “95”, “35”, “58”, “87”,”23″ “60”] tm15 – [None, “19”, “47”, “90”, “33”, “50”, “78”] tm16 – [None, “66”, “88”,”21″, “10”, “91”,”31″] # This table contains all of the columns of the trio portion of Mozart’s # Musical Dice Gome in order. trio_table – [tm61, tm82, tm83, tm4, tm5, 06, tme, tme, tme, tmie, tm11, tm12, 13, 14, 15, tm16] #This function takes a string as an argument and constructs a string that names # one of the wav audio files that contains a measure of music for the minuet # portion of Mozart’s Musical Dice Gome. def minuet Filename(id): return -1 #This function takes a string as an argument and constructs a string that names one of the way audio files that contains a measure of music for the trio # portion of Mozart’s Musical Dice Game def trio.filename(tmid) return -1 # This function takes a single interger, honed un’ as its argument. It # generates the result of rolling “num many 6-sided dice def roll_dice(num – 1): return 1 Inside this main function you will randomly select 16 measures from the mi nuet tableone from each column of the minuet table, and then randomly select. 16 #measures from the trio table, one from each column of the trio table. Each # measure is represented by a string numeral, and corresponds to the name of a way audio file that plays the selected measure of music. # You must then access each of the selected wav Files and play then using #simplesudio’s interface. Make sure you wait for each measure to finish before #playing the next measure def construct waltz: return -1 if name = “main_.” Constructoltz

Expert Answer


Answer to I do not understand this at all and is due at the end of the week it needs to be done in format of the python document m…

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?