Working on a simple little script called zθrdθ (aka zOrdO) in the fashion of a Joystick Axis Generator. Plug your joystick X&Y into crow, receive out polar coordinates (r, θ) and angular rate of change (dθ).

Z is trickier; it’s the height of a curve mapped angularly around the joystick. Basically a standing cosine wave whose period increments/decrements every time you cross 0 degrees CW/CCW. The height out is scaled by r. The net effect is like scrubbing through a sine LFO with the joystick.

2 Likes

I’m a little unclear on forum protocol re:crow scripts. Would it be better to post a script to crow under library or just dump them here/another crow thread?

1 Like

a new topic in Library with crow tag would be appropriate.

4 Likes

is there a way to get the current time - would love to change a patch based on the time of day. i tried bumbling around with some standard lua but can’t seem to get anything printing out okay…i am sure the answer is going to make me seem very foolish but would love to know!

1 Like

There is time(), which gives you the number of milliseconds since crow has been turned on — if you added the current time to it, crow will know what time it is!

This makes me think of scripts that evolve, though — like certain melodies or functions that only avail themselves after crow has been awake for some amount of time, after its had its coffee, I don’t know :slight_smile:

4 Likes

thanks - will play - exactly that I was also thinking things could degrade over time too…could be fun

2 Likes

Generally keeping track of “absolute” time needs to either use an internet time server or some always-on (battery powered) real time clock hardware to track the passage of time while the computer is powered off. Crow on its own has access to neither of these, so it can track relative time with time() but would need a friend to advise it of the current time of day.

2 Likes

Had an idea for Crow. A script with a number of possibly complex CV modulations. Maybe these can be grouped in some way and play out in a linear way until a control voltage is received at which point the order of play of the complex CV modulations is shuffled to create a differently ordered ‘playlist’.

Bear in mind I have no clue about whether it’s possible in Lua or even more suited to Teletype :slight_smile:

would it be possible to use Crow as a VCA? possibly the extra outs could be different response curves?

You could use it as a CV VCA but it samples too slow to pass audio.

1 Like