ChrisC
Critical Thinker
- Joined
- Dec 27, 2005
- Messages
- 466
Hi all,
I don't know jack about programming, with the exception of QBasic which I've almost entirely forgotten. What I'd like to do is write a really tiny, simple, single-window program to calculate delay times. It would have a box to enter a number for BPM (say, .1 to 1000*), another box to enter a number for divisions (.1 to 256 perhaps), and a box to print the output of the equation "(240000/box1)/box2". Right now, I just use a spreadsheet which works fine but it would be nice to have a little floating window that takes up no space and few resources. Python looked like a decent bet since I understand is reasonably easy to use and I already have it ready to go on this machine. Anyone able to point me in the right direction or give me a chunk of code to experiment with?
Thanks!
* I realise the that the numbers seem insane for the application but I like the flexibility for experimentation. Sometimes I want a delay length of 1 / 3.2152 of a bar which will be played back at 704.8 BPM.
I don't know jack about programming, with the exception of QBasic which I've almost entirely forgotten. What I'd like to do is write a really tiny, simple, single-window program to calculate delay times. It would have a box to enter a number for BPM (say, .1 to 1000*), another box to enter a number for divisions (.1 to 256 perhaps), and a box to print the output of the equation "(240000/box1)/box2". Right now, I just use a spreadsheet which works fine but it would be nice to have a little floating window that takes up no space and few resources. Python looked like a decent bet since I understand is reasonably easy to use and I already have it ready to go on this machine. Anyone able to point me in the right direction or give me a chunk of code to experiment with?
Thanks!
* I realise the that the numbers seem insane for the application but I like the flexibility for experimentation. Sometimes I want a delay length of 1 / 3.2152 of a bar which will be played back at 704.8 BPM.
