You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

anyone know how to generate random midi in real time?

Hi this is my first post so if this is obvious please forgive me 🙂

I'm a John Cage fan and interested in chance generated working methods.

What i'd like to know is if there is a way to generate random midi events (pitch and velocity) in logic pro or mainstage from an incoming midi signal e.g. any incoming note trigger could trigger any midi note randomly within a user defined range in real time?

Also is it possible to generate random midi events by just letting something run in the background?

NB i know i can randomise events after the fact using the transform window - i just can't work out how to randomise in real time.
sorry if this was a dumb question but any help would be greatly appreciated 🙂

thanks in advance

macbook pro 2.66, Mac OS X (10.5.8)

Posted on Apr 7, 2010 8:52 AM

Reply
10 replies

Apr 7, 2010 9:04 AM in response to apple know what's wrong

A couple of things I know are...

1/ Noatikl = define parameters etc and it will generate midi (notes and cc) and can integrate via IAC into Logic

2/ Spiral (NI Reaktor) = more based around a strange spherical grid system but ends up pretty random.

I don't know how to do this in Logic itself, but I believe Noatikl is pretty comprehensive in this area. Expect a learning curve I think.

Apr 7, 2010 9:36 AM in response to apple know what's wrong

Random notes are difficult because a MIDI Note actually consists of two events, Note On and Note Off a while later. If you transform either to something random, you'd get hanging notes all over the place especially when doing it live. Logic actively prevents this so a little trickery is needed. One quick but admittedly dirty way to do it goes like this:

Create three Transformers and one Voice Limiter in the Environment and cable them serially, then insert that string of objects between PhysicalIn>SUM and SequencerIn

In *Transformer 1*, Set Conditions to Note and the Operation to P-Press (converts Notes to Poly Pressure)

In *Transformer 2*, Set the Conditions to P-Press (so only these get affected) and the Operation to Random for DataByte 1 (which was Note Pitch before we converted to P-Press)

In *Transformer 3*, Set Conditions to P-Press and the Operation to Note (converts Poly Pressure back to Notes)

Now you get random and hanging notes. To cut down the amout of hanging notes, set the *Voice Limiter* to the number of notes ou can bear at the same time.

Obviously this approach works far better with percussive, decaying sounds and not so nice with an organ sound.

Christian

Apr 7, 2010 8:38 PM in response to christianobermaier

christianobermaier wrote:
Random notes are difficult because a MIDI Note actually consists of two events, Note On and Note Off a while later. If you transform either to something random, you'd get hanging notes all over the place especially when doing it live.

You are quite right Christian, but I still think there are some ways to solve that in the Environment. For some reason I created such a tool in the pass ( it was a Logic custom offer or something like that ... ). I just converted this old LSO to L8 project. Here is a short description of the Macro "Elements" below:

*INPUT NOTE RANDOMIZER - ELEMENTS*

1."On/Off" CC# Assign box - you can set any CC# 0-127 here to control the Global ON/OFF Macro button(2) externally.
2.Global ON/OFF Macro button - switches the Macro ON/OFF. In OFF mode the macro is bypassed.
3.Note Pitch Low Randomization range box - determines the low range randomization value.
4.Note Pitch Top Randomization range box - ( determines the top range randomization value ).
5."Panic" CC# Assign box - you can set any CC# 0-127 here to control the "Panic" button (6) externally.
6.Panic Button - resets any playing or hanging notes in both Macro ON/OFF modes.
7.Note Velocity Low Randomization range box - determines the low range randomization value.
8.Note Velocity Top Randomization range box - ( determines the top range randomization value ).

Note: +There is a Stand Alone Macro layer in the template project so the macro tool can be easy imported as an Environment layer into other Logic projects. The tool is Polyphonic ( no Voice Limiter is applied ) so you can use it to generate random chords playing same chord rhythmically etc.+

Also is it possible to generate random midi events by just letting something run in the background?

I think so - something like Arpeggiator object may do the job as a Note generator in a combination with some Enviro gear or Macro...

*Live Input Logic Note Randomizer v1.0* - [DOWNLOAD|http://audiogrocery.com/files/in note_randv1.0.zip]

!http://img59.imageshack.us/img59/699/innoterand.gif!

!http://img59.imageshack.us/img59/4967/aglogo45.gif!

Apr 8, 2010 3:27 AM in response to apple know what's wrong

hi everyone, i'm delighted that so many of you took the time to reply to my query - i'll get back to you all once i've explored all the options (minus the kid - i don't have one to hand - or ice cream for that matter) as far as Noatikl goes i've been using Nodal in this way as a means of generating pseudo random events but for the project i'm engaged in just now that won't really do - i guess i'm just being really anal in wanting the events to be actually random as opposed to apparently random (which actually cancels out the use of just playing blindfold - we unconsciously tend to select stuff that might seem random but which usually is actually reacting to a defined scale and signature using our notions of atonality and arrhythmia - (which is obviously great in improv situations but not so good for what i need). When i've got time his weekend i'll give Vacheto's input note randomizer a thorough testing.
Until i report back , thanks again. - as it is maybe it's something to suggest as a feature in Logic 10.

Apr 10, 2010 12:42 AM in response to apple know what's wrong

apple know what's wrong wrote:
When i've got time his weekend i'll give Vacheto's input note randomizer a thorough testing.

I had some free time yesterday to make a short review of the input Randomizer version cause it was old one made by some other requirements. I found out a few things I had to fix in the new Update (below) like:
1. The original Note Input order is changed after the randomization which is fixed now ( the original input order is not changed in the new version ).
2. If you have held some chord or notes and switch the global On/Of Macro button, the notes hanged in the previous version (it is fixed now by sending an auto-reset ).

In major, now the Live Input Randomizer (pre midi processing) works as the Transform Window (post midi processing). I guarantee no hang notes, though I decided to leave the "Panic" function which may be useful for other purposes.
In the screenset the Macro stays as float window, but its original is patched/cabled in the Click & Ports Environment layer between the Physical Input and the Sequencer Input. There is a copy of the Macro tool placed in a separate Environment layer named as "In Randomizer" which can be used for easy import into other Logic projects. This version is recommended !

*Live Input Logic Note Randomizer v1.1* - [DOWNLOAD|http://audiogrocery.com/files/in randv1.1.zip]

!http://img59.imageshack.us/img59/4967/aglogo45.gif!

Apr 12, 2010 9:09 AM in response to apple know what's wrong

hi guys - the weekend is over and i had a bit of time to play around with the note randomizer and i have to say that i've had quite a bit of success with it (particularly in combination with an arpeggiator object - I dare say if i also use it to modulate a delay line that'll take care of any slightly niggly temp accuracies but i haven't played around with that yet. I've been triggering it with nodal as well and i'll give Elysium a go later tonight. _ i'm now going to try to construct a multilayered exs24 instrument to take full advantage of random velocity as well. It'll keep me occupied for quite a while i expect.
Thanks again to everyone for your help.

anyone know how to generate random midi in real time?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.