Welcome to %s forums

BrainModular Users Forum

Login Register

Musical Divisions to Milliseconds .. to Knob?

I need help on a Patch
Post Reply
Djordjo
Member
Posts: 24
Contact:

Musical Divisions to Milliseconds .. to Knob?

Unread post by Djordjo » 10 May 2020, 02:26

Hi patching friends,

I'm trying to solve a common task. The topic titel says it all. If the BPM is (x) what duration has for example a 4th or 8th triplet Note in MS?

I made a patch that works so far. I use the (Master Sync) module to get the bar duration.
Then I made a Excel spreadsheet to calculate the musical divisions for 128th to Hole Note in Note, Triplets, Dotted values for 120 BPM,
put them in the right order and divided the bar duration trough each musical millisecond division to get the "general musical divider" (sorry don't know the right Math term).
Then I copied the data from the spreadsheet into (combobox) modules and syced them with a horizontal fader. Everything works nice, you can change Usine's BPM
and the patch should show the correct miliseconds for each musical division. Maybe there is a smarter way to solve this in Usine, i'm thankful for every tip.
I attached the patch, the Excel spreadsheet, a textfile in case you don't have Excel, and picture of the patch.
I intended to make it work with the decay & predelay of reverb plugins to sync the output to the BPM i added also some values like "Bar + Half Note", values that make sense with a reverb in my opinion.

I thougt I can send the information to a reverb plugin Predelay & Decay knob, but since the "scaling" of each plugin for Predelay & Decay is different i don't know how to "frame it".
In this case it's the "Valhalla Vintage Verb". The plugin displays values from 0,2 to 70 seconds for the decay and the Usine patch data ouput shows values from 0 to 1.

I enterd the musical divisions into the plugin decay starting with from a 8th note, with 120 BPM it's 0,250 seconds and I wrote down the patch data ouput: 0.1158114 etc.
I did this for every musical division from an 8th up higher and visualized the data in Excel. It looks like it's a exponatial function. I got to refresh my math knowlege a little. :mrgreen:
So the idea is: I do the math in excel till i got a function that looks simular then I put the formular into usine and it converts the musical ms output of the attached patch to a knob value between 0-1.
I doesn't have to be perfect, basically it's nerd stuff and as musician i'm able to set the reverb values musically with my ears, but I'm still interested in mathematical solution as a starting point,
when i'm searching the right settings for a reverb. So if anybody has a tip how to solve this, just drop it. At the end I hope i can patch a solution where I can adjusts the the value curve with faders so that it matches in a way.
I hope you got me.

Best Regards
Djordjo
Attachments
Musical Devisions to MS.zip
(37.23 KiB) Downloaded 201 times
New to Usine Hollyhock

SylvainT
Site Admin
Posts: 494
Contact:

Unread post by SylvainT » 10 May 2020, 08:19

ahha, what a story. :lol:
You have the module "tempo to delay" to achieve that directly.
Scaling values in Usine is very simple :
Use "change scale" module to change scales of values.
The "mapper curve" module allows you to apply approximate exp or log (or everything else) while scaling values.
And the "mapper value" module scales discrete values.

All the best

Sylvain

User avatar
x.iso
Member
Posts: 565
Location: RU, Saint-Petersburg
Contact:

Unread post by x.iso » 10 May 2020, 13:10

Usine can give you duration of up to 128th note (relative to BPM of course) with Clock module, just choose appropriate division and get duration output.
as for plugins, yeah, you have to get the right scale as Sylvain said
join Hollyhock Usine Discord server: https://discord.gg/EdJarnE

Djordjo
Member
Posts: 24
Contact:

Unread post by Djordjo » 11 May 2020, 02:17

My friends, first, thanks for your help.
You feel like my Usine Mommies. So happy Mothers Day. :lol:

The (Tempo to Delay) and the (Clock) modules have quite simular "synchro" options:
interval
cycle
bar
beat
8th
triplet ( triplet of what?)
16th
24th
32th
48th
64th
128th
For dotted notes both have an EXTRA switch! WTF?!

With all due resepect, but MY PATCH, which I'm btw very proud of, :lol:
is pretty user friendly and offers straight forward "musical divisions", with no extra switches and you can scroll them in the RIGHT Milliseconds order. TADAAA:
128th Trip
128th Note
64th Trip
128 Dot
64th Note
32th Trip
64th Dot
32th Note
16th Trip
32th Dot
16th Note
8th Trip
16th Dot
8th Note
4th Trip
8th Dot
4th Note
Half Trip
4th Dot
Half Note
Hole Trip
Half Dot
Hole Note
Bar + 8th
Bar + 4th
Bar + 4th Dot
Bar + Half
Bar + Half + 8th
Bar + Half Dot
Bar + Half + 4th
2 Bars
3 Bars
4 Bars
5 Bars
6 Bars
7 Bars
8 Bars
AND you can limit the values range for your purpous by setting "min" and "max" values of the fader!
So it can start with 8th notes and end with hole notes or start with 64th and end with 8th.
Cause .. For reverb predelays you need an other range than for reverb decays. HA-HA! :lol:

The (Data Scaling Mapper Curves) module worked for me.
In it's settings I put the "max in" = max decay value of the plugin und put "curve" to log or exp.
Then I chose the highest setting of my patch 8 Bars = 16 000 ms (120 BPM),
typed in the value in the plugin decay, looked at the patch output and noted this value. In this case it was 0.6426211
Then i adjusted "coeff" of the (Data Scaling Mapper Curves) module till it's "out" value matched 0.6426211 as close as possible. Done.
The curve is a little unprecise in the mid values but it's in the margin of accepteble.

Thanks very much. Big hug.
New to Usine Hollyhock

User avatar
x.iso
Member
Posts: 565
Location: RU, Saint-Petersburg
Contact:

Unread post by x.iso » 11 May 2020, 14:43

Djordjo wrote:
11 May 2020, 02:17

triplet ( triplet of what?)
well it's 12th note, typical triplet. if you look closely, 24th, 48th are also so called 'triplets', there's just no triplet between 128th and 64th in synchro options.
For dotted notes both have an EXTRA switch! WTF?!
yes, by switching to dotted you get dotted version of selected measure.
join Hollyhock Usine Discord server: https://discord.gg/EdJarnE

Post Reply

Who is online

Users browsing this forum: No registered users and 50 guests