Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .glitch-assets
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{"name":"onlymp3.to - Congratulations, You Won!-tS_2hEmGnzA-192k-1660206668176.mp3","date":"2022-09-07T17:56:30.013Z","url":"https://cdn.glitch.global/3a54f5cf-842d-4a56-b067-db61308f1f3c/onlymp3.to%20-%20Congratulations%2C%20You%20Won!-tS_2hEmGnzA-192k-1660206668176.mp3","type":"audio/mpeg","size":81837,"thumbnail":"https://cdn.glitch.global/3a54f5cf-842d-4a56-b067-db61308f1f3c/thumbnails%2Fonlymp3.to%20-%20Congratulations%2C%20You%20Won!-tS_2hEmGnzA-192k-1660206668176.mp3","thumbnailWidth":210,"thumbnailHeight":210,"uuid":"AKd6R5zmBSa7eIOe"}
{"uuid":"AKd6R5zmBSa7eIOe","deleted":true}
{"name":"onlymp3.to - Congratulations, You Won!-tS_2hEmGnzA-192k-1660206668176.mp3","date":"2022-09-07T17:56:35.757Z","url":"https://cdn.glitch.global/3a54f5cf-842d-4a56-b067-db61308f1f3c/onlymp3.to%20-%20Congratulations%2C%20You%20Won!-tS_2hEmGnzA-192k-1660206668176.mp3","type":"audio/mpeg","size":81837,"thumbnail":"https://cdn.glitch.global/3a54f5cf-842d-4a56-b067-db61308f1f3c/thumbnails%2Fonlymp3.to%20-%20Congratulations%2C%20You%20Won!-tS_2hEmGnzA-192k-1660206668176.mp3","thumbnailWidth":210,"thumbnailHeight":210,"uuid":"W9mkXgSeDAa5aHAE"}
{"name":"congratulations.mp3","date":"2022-09-07T17:57:13.688Z","url":"https://cdn.glitch.global/3a54f5cf-842d-4a56-b067-db61308f1f3c/congratulations.mp3","type":"audio/mpeg","size":81837,"thumbnail":"https://cdn.glitch.global/3a54f5cf-842d-4a56-b067-db61308f1f3c/thumbnails%2Fcongratulations.mp3","thumbnailWidth":210,"thumbnailHeight":210,"uuid":"cTCOMEO1d1fMA6cY"}
{"uuid":"W9mkXgSeDAa5aHAE","deleted":true}
{"uuid":"cTCOMEO1d1fMA6cY","deleted":true}
{"name":"congratulations.mp3","date":"2022-09-07T19:01:36.679Z","url":"https://cdn.glitch.global/3a54f5cf-842d-4a56-b067-db61308f1f3c/congratulations.mp3","type":"audio/mpeg","size":81837,"thumbnail":"https://cdn.glitch.global/3a54f5cf-842d-4a56-b067-db61308f1f3c/thumbnails%2Fcongratulations.mp3","thumbnailWidth":210,"thumbnailHeight":210,"uuid":"y0bZmaKXoThYk5jm"}
{"name":"Mario.mp3","date":"2022-10-04T07:12:17.998Z","url":"https://cdn.glitch.global/1ac0c3bf-5e02-4570-a87d-e58b8c6feba1/Mario.mp3","type":"audio/mpeg","size":43401,"thumbnail":"https://cdn.glitch.global/1ac0c3bf-5e02-4570-a87d-e58b8c6feba1/thumbnails%2FMario.mp3","thumbnailWidth":210,"thumbnailHeight":210,"uuid":"xUhaWZfxRZ81l2Mc"}
{"name":"mario.jpg","date":"2022-10-04T07:25:48.810Z","url":"https://cdn.glitch.global/1ac0c3bf-5e02-4570-a87d-e58b8c6feba1/mario.jpg","type":"image/jpeg","size":81856,"imageWidth":1600,"imageHeight":900,"thumbnail":"https://cdn.glitch.global/1ac0c3bf-5e02-4570-a87d-e58b8c6feba1/thumbnails%2Fmario.jpg","thumbnailWidth":330,"thumbnailHeight":186,"uuid":"5gscS4pVXbOm8ivQ"}
{"name":"9aa6ad9f-b8bb-43c3-a8cd-0b3897ee9556.image.png","date":"2022-10-04T07:42:09.105Z","url":"https://cdn.glitch.global/1ac0c3bf-5e02-4570-a87d-e58b8c6feba1/9aa6ad9f-b8bb-43c3-a8cd-0b3897ee9556.image.png","type":"image/png","size":311593,"imageWidth":937,"imageHeight":952,"thumbnail":"https://cdn.glitch.global/1ac0c3bf-5e02-4570-a87d-e58b8c6feba1/thumbnails%2F9aa6ad9f-b8bb-43c3-a8cd-0b3897ee9556.image.png","thumbnailWidth":325,"thumbnailHeight":330,"uuid":"51I8I2VQjgWKxvUO"}
{"name":"bc27b15d-b919-4be4-8b81-b0ad0219e1ea.image.png","date":"2022-10-04T07:42:16.698Z","url":"https://cdn.glitch.global/1ac0c3bf-5e02-4570-a87d-e58b8c6feba1/bc27b15d-b919-4be4-8b81-b0ad0219e1ea.image.png","type":"image/png","size":311593,"imageWidth":937,"imageHeight":952,"thumbnail":"https://cdn.glitch.global/1ac0c3bf-5e02-4570-a87d-e58b8c6feba1/thumbnails%2Fbc27b15d-b919-4be4-8b81-b0ad0219e1ea.image.png","thumbnailWidth":325,"thumbnailHeight":330,"uuid":"zMtg6ST7lXfHhVXa"}
{"uuid":"zMtg6ST7lXfHhVXa","deleted":true}
{"uuid":"51I8I2VQjgWKxvUO","deleted":true}
72 changes: 16 additions & 56 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,21 @@
Assignment 4 - Creative Coding: Interactive Multimedia Experiences
===
## Super Mario Music Maker!

