I made a circle affected by animated perlin noise. The problem is, that once the for()-loop is through, the last point from the circle never really matches with the first one. I think that's because the noise values, which are dependent from the loop variable 'a' cannot be translated smoothly from the end of the loop to the start of the next loop because there are no points in between and 'a' equals 0 again.
When I make a continuous variable for noise and add 'a' to it, the whole shape changes too fast. So I need to somehow get the noise values to smoothly come back to where they came from (which is 'a' = 0), but in a different way then before,
to avoid the jagged edge. I know this sounds confusing.
I wanted to upload a Java sketch to openprocessing.org, using "Export applet" in Processing 1.5.1 (it's not possible anymore with the newer versions).
Having tried the newest version of ControlP5 as well as some older ones, none of them works when exported as an applet. The applet window remains just plain white. I can import the library and declare the instances of ControlP5 objects, but as soon as I call "cp5 = new ControlP5(this);" in draw(), the error occurs.
Also I was following the advise to make all functions and variables public that are used by ControlP5, but it's still no use.
Is there some problem with ControlP5 and applets? Some other sketches using ControlP5 I've seen worked quite well, though not all of them.
Here's a simple code that "should" work, if it works:
I have an audio file that I want to load with minim and get the whole waveform data (not the stream, the whole thing) into a single array to further process it into infographics or whatever.
I managed to do this with AudioSample ("float leftChannel = sample.getChannel(BufferedAudio.LEFT);"), but I now have way too many floats in my array, like 5 million for a 2 min. long track (only left channel). Can I compress the values of the array somehow to have a shorter array that I can work with? Has it something to do with the sampling rate of the audio file? Sorry, I'm not very familiar with this audio stuff.