Going to have to agree with above post. Although speed might be even more of a prob for me, since it barely sounds correct and seems to miss timing slightly on my computer (2 ghz p4). Also the sound keeps "clicking" when the browser closes (plays the beginning tenth of a second of a sound every second, very very annoying).

Going to have to agree with above post. Although speed might be even more of a prob for me, since it barely sounds correct and seems to miss timing slightly on my computer (2 ghz p4). Also the sound keeps "clicking" when the browser closes (plays the beginning tenth of a second of a sound every second, very very annoying).

Gl fixing it.

Very interesting! It eats circa 10% of cpu with my 3ghz p4. That's too much, but majority of it goes to ui redrawing. The sound engine should take like 1% and not be inaccurate as it play the sounds by streaming bytes straight to sound card via javax.sound.sampled buffer. I'll see what I can do.

I'm also experiencing huge timing problems here, and audio resources seem to be not correctly freed after closing the applet (the ticks after closing the applet as mentioned). Make sure you stop the lines when the applet is closed (in an applet you might even have to use finalize() as an extra stop measure).

I suspect the timing problems come from the gui updates.Just guessing, but maybe increasing the audio buffers helps?

Hi, I tried to fix some of the problems you've mentioned. I doubled the buffer size. It's now 16kb, which should be more than enough. At least I am not having clicks or timing issues even when when other processes are loading the system. Also, I added destroy method to the main applet class which properly shuts down the audio line.

Yeah, I just did some measurements and noticed that if the sequencer canvas is not drawn, the CPU usage is 0% according to my task manager... Otherwise it's ~11%. Something is definitely not right...

Edit: about the knobs, the method I used for rotation (calculating the angle) is also pretty common, at least in VSTi software synthesizers. The advantage in my method is that it offers more accuracy (when the mouse pointer is pulled further from the knob). I originally wrote the knob class for a soft synth of mine, where extra accuracy really matters.

Speed problems appear to be fixed. Works great now, but one more problem. The pattern select doesn't do anything now. I can't move from pattern-to-pattern unless I press Play and allow it to play to a certain pattern.

I also agree with oNyx about the Knobs. Much easier to be able to just move the mouse up and down instead of in a circular motion.

Speed problems appear to be fixed. Works great now, but one more problem. The pattern select doesn't do anything now. I can't move from pattern-to-pattern unless I press Play and allow it to play to a certain pattern.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org