Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 02-09-2019, 06:27 AM   #1
TonE
Human being with feelings
 
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 1,771
Default 16 step probabilities per bar jsfx? [SOLVED by master Time Waster, Random Note Gate]

Is there any jsfx which divides a bar into 16 step ranges, and can give for each step a probability, determining if the notes starting in that step range will play or not?

The jsfx, could do following if probability under threshold, set velocity of all notes starting in that step range, to 0, thus removing them from playing.

Last edited by TonE; 02-14-2019 at 12:15 AM.
TonE is offline   Reply With Quote
Old 02-09-2019, 09:36 AM   #2
V1b3zman
Human being with feelings
 
Join Date: Oct 2016
Posts: 24
Default

Maybe this might be what you're looking for

https://forum.cockos.com/showthread.php?t=181051
V1b3zman is offline   Reply With Quote
Old 02-09-2019, 03:21 PM   #3
TonE
Human being with feelings
 
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 1,771
Default

Hmm, no, this I have already here, in that one I have to program everything there as I understood, but I just want to set the probabilities for the step ranges, nothing else, no programming at all there. Just the probabilities.
TonE is offline   Reply With Quote
Old 02-09-2019, 03:24 PM   #4
Bri1
Human being with feelings
 
Bri1's Avatar
 
Join Date: Dec 2016
Location: England
Posts: 2,321
Default

Quote:
I just want to set the probabilities for the step ranges, nothing else, no programming at all there. Just the probabilities.

ello- so try 1 of the megababy mods?
does that not do what you want?
it has a special cc set for that?
Bri1 is offline   Reply With Quote
Old 02-09-2019, 04:13 PM   #5
TonE
Human being with feelings
 
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 1,771
Default

really, can megababy do this?
TonE is offline   Reply With Quote
Old 02-09-2019, 04:30 PM   #6
Bri1
Human being with feelings
 
Bri1's Avatar
 
Join Date: Dec 2016
Location: England
Posts: 2,321
Default

^lol-yep- why not try for yourself?
look for prob in cc lane.
Bri1 is offline   Reply With Quote
Old 02-10-2019, 12:44 AM   #7
TonE
Human being with feelings
 
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 1,771
Default

I have only Mod, Vol, Pan, Exp lanes below. At the top left, if I click on DM, it shows PR, I guess this is probability then, but where to write or draw its values? I do not want to enter any notes. I guess this is the wrong megababy version.
TonE is offline   Reply With Quote
Old 02-10-2019, 03:37 AM   #8
Bri1
Human being with feelings
 
Bri1's Avatar
 
Join Date: Dec 2016
Location: England
Posts: 2,321
Default

Quote:
I have only Mod, Vol, Pan, Exp lanes below..

ey- well if you click edit- then further descriptive clues are given-hotkeys/shortcuts+ability to have upto 128 steps i thinked.
roll dice?
how does it roll?
Bri1 is offline   Reply With Quote
Old 02-10-2019, 09:56 AM   #9
TonE
Human being with feelings
 
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 1,771
Default

Ok,checked edit, first blue if set to value 127 showing indeed Prb, however it seems this is only for the notes generated/set inside Megababy, so it can not apply its probabilities to incoming notes it seems. Did you try it?

Example: If I set some Prb values to 0 they are still playing, where in theory they should not play. Anyway, Megababy seems to be Microbaby for this feature.

Best solution so far is IX's Probalocity, but it has also its disadvantages, there should be a version with two inputs, like sidechain input, from the sidechain input should come only the notes, which control the probabilities, and those notes should be eaten by the plugin, not creating any sound in the following fx.

And there is pizmidi probability something, but this does not give control on step basis.
TonE is offline   Reply With Quote
Old 02-10-2019, 01:37 PM   #10
Bri1
Human being with feelings
 
Bri1's Avatar
 
Join Date: Dec 2016
Location: England
Posts: 2,321
Default

heh- well i dunno- thought it answered the original question-

but it seems no matter what i do,people always find fault,or just ignore advice anyways--so be it.
tried to help...
Bri1 is offline   Reply With Quote
Old 02-10-2019, 02:47 PM   #11
TonE
Human being with feelings
 
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 1,771
Default

No, nothing ignored here, but I do not want to program notes inside Megababy, this should happen outside, as explained above.
TonE is offline   Reply With Quote
Old 02-10-2019, 04:06 PM   #12
Time Waster
Human being with feelings
 
Time Waster's Avatar
 
Join Date: Aug 2013
Location: Bowral, Australia
Posts: 831
Default

This is an interesting problem and I can see that it could have some useful applications like for randomising drum patterns etc. I don't have a soloution as yet but It has given me an idea for a new ReaRack module, a 'random note gate'. The module itself would simply allow the note to pass, or not, based on a probability set by a slider. If used on it's own the probability would be the same for all notes as per the manual probability setting. However I would build in the ability to modulate the probability setting, the idea being to use a step sequencer (e.g. the ReaRack Envelope Multi-tool) to set the probability for up to 16 steps (or beyond if you chain more of them). The step sequencer would not be sending the notes, just the control values for the probability. You could use other methods to send the control values if you don't want to use a sequencer, e.g. send CCs from a midi item. The advantage of using the ReaRack sequencer is that it provides high resolution MIDI, or audio expressed as a simple 0 to 1 control signal.

