Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sean #42

Open
wants to merge 39 commits into
base: master
Choose a base branch
from
Open

Sean #42

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
d86873c
Testing
RalphjCruz Mar 13, 2024
537dd0f
Testing 2
BeroCollege Mar 13, 2024
5d4f87f
Update README.md
BeroCollege Mar 13, 2024
ca8cd30
Added audio file
BeroCollege Mar 13, 2024
35ae1c3
Merge branch 'master' of https://github.com/RalphCruz18/MusicVisuals
BeroCollege Mar 13, 2024
e5fc89a
Put code for music to play
RalphjCruz Mar 13, 2024
74046f5
Changed default run template to RotatingBands cause it looks cool
BeroCollege Mar 13, 2024
3869682
Update README.md
BeroCollege Mar 14, 2024
79253fb
Created intro for visuals
RalphjCruz Apr 3, 2024
b5d96b3
Adjusted some values
RalphjCruz Apr 3, 2024
5dc34cd
Created stick figure, and a function where stick figure moves around …
RalphjCruz Apr 3, 2024
8247db1
Added different scene thing
BeroCollege Apr 9, 2024
d5dbe48
Updated
RalphjCruz Apr 10, 2024
05a861d
Merge branch 'master' of https://github.com/RalphCruz18/MusicVisuals
RalphjCruz Apr 10, 2024
56b04df
Restarting because wrong layout
RalphjCruz Apr 10, 2024
101ce5b
Fixed the folder arrangement, Ralph created a file where it stores my…
RalphjCruz Apr 13, 2024
ff7af1b
Added perspective camera
RalphjCruz Apr 13, 2024
c880edf
Created stars and adjusted camera angle of sphere!
RalphjCruz Apr 13, 2024
3f491b7
Trying to implement lerp for sphere, adjusted stars and added more fe…
RalphjCruz Apr 13, 2024
4797182
Fixed some text settings, created 2 new functions. One, a shell for t…
RalphjCruz Apr 14, 2024
38213bb
Displayed lyrics using SRT file, converted the file into string and p…
RalphjCruz Apr 14, 2024
b4ffd94
Small changes in Seno.java and RalphVisuals.java
RalphjCruz Apr 14, 2024
df7c674
Done work on adding my scene to the project
BeroCollege Apr 14, 2024
c9b1211
Just fixed a few of your errors
RalphjCruz Apr 15, 2024
9e7aa8a
Working in my branch
BeroCollege Apr 15, 2024
3bb271e
Cubes change colours when '2' key is pressed more than once
BeroCollege Apr 15, 2024
81e7c8c
Added audiobands that change colour when changing cubes
BeroCollege Apr 17, 2024
d660bb0
Added spheres that move to amplitude
BeroCollege Apr 22, 2024
940187e
Cleaned code, removed useless variables that were not removed when ch…
BeroCollege Apr 22, 2024
9318fdd
Added more comments and cleaned up folder directory
BeroCollege Apr 22, 2024
e6128aa
Few more simplifications to code before sleep
BeroCollege Apr 22, 2024
2c725e2
Some more changes and improvements to seno.java
BeroCollege Apr 23, 2024
ac6bd93
Changed up some comments in Seno.java
BeroCollege Apr 23, 2024
1e47b2b
Changed main.java
BeroCollege Apr 23, 2024
4b5c40f
Updated audioBandsVisual.java
BeroCollege Apr 23, 2024
8f56bc7
Update README.md
BeroCollege Apr 23, 2024
0a3c3f2
Update README.md
BeroCollege Apr 23, 2024
1c68536
Update README.md
BeroCollege Apr 23, 2024
dee42d3
Update README.md
BeroCollege Apr 24, 2024
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
65 changes: 63 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Music Visualiser Project

Name:
Name:Seán Flood & Ralph Cruz

Student Number:
Student Number: C22421292 & C22427602

## Instructions
- Fork this repository and use it a starter project for your assignment
Expand All @@ -14,10 +14,71 @@ Student Number:
# Description of the assignment

# Instructions
Using keyboard keys ‘1’ and ‘2’ you can change scenes:
!['1'](https://i.imgur.com/s2JUPJh.png)
!['2'](https://i.imgur.com/7RC3WF0.png)
!['2 again'](https://i.imgur.com/lPGM8d2.png)
!['2 again again'](https://i.imgur.com/l2kReYW.png)

‘ ‘ (spacebar) pauses and plays the song
![' '](https://i.imgur.com/J8qGTCL.png)
![' ' again](https://i.imgur.com/7RC3WF0.png)

‘r’ clears the current scene just leaving the screen black with the lyrics still playing
!['r'](https://i.imgur.com/YgO8pgW.png)
!['r again'](https://i.imgur.com/dPyangf.png)

‘s’ enters “spam mode” on when scene 2 is active. Spam mode just calls the “sceneChange” function in SeanVisuals.java very fast.
Not actually screenshotable because it uses motion and screenshots are freezeframes.

# How it works
In the Main.java file we call our "Seno.java" file and create that sketch
```Java
package ie.tudublin;

public class Main {

public void startUI() {
String[] a = { "MAIN" };
processing.core.PApplet.runSketch(a, new Seno()); // <-- Call Seno file here
}

public static void main(String[] args) {
Main main = new Main();
main.startUI();
}
}
```

In the Seno.java file we then import our respective files
```Java
import c22427602.RalphVisuals;
import c22421292.SeanVisuals;

public class Seno extends Visual {
RalphVisuals Ralph;
private boolean drawSphere = false;
SeanVisuals Sean;
private boolean drawCube = false;

public void setup() {
Ralph = new RalphVisuals(); // Instantiate Ralph object
Ralph.setParent(this);

Sean = new SeanVisuals(); // Instantiate Sean object
Sean.setParent(this);

public void draw() {
if (drawSphere) {
Ralph.draw();
}
else if (drawCube) {
Sean.draw();
}
```

# What I am most proud of in the assignment
I am most proud of making a scene that I beleive is fun to watch and interactable in many ways which can keep the user entertained and interested. There are many objects that move based on the music which makes it visually apealing and being able to change the appearance using keyboard keys makes it interesting.

# Markdown Tutorial

Expand Down
4 changes: 2 additions & 2 deletions java/.project
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
</natures>
<filteredResources>
<filter>
<id>1616413840733</id>
<id>1710347475853</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
Expand Down
Binary file not shown.
Loading