Page 1 of 1

Metronome

Posted: Mon May 23, 2011 11:12 pm
by dtspam
I played around with the Java Sound API for a bit and created a small metronome application.
I missed some features with the flash metronomes often used in webteases, slow and very fast speeds, entering the speed in a text field instead of clicking around a lot, and custom beat patterns (like 100 fast, 10 slow) etc.
So my application can produce beats from 1/min to 600/min, speeds can be entered directly, and there is a simple configuration language to enter arbitrary beat patterns, if you need to.

It is available as an applet, but the stop button did hang in some browsers. The offline version should work just fine though.

I also provided the source. So it can be used in other applications, e.g. one of the pcm-clones that seem to be popping up at the moment ;-)

And it is available here: http://milovanaflashparser.kenai.com/

Re: Metronome

Posted: Tue May 24, 2011 7:51 am
by les


Thank you for this I am liking it and it will be trialled soon by my serfs.

Pretty Please I would love to be able to email a clickable pre-set sequence and length.

In the mean time I can email a text file to be pasted into the advanced window.


Re: Metronome

Posted: Tue May 24, 2011 10:27 am
by dtspam
Thanks for your feedback.
I could make the automatic repetition of the pattern optional, so it would stop after some time, so you could write something like:
for 3600
beat 0
pause 0.5
And your slaves should be stroking for 1 hour, 2 times / sec.

Emailing is a bit more difficult.
I can't think of a better way than pasting some code into the mail.
Or would you like to use a code for that, that your slaves can't read?

Re: Metronome

Posted: Tue May 24, 2011 10:42 am
by les


I would love them not to know the how long or fast
I have set
Can I do that with the download version

Re: Metronome

Posted: Tue May 24, 2011 11:27 am
by slutty1
This looks pretty cool. Thanks for putting it together, dtspam. I'll have to play around with it a bit.
I also like les' idea about the ability to send instructions that someone could run and not know what was going to happen. Maybe you could add a third option (simple, advanced, file) where the program would read the instructions/advanced code from a file. It could be a simple text or xml file (in which case it would be up to the user to behave and not look inside the file, but at least the code wouldn't be right there in front of them.)

Re: Metronome

Posted: Tue May 24, 2011 12:44 pm
by dtspam
No, the download version is exactly the same. Just runs without a browser and internet access.
I like the ideas, so I will add them. Maybe I have a bit of time this evening.

Re: Metronome

Posted: Tue May 24, 2011 1:17 pm
by les
                          


                          I have your gold star waiting




                 Image

Re: Metronome

Posted: Tue May 24, 2011 8:22 pm
by dtspam
So I've added the features.
You can copy the generated code in any email or file and the receiver can play it, by pasting it back.
White space is ignored, so it doesn't matter, if it is broken up into multiple lines.

And links like that should work now too:
http://milovanaflashparser.kenai.com/me ... F1c2UgMC4z

So you can just put a code behind the URL of the applet using a ?