Old 05-17-2024, 06:36 PM   #1
Herr Nox
Human being with feelings
 
Herr Nox's Avatar
 
Join Date: Jul 2018
Location: Canada
Posts: 177
Default JS MIDI Tool pitch randomization

Hey! I’ve built a drum kit using Reasamplomatic5000 and some samples.

I wanted to maybe add a minute random pitch change on every snare hit, so I added the JS MIDI Tool. But even 1% of “randomize pitch” sounded too apparent, and it seems to only be accepting round numbers, no decimals.

I’m not a coder so maybe someone here could tell me if and how I could tweak the MIDI Tool plugin to accept let’s say 0.1%?
__________________
💿 All my links
Herr Nox is offline   Reply With Quote
Old 05-17-2024, 11:39 PM   #2
bobobo
Human being with feelings
 
bobobo's Avatar
 
Join Date: Oct 2014
Posts: 1,398
Default

not a jsfx, but. pitch modulation

set in all but the snare(s) pitch modulation to 0
in snare(s) somethong like 2 (should be default)

when midi sends pitchmods (via midi item or input) the snares will obey

you'll have a bunch of controll then

i made a demo ..
https://stash.reaper.fm/48597/202405...pitchsnare.zip

Last edited by bobobo; 05-18-2024 at 04:46 AM.
bobobo is offline   Reply With Quote
Old 05-18-2024, 04:59 AM   #3
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 15,093
Default

Does ReaSamplomatic read PitchWheel values from Midi ?

If yes you could use some JSFX(es) to create random PW value messages.
mschnell is offline   Reply With Quote
Old 05-18-2024, 08:56 AM   #4
bobobo
Human being with feelings
 
bobobo's Avatar
 
Join Date: Oct 2014
Posts: 1,398
Default

it does.
but the random pitch changes has to match the snarehits in time and hold the value till the next snarehit. otherwise you will get whining snares.

i think about a jfx that change incoming pitch msgs to random values...
bobobo is offline   Reply With Quote
Old 05-18-2024, 09:06 AM   #5
Herr Nox
Human being with feelings
 
Herr Nox's Avatar
 
Join Date: Jul 2018
Location: Canada
Posts: 177
Default

Thanks for the tips people. After some testing around, I found the optimal tweak for what I was going for - it was so simple I should have just looked at the code before asking. Here's how to do it:

Using JS MIDI Tool V2, enter a value of 1.0 in the Random pitch (%) field and select No from the Pitch reset drop-down menu (to prevent the whining snare effect).

Click Edit to tweak the code. Find the pitchRand line.

The default value here is this:
pitchRand = slider12 * 0.01;

Version 1 (the most subtle, but also the most natural sounding in my opinion) Add 2 zeros:
pitchRand = slider12 * 0.0001;

Save! The pitch value will randomly switch between the original pitch (pitchCenter) of 16384 and 16383. Seems like nothing but subtle enough for your ears to not pick it up in a mix.

Version 2 (less subtle, but may be more desirable in some scenarios) Enter this value:
pitchRand = slider12 * 0.00015;

Save! Now the pitch value will randomly move between 16382, 16383, 16384 and 16385. Just a bit more obvious, but still usable.
__________________
💿 All my links
Herr Nox is offline   Reply With Quote
Old 05-18-2024, 09:58 AM   #6
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 15,093
Default

IMHO, Modifying the stock plugins is not good idea, as they will be re-set with any update.

You can simply type a small value in the appropriate number field and hit enter

Or you can use ReaPack -> Pitch Bend Factor to modify the Pitchbend output appropriately.
mschnell is offline   Reply With Quote
Old 05-18-2024, 12:09 PM   #7
Herr Nox
Human being with feelings
 
Herr Nox's Avatar
 
Join Date: Jul 2018
Location: Canada
Posts: 177
Default

Quote:
Originally Posted by mschnell View Post
IMHO, Modifying the stock plugins is not good idea, as they will be re-set with any update.

You can simply type a small value in the appropriate number field and hit enter
Entering a value between 0 and 1 reverts to zero. It only takes whole numbers. I can also create a new JS plugin locally with my tweak and name it something else, no?
__________________
💿 All my links
Herr Nox is offline   Reply With Quote
Old 05-18-2024, 01:07 PM   #8
mschnell
Human being with feelings
 
mschnell's Avatar
 
Join Date: Jun 2013
Location: Krefeld, Germany
Posts: 15,093
Default

Quote:
Originally Posted by Herr Nox View Post
Entering a value between 0 and 1 reverts to zero.
Yep I see it in the code. That is decently silly



Quote:
Originally Posted by Herr Nox View Post
I can also create a new JS plugin locally with my tweak and name it something else, no?
Yep of course. IMHO using the factor plugin would be more straight forward.
mschnell is offline   Reply With Quote
Old 05-20-2024, 08:10 AM   #9
bobobo
Human being with feelings
 
bobobo's Avatar
 
Join Date: Oct 2014
Posts: 1,398
Default

hmm i played with the midi tool ii

i found ptichchanges while a snare hit occurs .. doesn't sound too usable then
(ok, i admit i didn't use too subtle settings)
bobobo is offline   Reply With Quote
Old 05-21-2024, 07:32 AM   #10
bobobo
Human being with feelings
 
bobobo's Avatar
 
Join Date: Oct 2014
Posts: 1,398
Default

so i made something as i'm not satisfied with the solution posted above.

pitchbends only when note are played, a solution for snares

get it here
https://bobobo.de/reaper/midi_randoms/
bobobo is offline   Reply With Quote
Old 05-22-2024, 07:16 PM   #11
Herr Nox
Human being with feelings
 
Herr Nox's Avatar
 
Join Date: Jul 2018
Location: Canada
Posts: 177
Default

Quote:
Originally Posted by bobobo View Post
so i made something as i'm not satisfied with the solution posted above.

pitchbends only when note are played, a solution for snares

get it here
https://bobobo.de/reaper/midi_randoms/
Thanks a bunch! I won’t be able to test until a few days but I’ll report back here I do!
__________________
💿 All my links
Herr Nox is offline   Reply With Quote
Old 06-04-2024, 06:58 AM   #12
PLIFFS
Human being with feelings
 
Join Date: Mar 2024
Posts: 4
Default

Quote:
Originally Posted by bobobo View Post
so i made something as i'm not satisfied with the solution posted above.

pitchbends only when note are played, a solution for snares

get it here
https://bobobo.de/reaper/midi_randoms/
Hi bobobo,

I just had the time to check this one out.
and.. I do like it!

Thanks a lot for this one!
PLIFFS is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:49 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.