eljunior.wordpress.com

# just one more nerd tarball

pytronome 1.1 released

with 4 comments

Well, today I’ve decided to get back my hubris and to implement some stuff that were in my head for my little project Pytronome – my command-line metronome in Python, if you don’t remember the previous post.

I added support to read a program from a file (useful for scripting complex songs or for just having fun) and also, put two options for download: the already known single-file-with-wave-embedded easy-to-install approach (which some people vehemently protested against :-) ) and the source tarball with the separated wav files, for easy changing the beats and cleaner code (it comes with a patch for generating the single-file script though). I also added an example program file and some extra beats to test.

Visit the project page at Google Code for downloads and more information and let me know what you think.

Written by eljunior

October 1, 2008 at 1:33 am

Posted in personal

Tagged with

my life is changing…

with 4 comments

and this is why:

Screenshot-Keyboard Preferences

Written by eljunior

February 28, 2008 at 5:25 pm

Posted in personal

Tagged with , ,

RE’s metacharacters: differences among applications

with 3 comments

i usually get lost with the different implementations of regular expressions of the applications i use. well, now we have a table with the differences. :) i mad this based on the table there is inside this book, a very good resource available in Portuguese on the subject.

get it here.

Python, Perl, PHP, Ruby, Java and Javascript share the same basic metacharacters, using the POSIX extended regular expressions. just the same with egrep, so it’s a good idea to use it to quickly test your RE. ;)

update: and here you get a two per page version, to print and share. :)

Written by eljunior

November 13, 2007 at 7:21 am

pytronome.py – a simple metronome in Python

with 6 comments

a few months ago i wrote a very simple metronome using Python and the OSS API. i made some improvements on it last week, and decided to make it public now. the code is still ugly, but someday i may improve it…

to install, just download it and put in some dir in your $PATH. it’s quite simple to use:

pytronome.py -n 2 -t 70 -m 3/4

plays 2 times with tempo 70 (seventy beats per minute) and meter 3/4.
defaults are 120 for tempo, 4/4 for meter and plays forever… ;-)

here is the –help output

Usage: pytronome.py [options]

Options:
–version show program’s version number and exit
-h, –help show this help message and exit
-n NUMBER, –measures=NUMBER
play NUMBER measures then exit
-m METER, –meter=METER
define meter signature e.g.: 3/4, 4/4
-t TEMPO, –tempo=TEMPO
beats per minute

suggestions, praises and blames are welcome. :)

update: i’ve set up a project at google code: http://code.google.com/p/eljunior-labs/ .
and now we have a wiki… :)

Written by eljunior

July 30, 2007 at 3:25 am

Posted in personal

Tagged with , , ,

test from BloGTK

with one comment

hello, world!

powered by BloGTK

Written by eljunior

July 22, 2007 at 3:26 pm

Posted in Uncategorized

Tagged with