dissabte, de març 17, 2007

Online version of work

I have decided to open another site with an online version of the ongoing work-in-progress document. To see it:


Warning: For now it's only in Catalan :)

dijous, de novembre 23, 2006

A metronome. Something already related to the expected results

The next step has been to program a software metronom. At this moment I have succeeded in make a very simple metronome nearly without GUI.

I have used the Player class in the MMAPI (Multimedia API) and a little MIDI file to ensure a given tempo (in this case 60bpm).

For now the midlet plays the MIDI file continuosly and I can increase or rate the tempo (with RateControl) having a metronome effect which is quite effective. At the same time I write the bpms in the screen.

The next step will be to make a better GUI showing in some visual way the evolution of the metronome (like in a real one). And I have to arrange too the way in which the changes in tempo are made (not very exact till now).

My first MIDlets

So I have started to do my own (more or less) midlets. The basis for that has been firstly the templates provided for that by Mr. Kaltenbrunner and from a given moment the permament reading of the j2me api, which even being a reduced set of java api, is still quite extense.

The first little MIDlet I've done is a "piano" for the mobile. In other words, when you press a key, it plays a note (from 1 to 7). If you press 8 or 0 it increases or decreases an octave, and if you press the sharp button, the note will increase a semitone. Very simple, but it works! The first I got to make.

Object Oriented Programming

Two months of starting nearly from scratch with Java have been very useful to get the nuts of this language. The course at the UOC is taking me lots of time, but I thing it's accomplishing what I wanted from it.

So I've been programming some easy applications and making several exercices and at this moment I feel like I can start with my mobile applications.

The Java course hasn't still finished but now I already know how to use a Vector!

Getting used to Java and OOP

At first, I tried to start programming directly little midlets starting from templates (courtesy of the fantastic resources in Martin Kaltenbrunner's page). This seems easy at the beginning, but soon I realized that I didn't know enough Java to have success in this way. In a given moment I found myself stuck with the Vector class in Java. It's easy when you have been some time in Java, but very confusing if you don't know anyhing about objecte...

So, I decided to take a course on Java Oriented Programming in the UOC (Open University of Catalonia) which is being very useful to get the fundamental skills about this Object-things.

dijous, d’agost 17, 2006

First Steps

To begin with this work is necessary to install in your beloved computer some pieces of software.
The first of them will be the last version of the JDK (Java Development Kit) which includes:

  • the Java Runtime Environment (JRE)

  • command-line development tools, such as compilers and debuggers, that are necessary or useful for developing applets and applications

  • in this place: Java SE Downloads
    Then we will need (since we want to program for mobile devices) the J2ME Wireless Edition (j2 micro edition) in this page: Java ME Downloads

    With this we can start wireless programming, althought later we could want to install more advanced IDEs like NetBeans or something like that, which simplify our life in some senses, but make it more difficult in others.

    Let's start with a "Hallo World" :)

    dilluns, d’agost 07, 2006

    My tuner for mobile phone project

    In this page I will report my problems and results in the realization of a Tuner programmed in JAVA j2me for mobile devices.

    My english is not very good but I think it's the right moment to practice it!

    The project is realized as the Final Studies project in ESMUC:
    http://www.esmuc.net
    in the speciality of Sonology (Music and Technology Studies)

    The initial goal of the project is very clear, but not the results. It may result very easy to do (or very difficult althought I hope no), and in the first case it can be widened with some sort of Sound Processing in mobile devices.

    My programming skills in Java are not very high at this moment (in fact I can only program in C :P ) but I'm starting to work to arrange this.

    Well, this is the beggining, and I think this page can work as a good Project notebook, to know in every moment, what I've done, and how.

    To be continued...