clocks
clocks
- Subject: clocks
- From: Sam Aaron <email@hidden>
- Date: Mon, 17 Nov 2008 15:53:17 +0100
Hi there,
I have a dream involving clocks; I can't really talk to my wife about
it as her eyes tend to glaze over pretty quicksmart... However, this
list might provide a more appropriate audience, particularly as I need
a little bootstrapping help to get things started. My goals are as
follows:
* Have one strongly-timed clock that beats very accurately and calls a
particular method on clock ticks. (I'm looking for something more
accurate than a thread in a sleep/execute loop).
That's it really.
Now, of course, dreams have no bounds, and eventually I would like to
do the following:
* Be able to change the tempo of ticks on the fly (speed it up and
slow it down at whim),
* Have similar, concurrent, clocks that are related in tempo by a
function (i.e. twice as fast, 1/3 the speed etc.),
* Have the method that is called by a particular clock be able to read
a buffer of midi/osc packets in reasonable speed,
* Have the method that is called by a particular clock be able to send
midi/osc packets as quickly as possible.
And for the really wild stuff...
* Be able to program it in Ruby (or MacRuby, or in JRuby on the JVM)
without affecting performance.
Now, I understand that not all of this may be possible (particularly
the last goal) however, I'd like to see how far I can get. I just need
some initial directions. For example, the following are possible
options:
* code all this in C with core audio clocks and wrap it in Ruby via a
foreign function interface,
* write it in objective-c and have it as a stand alone module..
* write it in java calling out to core audio clocks, and call the java
from jruby..
* use macruby and get the best of all worlds..
I am very interested in any advice/hints/pointers on which route I
should take with this project.
Thanks in advance,
Sam Aaron
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden