Jump to content

A random generator. possible with mios?


Recommended Posts

Posted

Hi there! I'm trying to find a solution to an idea I have.

My objective is to trigger a relay in a random way, yet in time with MTC. I would like it timed via midi so I can keep it in time with the music. Is it possible to add a control to multiply or divide the speed of the clocking signal (like within the clockbox for example)? Kind of like how you can adjust the speed within an arpgeggiator to generate whole notes (dividing the BPM by 4) through to sixteenth notes (multiplying the BPM by 4).

Once the clock is sorted out, how could I use this to randomly trigger a relay (5v or maybe 9v). Here is what I was thinking, is it possible to randomly generate midi notes (0-127) within MIOS? How about following it with a simple boolean-like function to break this down into just two output notes (since a relay only has on and off).

for example, if the generated number is less than or equal to 64 it outputs a 0 midi note. If the number generated is equal to or more than 65 it outputs a 12 midi note. 0 and 12 being an octave, I could then run this through a midi to CV converter and use the control voltage to turn the relay on and off.

Possible, or crazytown?

Posted

it's certainly possible to do what you want in C, I've written similar random functions for non MidiBox stuff.

You'll need to read the clocking signal - this bit I don't know about.

You can trigger relays using an AOUT module.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...