JavaFx Music Spectrum
My first 2018 post, and hi to you all. Building a circular progress indicator specifically for showing the music progress was the initial idea which was fairly simple to do with the Animation class ,with the code snippet below Animation = new Transition() { { setCycleDuration(Duration.seconds(5)); setInterpolator(Interpolator.LINEAR); } @Override protected void interpolate(double frac) { double interpolation_angle = slerpFunc(frac); double sinValue = Math.sin(Math.toRadians(interpolation_angle + startAngle)); double cosValue = Math.cos(Math.toRadians(interpolation_angle + startAngle)); double angleX = center2d.getX() + (radius * 0.4) * sinValue; double angleY = center2d.getY() + (radius * 0.4) * cosValue; gc.fillOval(angleX,angleY,1,1); } }; My Slerp function looks like so, f...