Archive for December 2007

December colds.

Colds seem to be striking me down at quite an alarming rate at the moment, 3 harsh ones in the past month. The past few days I felt like I am finally getting over them - which is nice. So the past few weeks all I have wanted to do is lay around and watch movies that don’t tax the mind in anyway. I have bearly coded anything in the evenings and have not even read any books - which for me is very unusual. Not a healthy person this month at all.

The little bit of coding I have done was to put in a dialog for the export to a wave file. In the past couple of days I can tell I am finally starting to recover. I brought a book about programming languages and have managed to churn through a fair number of pages, it is fairly motivational if you are into that
sort of thing. Plus my mind started to pop up with little ideas for refactoring the code in the sound synthesiser program. Quite a bit needs refactoring if I am honest. I like refactoring and it should get me back into coding on that project. Oh and I should really think of a name for it at some point.

Either way with Christmas coming it is look unlikely that I will get much done coding wise at home until the new year. Plenty of wine drinking and gorging on food to occupy me :)

Exporting wav files

I somehow seem to have taken a whole week away from coding at home but tonight with the wind howling and the rain coming down in a biblical sort of way I felt the urge to code. Winter is great for coding.

I added a beta time out message so if you continue to use the sound synth program past some day in march next year you get a warning saying the beta has finished. March should give me enough time to decide wether to develop this program as shareware or freeware (perhaps opensource).

I have removed lots of print statements that were in the code. Not that you would notice them from the webstart version.

Started to add exporting to wav files. Not being an expert on the Java sound API I have managed to knock together something that outputs to a file and audacity and played it fine. Some Java APIs seem to be an exercise in figuring out how to convert from one stream to another so you can use it in a static method. Perhaps that indicated a lack of knowledge in the area, I think I should make time to study the Java Sound API.

Things I have not done are

  • Automate the uploading of the webstart program to the website
  • Uploaded a new beta, to be honest it is not really ready yet as I need to hook in a UI for the export and  give it a good testing and polish up.
  • Changed that awful looking play button…

Ok enough from me time for some well earned sleep. With luck I should get a new version out sometime next week with exporting in.