[Drawkit] warped/warpable grid?

James Maxwell jbmaxwell at rubato-music.com
Fri Jun 6 08:54:16 PDT 2008


Hello All,

For the musical space I'm working on I need what could really be  
thought of as a "warped" grid. That is, a grid which is capable of  
having a changing spans, majors, and divisions - at least along the x- 
axis. A set division value for the y-axis would be fine (I don't even  
really need a y-axis grid, though it might provide a handy shortcut  
for some purposes). Also, the variable x-axis grid should be editable  
by the user (i.e., dynamically changing spans, majors, divisions).

I've been looking over DKGridLayer.m, but there doesn't seem to be  
support for this kind of grid. Basically, I need to be able to mark an  
x-axis place on the grid as a new "origin", and change the grid  
spacing from that point "forward" (i.e., left-to-right in musical  
time). I have built a simple timeline object, which maintains  
something similar to a grid, which I could use for this purpose, but  
it would be more elegant to use a grid layer, to benefit from the  
integration with DK. In particular, it appears that the nudge amounts  
are dictated by the grid, so it would be nice to pick up the nudge  
functionality, without having to re-write it from scratch.

I know this is not a function that many people would likely need, but  
it could still find uses in other types of applications, I think. Any  
thoughts on how to go about doing this would be appreciated.

cheers,

J.


More information about the Drawkit mailing list