Uncertain at its best, tragic at its worst.

I have been combing over my work at this points version of my current assignment is 300 lines of code. But don’t be fooled it is the 5th version of the current work, I have restructured the data, I have used different libraries and used different methods of working it out and it has been the last couple weeks of my life, looking at endless lines of codes, wondering why it went wrong, why doesn’t work.

It is always the best experience when I show my work to my programming professor and looks at it and within two seconds of peering into the nest of code I have created, he spots it with extreme accuracy, smirks and then shows me that hours of my life is equivalent to minutes to him. To be fair, he has been more alive than I have but it is his experience I want.

Back to my work. It has been a tremendous undertaking that I of course misconstrued to be a rather simple task, ended up being in a colossal coding nightmare. It is with my own ego that let myself always get ahead of what I want to do compared to what I do.

Currently, I am using a couple of libraries. Minim for the sound input, Toxiclibs for the visual interaction of the particles on the screen, control P5 the buttons, javax.swing.JOptionpane for the popup screen to take a string input from the user. In this project, there are two libraries that I didn’t have experience in using, which should have been my first flag, but I glanced over it overestimating myself and stretching myself very thin.

Minim is a sound library in processing, free and available for download. In my project, I am using it to get the average the sound the room in whatever environment it find itself in. An initial interesting interaction was that I destroyed the first object in the array list after 5000 sound input object after combining the two left-right input of the mic. This function is fully working, I think.

Toxiclibs is an interesting find because it is almost everything I need in terms of the interaction of the bubbles on the screen. Each bubble has its own attraction or repulsion so each bubble will never touch. This is working, each bubble is being created and is interacting with the screen with the way I have created it.  But one part of my project is that after hearing sounds over a certain threshold, it increases the radius of the bubble and I can’t edit or reach the radius of the bubble because I didn’t bother making the bubble object into a class. I wonder if can edit the radius without the need for changing the structure again.

ControlP5 is working as it is the thing that adds the bubbles on the screen after the user pressed it. There is another function that I want it to do, add a button outside the setup method, but it is proving to be difficult. If I try to make a button in the draw method it doesn’t like it one bit. Essentially it doesn’t draw it. I need this button to zoom out of the object, therefore, the button only appears after the camera has zoomed to the object.

The swing library to make a text field to be used by the users.

My main problems currently are the zooming feature, zoom out and increasing the size of the bubble. It should be resolved by Monday.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s