Would that be useful?
__________________
ReaRack JSFX Modular Synth - Mostly harmless: https://stash.reaper.fm/v/28403/ReaR...dularSynth.zip
The Wasters of Time: https://soundcloud.com/thewastersoftime
Time Waster is offline   Reply With Quote
Old 02-11-2019, 10:52 AM   #13
TonE
Human being with feelings
 
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 1,771
Default

Sounds interesting yes, and it would give me finally the opportunity to try your racks, never had any useful idea where I could use those, maybe this would trigger jumping into the whole set, if I get warm with them, meaning understand them a little.
TonE is offline   Reply With Quote
Old 02-12-2019, 01:02 AM   #14
Time Waster
Human being with feelings
 
Time Waster's Avatar
 
Join Date: Aug 2013
Location: Bowral, Australia
Posts: 831
Default

I have added a Added 'Random Note Gate' module to the ReaRack3 zip file in the stash here: https://stash.reaper.fm/v/34071/ReaR...dularSynth.zip

This module passes or blocks MIDI note-on messages depending on the probability setting. The probability setting can be modulated. I haven't really tested this module, but it seems to work. Let me know of any bugs.

If using the ReaRack3 Envelope Multi-tool module (EG) to modulate the probability, I would suggest the following method:

1) Place the Envelope multi-tool on a separate track and send the output to the track receiving the notes, which will also house the random note gate. The EG is on a separate track because it requires a note to trigger it, and that note would get passed through and mixed in with the actual notes you want if was on the same track as note gate. I may address this issue in a later version.

2) Use the Note Sequencer preset to set up the EG as a sequencer. Set the output to the control signal of your choice. Set the trigger mode to either 'triggered single pass', or 'loop - latch triggered'. You will need to set up the stage lengths as appropriate for your note spacing.

3) Use a MIDI item to send a note to trigger the envelope generator. You may need to have the timing of the trigger note slightly earlier than the note timing to make sure that the probability value is changed before each note is played. Theoretically, if you use 'loop - latch triggered', you should only need to send one trigger note to set the sequence going as a loop. Using 'triggered single pass' with multiple trigger noted however would guarantee that the sequence starts in the correct place each pass. As mentioned, I haven't tested this.
__________________
ReaRack JSFX Modular Synth - Mostly harmless: https://stash.reaper.fm/v/28403/ReaR...dularSynth.zip
The Wasters of Time: https://soundcloud.com/thewastersoftime
Time Waster is offline   Reply With Quote
Old 02-13-2019, 11:57 PM   #15
TonE
Human being with feelings
 
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 1,771
Default

Dear Time Waster, tried Random Note Gate quickly, it seems to work perfectly, I do not need any ENV as I would modulate it by precise programming insdie the tracker, hackey trackey lua plugin by sifu saike. Your Random Note Gate adds a lot of new possibilities. Small tool with a huge impact on fun factor. Thanks a lot. I will add your Random Note Gate, to the list I gave on hackey trackey thread.

Now we can have all, per step or note, wonderful:
-offset
-reverse
-retrigger
-probability

Thanks to probability a single pattern can sound as if it were many more, just by setting some inbetween notes to smaller probabilities, which would add those random variations, preventing the listener from getting bored, hopefully, tricking out human brain or ear or both.
TonE is offline   Reply With Quote
Old 02-14-2019, 02:17 AM   #16
Time Waster
Human being with feelings
 
Time Waster's Avatar
 
Join Date: Aug 2013
Location: Bowral, Australia
Posts: 831
Default

Hi TonE, I'm glad you like it. Just a note on how it works, only note-on messages are blocked, all note-offs are passed through for simplicity. This shouldn't ever cause a problem, but let me know if it does.

I've put an updated version in the stash, just some minor updates to the graphics. The probability output is now expressed as a ratio.
__________________
ReaRack JSFX Modular Synth - Mostly harmless: https://stash.reaper.fm/v/28403/ReaR...dularSynth.zip
The Wasters of Time: https://soundcloud.com/thewastersoftime
Time Waster is offline   Reply With Quote
Old 02-14-2019, 04:29 AM   #17
TonE
Human being with feelings
 
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 1,771
Default

Quote:
Originally Posted by Time Waster View Post
...only note-on messages are blocked, all note-offs are passed through for simplicity. This shouldn't ever cause a problem, but let me know if it does.
If this will cause any surprises I can write here again. For a quick test it was just working fine, no surprises with drum notes.
EDIT: As a side note, even if there would be any hanging note issues, there is anyway the magic switchable transpose by master boreg, and this would solve those issue, just adding switchable transpose behind yours should do the trick, I tested switchable transpose also extensively, this is the best real-time, must jsfx I know, if you like transposing sequences freely, extensively, and never getting any hanging notes, thanks to boreg, exactly what Vangelis wanted for his Direct, many years ago.

