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
40 changes: 40 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# env files (can opt-in for commiting if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
17 changes: 17 additions & 0 deletions .glitch-assets
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{"name":"Fly Me To The Moon (2008 Remastered).mp3","date":"2022-10-05T01:06:14.751Z","url":"https://cdn.glitch.global/2c796c18-9750-463e-b536-72ce27d2ee5c/Fly%20Me%20To%20The%20Moon%20(2008%20Remastered).mp3","type":"audio/mpeg","size":2361403,"thumbnail":"https://cdn.glitch.global/2c796c18-9750-463e-b536-72ce27d2ee5c/thumbnails%2FFly%20Me%20To%20The%20Moon%20(2008%20Remastered).mp3","thumbnailWidth":210,"thumbnailHeight":210,"uuid":"SN6JtXUUx0WgUEU7"}
{"uuid":"SN6JtXUUx0WgUEU7","deleted":true}
{"name":"Fly Me To The Moon 2008 Remastered.mp3","date":"2022-10-05T01:06:14.751Z","url":"https://cdn.glitch.global/2c796c18-9750-463e-b536-72ce27d2ee5c/Fly Me To The Moon 2008 Remastered.mp3","type":"audio/mpeg","size":2361403,"thumbnail":"https://cdn.glitch.global/2c796c18-9750-463e-b536-72ce27d2ee5c/thumbnails%2FFly%20Me%20To%20The%20Moon%20(2008%20Remastered).mp3","thumbnailWidth":210,"thumbnailHeight":210,"uuid":"SN6JtXUUx0WgUEU7"}
{"uuid":"SN6JtXUUx0WgUEU7","deleted":true}
{"name":"a.mp3","date":"2022-10-05T01:06:14.751Z","url":"https://cdn.glitch.global/2c796c18-9750-463e-b536-72ce27d2ee5c/a.mp3","type":"audio/mpeg","size":2361403,"thumbnail":"https://cdn.glitch.global/2c796c18-9750-463e-b536-72ce27d2ee5c/thumbnails%2FFly%20Me%20To%20The%20Moon%20(2008%20Remastered).mp3","thumbnailWidth":210,"thumbnailHeight":210,"uuid":"SN6JtXUUx0WgUEU7"}
{"uuid":"SN6JtXUUx0WgUEU7","deleted":true}
{"name":"Better Days.mp3","date":"2022-10-05T09:18:38.004Z","url":"https://cdn.glitch.global/2c796c18-9750-463e-b536-72ce27d2ee5c/Better%20Days.mp3","type":"audio/mpeg","size":8293440,"thumbnail":"https://cdn.glitch.global/2c796c18-9750-463e-b536-72ce27d2ee5c/thumbnails%2FBetter%20Days.mp3","thumbnailWidth":210,"thumbnailHeight":210,"uuid":"3uAV00EpW6LobI5h"}
{"uuid":"3uAV00EpW6LobI5h","deleted":true}
{"name":"b.mp3","date":"2022-10-05T09:18:38.004Z","url":"https://cdn.glitch.global/2c796c18-9750-463e-b536-72ce27d2ee5c/b.mp3","type":"audio/mpeg","size":8293440,"thumbnail":"https://cdn.glitch.global/2c796c18-9750-463e-b536-72ce27d2ee5c/thumbnails%2FBetter%20Days.mp3","thumbnailWidth":210,"thumbnailHeight":210,"uuid":"3uAV00EpW6LobI5h"}
{"uuid":"3uAV00EpW6LobI5h","deleted":true}
{"name":"favicon-32.ico","date":"2022-10-05T19:16:34.170Z","url":"https://cdn.glitch.global/2c796c18-9750-463e-b536-72ce27d2ee5c/favicon-32.ico","type":"image/x-icon","size":185021,"imageWidth":256,"imageHeight":256,"thumbnail":"https://cdn.glitch.global/2c796c18-9750-463e-b536-72ce27d2ee5c/favicon-32.ico","thumbnailWidth":256,"thumbnailHeight":256,"uuid":"KddiUszYWMUJBKKR"}
{"uuid":"KddiUszYWMUJBKKR","deleted":true}
{"name":"favicon.ico","date":"2022-10-05T19:16:34.170Z","url":"https://cdn.glitch.global/2c796c18-9750-463e-b536-72ce27d2ee5c/favicon.ico","type":"image/x-icon","size":185021,"imageWidth":256,"imageHeight":256,"thumbnail":"https://cdn.glitch.global/2c796c18-9750-463e-b536-72ce27d2ee5c/favicon-32.ico","thumbnailWidth":256,"thumbnailHeight":256,"uuid":"KddiUszYWMUJBKKR"}
{"name":"[YT2mp3.info] - Glass Animals - Heat Waves (Official Video) (320kbps).mp3","date":"2022-10-05T22:24:01.458Z","url":"https://cdn.glitch.global/2c796c18-9750-463e-b536-72ce27d2ee5c/%5BYT2mp3.info%5D%20-%20Glass%20Animals%20-%20Heat%20Waves%20(Official%20Video)%20(320kbps).mp3","type":"audio/mpeg","size":9405319,"thumbnail":"https://cdn.glitch.global/2c796c18-9750-463e-b536-72ce27d2ee5c/thumbnails%2F%5BYT2mp3.info%5D%20-%20Glass%20Animals%20-%20Heat%20Waves%20(Official%20Video)%20(320kbps).mp3","thumbnailWidth":210,"thumbnailHeight":210,"uuid":"r0eMAvfDi0Z53E6E"}
{"uuid":"r0eMAvfDi0Z53E6E","deleted":true}
{"name":"c.mp3","date":"2022-10-05T22:24:01.458Z","url":"https://cdn.glitch.global/2c796c18-9750-463e-b536-72ce27d2ee5c/c.mp3","type":"audio/mpeg","size":9405319,"thumbnail":"https://cdn.glitch.global/2c796c18-9750-463e-b536-72ce27d2ee5c/thumbnails%2F%5BYT2mp3.info%5D%20-%20Glass%20Animals%20-%20Heat%20Waves%20(Official%20Video)%20(320kbps).mp3","thumbnailWidth":210,"thumbnailHeight":210,"uuid":"r0eMAvfDi0Z53E6E"}
{"uuid":"r0eMAvfDi0Z53E6E","deleted":true}
66 changes: 8 additions & 58 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,11 @@
Assignment 4 - Creative Coding: Interactive Multimedia Experiences
===
## Modular Audio Visualizer Circle

