r/Reaper • u/tomtabak42 • 12h ago
discussion MIDI master features overview, 'tutorial' and suggestions – part 1: rhythm tree
MIDI master features overview, 'tutorial' and suggestions – part 1: rhythm tree
Following the encouraging comments in another post, I've decided to publish my midi related suite of scripts. To do so, I need to organize it and make it more user friendly. While I'm at it I'll be adding some functionalites so this is a good place to ask for features or better explanations.
I've developed and adapted existing algorithms myself over the last cca 2 years. I have used AI for a few tasks and 100% of the interface design(no shame). I am using AI to help me make this accessible to other people and it did a great job correcting a few things i got wrong in my databases (moderate shame) and suggesting things i will mark as (AI) in the following text- mostly quality of life improvements.
Basic workflow. Once you run the script, it creates a track (at the top of the track list) that stores scale, harmony and rhythm information which you can use to generate or modifiy midi on other tracks. I always dock the script like the picture shows so the interface is designed to be wide rather than tall.
The thing shown in the pictures is a rhythm generator based on the rhythm tree idea. You enter phrase length in subdivisions of your choice. It accepts things like a phrase of 21 units of 3/15 so experiment with this if you're so inclined. Or don't.
The „A,B,C” controls are tabs that store phrases. You can add more with the „+” sign and right click to rename, duplicate, delete or reorder them.
Cycle allows you to enter a sequence in which the phrases repeat like 'A A B C A'. When empty, it iterates thru them. You can use AxN shorthand so Ax3 = A A A.
The script calculates how many subdivisions you have over all your phrases. It uses that to offer you a selection of recommended time signatures and ways to fit your Cycle to the grid.
If you are in 4/4 and have one phrase of 19/16 it will offer you to 1. add 13 units and make it 2 bars (if you're in 4/4); 2. cut 3 units; 3. make one bar of 4/4 and one bar of 3/16, return to 4/4 after; 4. repeat it 16 times-because the pattern syncs with the bar after 16 repetitions; 5. set the time sig to 19/16 and create 1 bar, followed by 4/4. You can loop this bar and the script can „make room” for the repetitions by inserting time - moving all content in other tracks to the end of the loop.
Following the 'add 13' logic, you can create a phrase B that is 13 subdivisions long and the script will now display the text 'Cycle= 2 bars of 4/4' in green because it fits the grid. You still get suggestions like make this a bar of 8/4 etc but that's not that important.
'Apply' performs whatever you chose in the previous dropdown menu, 'Loop' loops the resultant item N times, 'make room' moves existing midi on other tracks to the end of the loop, 'clear meter markers' removes existing meter markers that would end up over the newly created midi item.
Metric modulation offers to set a tempo marker at the edit cursor based on equivalence of subdivisions, for example 3/16 = 1/4 in a tempo of 120 will set the tempo in which a quarter note lasts as long as a dotted eight note (3/16) lasts in the current tempo = 160.
Next up- Lanes, rows and branches. Each Lane has 3 rows- a text input one and 2 graphical ones. You can use as many lanes as you want.
The text row creates groupings via text input. An integer creates a grouping of N units of subdivision so 4 in 1/16 would create a group of 4 sixteen notes. There is a calculator that warns you when your groups don't add up to the phrase length. You can use commas or spaces to separate integers.
An integer followed by brackets creates a tuplet. You can add more stuff in the brackets so 4 (5) and 4 (3,2) will both create a quintuplet but the second one will create 2 groups, enabling you to make nested tuplets like so: 4(3(7),2(3)) making a quintuplet and a nested septuplet over the first 3 notes of it and a triplet over the last 2 notes.
Entering 'E' followed by a ratio creates a euclidean grouping so 4(E3:8) will create 8 subdivisions in the space of 4 16th notes and place 3 hits according the the euclidian algorithm. You can use it inside nested tuplets if you choose so.
You can also use it ouside the brackets like 'E3:7' which will create a grouping of 7 notes and place 3 hits over them according to the euclidean algo.
Entering (0) mutes the group, a '-n' creates a rest n subdivsion long, 'n!' creates an accent, '_n' ties to the note before.
The dropdown offers a quick way to sound only the first note of each grouping or all notes and has an interpretation of the Clarence Barlow metric indispensability theory that removes notes based on their perceived indispensability to the groove. Choosing „Barlow” shows a slider control for removing notes.
'Mask' is binary mask that turns notes on(1) or off(0). The pattern can run over the groups – basically ignoring them. It can restart on the start of each group or it can shift by one place over each group.
'Straight' is swing control.
The last control in the row determines which rhythm lane on the master track the phrase will be written to or to which pitch on a focused item – depending on settings in the write section of the screen.
Clicking on a group lets you enter things like you would in brackets (see above) and offers some shorcuts.
Clicking on a box in the next row cylcles thru off-weak-hit-accent states which is important for velocity.
You add more lanes with the +, remove them with the -
Branches is stupid name. It is a lane that can accept different lengths of phrase and use that to create apolyrhythm or a polymeter.
Write section defines velocities and where to write. Writing to the master allows you to use that rhythm info for melodies arpeggios etc. More on that later.
Read(AI) should 'import midi' from a focused midi item into the rhythm tree. It kinda does. The AI version missed a ton of onsets and didn't know what to do with overlapping notes etc.
I rewrote it to compand all selected midi notes to a single pitch and write a note at every onset. Made some attempts to deal with interpreting swing and tuplets but i don't have the will to fine tune this so I might just delete the functionality.
Library (AI)
i need to test this more but it's a way to save and recall presets.
---
There are quite a bit more rhythm tools (generators and modifiers) that i wanted to cover but i'm tired and this is the main one i use.
Open to questions, suggestions and ideas.
Mainly I want to gauge if there's any interest for a suite filled with tools like this. Not because of money because it will be free, but because optimizing it and writing things like this takes quite a bit of time and effort i don't mind provided there are people that find this interesting and/or useful
4
u/Final_Job_5175 5 11h ago
I'm interested, but I'd have to use AI to Dum it down, because it's over my head a bit! I will be following this post!