-
Notifications
You must be signed in to change notification settings - Fork 362
My Music Visuals Project #51
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
Open
ismyasmin
wants to merge
66
commits into
skooter500:master
Choose a base branch
from
ismyasmin:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… instance of Worm, passing this as a parameter to its' constructor.
…. draw() Method if current is 1, worm visual component renders again
… parent. Worm parameters created. Constructor for the Worm class, taking a MyVisual instance as input.
…orm height values and computes worm heights for multiple worms combined together.
…sual instance, block colors related, angel of rotation, offsets, boxes related. Constructor public RotatingShape(MyVisual mv) contains MyVisual reference, array storing values, calling methods
…alize block colors and box positions.
…r transitions based on audio input, initializes block colors, handles box rotation and translation.
…al.java file, instance variable rotatingBlocks declared. Initialized instance of RotatingBlocks, passing this as a parameter to its' constructor. key pressed 2 with rotatingBlocks.render() to render the RotatingBlocks visual componenets. draw() Method if current is 2, rotatingBlocks visual component renders again.
…al.java file, instance variable rotatingBlocks declared. Initialized instance of RotatingBlocks, passing this as a parameter to its' constructor. key pressed 2 with rotatingBlocks.render() to render the RotatingBlocks visual componenets. draw() Method if current is 2, rotatingBlocks visual component renders again.
…balls declared. Initialized instance of Balls passing this as a parameter to its' constructor. key pressed with balls.render() to render the Balls visual componenets. draw() Method if current is 2, balls visual component renders again.
…alls declared. Initialized instance of Balls passing this as a parameter to its' constructor. key pressed with balls.render() to render the Balls visual componenets. draw() Method if current is 2, balls visual component renders again.
…litude, increment position of each ball, store height of values of the balls.
…s class which accepts a MyVisual instance mv as input.
…rmining their properties. yvalues initialized to store vertical positions of the balls and spacing.
…contains mv.hint(mv.DISABLE_DEPTH_TEST) depth testing for subsequent drawing operations.. Calls calcBalls() method which does calculation. Calls the renderBalls() method which draws/render the balls on the screen based on the calculation. mv.hint(mv.ENABLE_DEPTH_TEST) enables depth testing again after rendering the balls.
…t and behavior of the ball, t retrieves audio data using mv.getAudioBuffer().get(i), mv.map(audioValue, 0, 1, 50, 200) maps the audio value to a desired amplitude range.
…o black, mv.strokeWeight(4) sets the weight of the stroke to 4 pixels, hue to control the colour variation.
…o ellipses setting their colours. Draws them on the canvas. Hue value incremented.
mv.strokeWeight(4) added in the render() method
…al class. Contains fields which represents size (diameter) of the gradient circles. int height, width representing the dimensions of the canvas. float audioAmplitude storeing the current audio amplitude value.
… by associating it with a provided MyVisual object (mv), copies the canvas dimensions from mv, and calculating the size of gradient circles (dim).
…ude which contains setting background to black, line that retrieves the audio amplitude value,
… changing colour gradient based on the provided amplitude parameter. In it contains, a variable that calculates the radius of the circles based on the dim value.
… the audio amplitude.
….02; increments theta for oscillation effect, audioBuffer variable to get the audio buffer from the MyVisual instance.
…amplitude will be used to modulate the worm's amplitude dynmaically.
…its length by summing contributions from multiple sinusoidal components (mv.sin(...) for even j and mv.cos(...) for odd j).
abv.render(); in the keyPressed for gradientShape
…ed in some of the other visuals.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Completed documentation and code