Musikalische Würfelspiele

Introduction:

Procedural music composition is an extremely fascinating subject. Inspiration is important for musicians and a way to make new compositions or trigger these flashes of inspiration is valuable. As such, procedural music composition plays an important role in music.

In this project, I will tackle the Mozart Dice Game or “Musikalische Würfelspiele” which uses music construction and randomness to craft an enormous amount of music pieces.

Main idea:

The main idea of the project is to create dynamically generated music scores following the rules that have been implemented by Mozart for his Dice Game. As such, the user will be able to roll 16 different pair of dices and compose a music piece in real time. This score will be displayed to the user. Each piece that composes the music score will have its dice roll which was responsible for choosing it above the mesure. After having rolled the dices the user with also hear the music play at the same time. Thereafter, the user will also be able to follow the music in real time because each part of the score will be highlighted while played.

It also possible to stop the music at any time or chose to start another random composition as well as loop the musis generation as long as the user wishes to listen to it.

Technical details:

To create the project the library used was p5. To use sound and create the dynamically generated playlist p5.sound was utilized for its ability to add an onended function when playing a sound from a music file. This feature was not available in Tone.js which is the primary reason p5.sound was used instead. To draw the score images and modify the images on run time, so the mesure being played is clearly shown to the user of the website, p5.dom was used.

There were a lot of unanticipated problems during the conception of the project.

The main cause of the problems stems from finding the resources to create the musical pieces. Indeed, we need both each individual wav file for each music mesure but also we need its corresponding music sheet representation. One unanticipated problem is that using midi turned out to be more complicated previously thought. In the mid project presentation, I made the decision to use wav file instead of midi files which made me use p5. To create the music sheet representation of the mesures I individually cropped all scores from an already available music score of all pieces. However, the music sounds revealed to be slightly different from the music scores and I only realized it at the very end when it was pointed out by Eric (I do not have any musical background so I thought it was strange but normal)

I found a Midi file with all pieces of music that really corresponded to the music score but I needed to cut the Midi file into 176 measures as well convert them individually to wav format.

References:

Here are some case study I took inspiration from:

kerndice

dein name

dice

nowa

scratch

Here is are links to resources used to complete the project:

Drawing: Drawing

Dom: Dom

Playlist: Playlist

Score: Score

Wav files: Wav files

Dices: Dices

Here is the link to the video presenting a demo of the webpage:

Musikalische Würfelspieles demo

Here is the link to the website (might take a while to load the 174 wav files)

Musikalische Würfelspieles