Last edited by TonE; 02-18-2019 at 11:46 AM.
TonE is offline   Reply With Quote
Old 02-20-2019, 06:04 AM   #18
TonE
Human being with feelings
 
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 1,771
Default

Would it be possible for Random Note Gate there is one slider, when the gate is open, this slider will go to max, otherwise back to zero.

How could this be useful? We could map this slider to other parameters for automation, my main use would be mapping to Wet, so it could be applied to any fx, adjust your dream setting, some big reverb for example, then randomly it would be opened, then off again. It would give one more dimension making repeating loops less boring.

Best would be making a new jsfx, I guess, something like Random Slider Gate, behaving as described above.
TonE is offline   Reply With Quote
Old 02-20-2019, 06:52 PM   #19
Time Waster
Human being with feelings
 
Time Waster's Avatar
 
Join Date: Aug 2013
Location: Bowral, Australia
Posts: 831
Default

How would you want to trigger this? You could have an FX that just self triggers on some regular division of a beat or bar and apply the randomisation to that. I would prefer that rather than moving a slider, the FX would send a CC or audio control signal. The high and low values of the signal could be adjustable.

I could possibly do a mod to the ReaRack LFO to enable the random step output to be quantised to a high or low output based on a threshold setting.
__________________
ReaRack JSFX Modular Synth - Mostly harmless: https://stash.reaper.fm/v/28403/ReaR...dularSynth.zip
The Wasters of Time: https://soundcloud.com/thewastersoftime
Time Waster is offline   Reply With Quote
Old 02-20-2019, 07:00 PM   #20
Time Waster
Human being with feelings
 
Time Waster's Avatar
 
Join Date: Aug 2013
Location: Bowral, Australia
Posts: 831
Default

Actually, this is already possible. Use the ReaRack 3 LFO set to random step followed by the ReaRack 3 Signal Processor with the output curve set to step. Adjust the LFO rate as desired and adjust the position of the signal processor output step to set high/low output ratio.
__________________
ReaRack JSFX Modular Synth - Mostly harmless: https://stash.reaper.fm/v/28403/ReaR...dularSynth.zip
The Wasters of Time: https://soundcloud.com/thewastersoftime
Time Waster is offline   Reply With Quote
Old 02-21-2019, 03:07 AM   #21
TonE
Human being with feelings
 
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 1,771
Default

Quote:
Originally Posted by Time Waster View Post
Actually, this is already possible. Use the ReaRack 3 LFO set to random step followed by the ReaRack 3 Signal Processor with the output curve set to step. Adjust the LFO rate as desired and adjust the position of the signal processor output step to set high/low output ratio.
Thanks, I will try it out. To your previous question, how to trigger it, I thought using probability parameter. e.g. I would set it to 0 everywhere first, then where I want some triggering I would pull it up to 1. Slider solution would be universal I thought, as we can further link it to any other parameter, e.g. not only reverb, some additional fx at the same time, like filther or distortion. But I can test your last suggestion first, then reporting back here. Thanks a lot.
TonE is offline   Reply With Quote
Old 02-21-2019, 06:29 AM   #22
TonE
Human being with feelings
 
Join Date: Feb 2009
Location: Reaper HAS send control via midi !!!
Posts: 1,771
Default

Did all what you wrote, but how do I map it to wet of another plugin? I need to select some value for output in signal processor right? By default Output shows OFF. Not sure how to continue from here? All seems unnecessarily complicated, especially if you want to use this feature permanently, it should be much easier and quicker to setup. Something like Random Note Gate. Drop it in, set the probability, finished.

I guess a moving slider could do the trick, as I can simply map this slider to any new target. Now I do not know first which output to select, also which input. Then even after having decided on those (input, output), how to map the output to Wet of any other fx?
TonE is offline   Reply With Quote
Old 02-21-2019, 03:16 PM   #23
Time Waster
Human being with feelings
 
Time Waster's Avatar
 
Join Date: Aug 2013
Location: Bowral, Australia
Posts: 831
Default

Set the output of the LFO to be the same as one of the inputs of the signal processor (only one input is required for this task). I would recommend using an audio channel for this, say Audio 3, as audio is more efficient than MIDI CC. Don't forget to add some extra audio channels to the track as by default only audio channels 1 ans 2 are active.

For the output of the signal processor, I would suggest using a MIDI CC (although you could use an audio channel for this, but it will be non linear).

Then just use REAPER's parameter modulation to link the control on the reverb, or whatever, to the CC output of the signal processor.

See animated gif here: https://drive.google.com/open?id=1Gl..._7X2PQLLdjDc25
__________________
ReaRack JSFX Modular Synth - Mostly harmless: https://stash.reaper.fm/v/28403/ReaR...dularSynth.zip
The Wasters of Time: https://soundcloud.com/thewastersoftime

Last edited by Time Waster; 02-22-2019 at 02:51 AM. Reason: added link to gif
Time Waster 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 07:19 PM.


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