Due: October 4th, by 11:59 AM.
https://glitch.com/edit/#!/a4-creative-coding

For this assignment we will focus on client-side development using popular audio/graphics/visualization technologies. The goal of this assignment is to refine our JavaScript knowledge while exploring the multimedia capabilities of the browser.
This project, for the a4 creative coding assignment, uses the Web Audio API to manipulate audio files, such as
Mario saying "It's a-me! Mario!" in accordance with how the user wants. The user can use sliders to bring the
volume up or bring the volume down. They can also use a slider to weight the audio towards the left speaker or weight
the audio towards the right speaker (assuming they have stereo-capable hardware). They can also enter their username
along with the name of their favorite song, both of which will be stored on an express server and displayed.

[WebAudio / Canvas / Three Tutorial](https://github.com/cs4241-21a/cs4241-21a.github.io/blob/main/webaudio_canvas_three.md)
[SVG + D3 tutorial](https://github.com/cs4241-21a/cs4241-21a.github.io/blob/main/using_svg_and_d3.md)
My biggest challenge in this project was fighting Google and the SEC. This is because google won't let you
play audio files by default on sites through the HTML (https://developer.chrome.com/blog/autoplay/#webaudio),
which made testing this virtually impossible. I sure hope you find the sound to be working on your machine,
because as far as I can tell stepping through my code I have all the infrastructure in place for a working
project from the script down to the assets but have no way of confirming it's cool. And no, I refuse to reinstall
Edge after what Microsoft did to me.

Baseline Requirements
---
With that in mind, I hope you enjoy the beautiful ASMR of your own design at your disposal, assuming you would've
designed the ASMR to consist entirely of Mario sayiny "It's a-me! Mario!" at various volumes and audio-pan positions.

Your application is required to implement the following functionalities:

- A server created using Express. This server can be as simple as needed.
- A client-side interactive experience using at least one of the following web technologies frameworks.
- [Three.js](https://threejs.org/): A library for 3D graphics / VR experiences
- [D3.js](https://d3js.org): A library that is primarily used for interactive data visualizations
- [Canvas](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API): A 2D raster drawing API included in all modern browsers
- [SVG](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API): A 2D vector drawing framework that enables shapes to be defined via XML.
- [Web Audio API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API): An API for audio synthesis, analysis, processing, and file playback.
- A user interface for interaction with your project, which must expose at least four parameters for user control. [tweakpane](https://cocopon.github.io/tweakpane/) is highly recommended for this, but you can also use regular HTML `<input>` tags (the `range` type is useful to create sliders). You might also explore interaction by tracking mouse movement via the `window.onmousemove` event handler in tandem with the `event.clientX` and `event.clientY` properties. Consider using the [Pointer Events API](https://developer.mozilla.org/en-US/docs/Web/API/Pointer_events) to ensure that that both mouse and touch events will both be supported in your app.
- Your application should display basic documentation for the user interface when the application first loads.

The interactive experience should possess a reasonable level of complexity. Some examples:
### Three.js
- A generative algorithm creates simple agents that move through a virtual world. Your interface controls the behavior / appearance of these agents.
- A simple 3D game... you really want this to be a simple as possible or it will be outside the scope of this assignment.
- An 3D audio visualization of a song of your choosing. User interaction should control aspects of the visualization.
### Canvas
- Implement a generative algorithm such as [Conway's Game of Life](https://bitstorm.org/gameoflife/) (or 1D cellular automata) and provide interactive controls. Note that the Game of Life has been created by 100s of people using <canvas>; we'll be checking to ensure that your implementation is not a copy of these.
- Design a 2D audio visualizer of a song of your choosing. User interaction should control visual aspects of the experience.
### Web Audio API
- Create a screen-based musical instrument using the Web Audio API. You can use projects such as [Interface.js](http://charlie-roberts.com/interface/) or [Nexus UI](https://nexus-js.github.io/ui/api/#Piano) to provide common musical interface elements, or use dat.GUI in combination with mouse/touch events (use the Pointer Events API). Your GUI should enable users to control aspects of sound synthesis. If you want to use higher-level instruments instead of the raw WebAudio API sounds, consider trying the instruments provided by [Tone.js]() or [Gibber](https://github.com/charlieroberts/gibber.audio.lib).
### D3.js
- Create visualizations using the datasets found at [Awesome JSON Datasets](https://github.com/jdorfman/Awesome-JSON-Datasets). Experiment with providing different visualizations of the same data set, and providing users interactive control over visualization parameters and/or data filtering. Alternatively, create a single visualization with using one of the more complicated techniques shown at [d3js.org](d3js.org) and provide meaningful points of interaction for users.

Deliverables
---

Do the following to complete this assignment:

1. Implement your project with the above requirements.
3. Test your project to make sure that when someone goes to your main page on Glitch/Heroku/etc., it displays correctly.
4. Ensure that your project has the proper naming scheme `a4-firstname-lastname` so we can find it.
5. Fork this repository and modify the README to the specifications below. *NOTE: If you don't use Glitch for hosting (where we can see the files) then you must include all project files that you author in your repo for this assignment*.
6. Create and submit a Pull Request to the original repo. Name the pull request using the following template: `a4-firstname-lastname`.

Sample Readme (delete the above when you're ready to submit, and modify the below so with your links and descriptions)
---

## Your Web Application Title

your hosting link e.g. http://a4-charlieroberts.glitch.me

Include a very brief summary of your project here. Images are encouraged when needed, along with concise, high-level text. Be sure to include:

- the goal of the application
- challenges you faced in realizing the application
- the instructions you present in the website should be clear enough to use the application, but if you feel any need to provide additional instructions please do so here.
Also, I did a fork for the a4-components as well, which I will not attempt to submit. This is my a4.
Loading