Due: October 4th, by 11:59 AM.
Mark Renzi
https://a4-mark-renzi.glitch.me

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.
- The application was designed to learn more about audio visualization from raw frequency data using WebAudio and Canvas.
- The biggest challenges I faced were designing an algorithm that smoothly drew a path between points using quadraticCurveTo() so that I could avoid dynamically defining control points of bezier curves. I originally designed the visualizer drawing rectangles in a circle, which was nice to rotate the matrix, but using a path, I needed to convert polar coordinates to cartesian coordinates, and this took hours to get working perfectly, especially when I wanted to smooth the gaps between the points. Eventually the final challenge was some learning required to use a fade-in transition through css on my HUD, or settings menu.
- I wanted the main screen to be as simple as possible. It says click to start, and then explains that you can click or tap anywhere else to show/hide settings. The settings are names somewhat descriptively but the most interesting part of this app is testing what everything does. I recommend testing all of the themes before even touching the colors or adjustment sliders.

[WebAudio + Canvas Tutorial](https://github.com/cs4241-22a/cs4241-22a.github.io/blob/main/using_webaudio_canvas.md)
[SVG + D3 tutorial](https://github.com/cs4241-21a/cs4241-21a.github.io/blob/main/using_svg_and_d3.md)

Baseline Requirements
---

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.
- There are so many fun combinations, but the stylized theme with the white background has to be my favorite:
![Stylized theme with white background](https://cdn.discordapp.com/attachments/121797037942374400/1299855959144796211/image.png)
Binary file added assets/a.mp3
Binary file not shown.
Binary file added assets/b.mp3
Binary file not shown.
Binary file added assets/c.mp3
Binary file not shown.
Binary file added favicon.ico
Binary file not shown.
Loading