Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Q&A, Tips, Tricks and Howto

Reply
 
Thread Tools Display Modes
Old 04-09-2019, 02:03 PM   #1
tom_
Human being with feelings
 
Join Date: Dec 2016
Posts: 61
Default Is there an FX plugin that avoids two identical notes in a row?

I use some FX plugins to generate random notes.

I'm looking for an FX plugin which I can insert in the FX row after my random note plugins and which can do the following:
It compares the last note played with a newly played note. If the new note is equal to the previous note, the new note simply won't be played. Is there such a script?
tom_ is offline   Reply With Quote
Old 04-10-2019, 02:43 AM   #2
tom_
Human being with feelings
 
Join Date: Dec 2016
Posts: 61
Default

Actually something like this should be easy to program. How long would it take someone like me as a non-programmer to learn that? What do you estimate?
tom_ is offline   Reply With Quote
Old 04-11-2019, 04:21 AM   #3
tom_
Human being with feelings
 
Join Date: Dec 2016
Posts: 61
Default

Would anyone be willing to write me such a script for a fee?
tom_ is offline   Reply With Quote
Old 04-11-2019, 08:13 AM   #4
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default

Rough and ready: give the attached a try.

How to install a JS FX (in Post #4)
Attached Files
File Type: txt Note_Dup_Dropper_DS.txt (3.8 KB, 94 views)
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 04-11-2019, 11:40 AM   #5
tom_
Human being with feelings
 
Join Date: Dec 2016
Posts: 61
Default

Wow. This is absolutely awesome!
Thank you very much for your effort! How can I reward you?

The script works great. I'm trying to figure out how to create an additional version of the script that takes the last 2 notes into account when comparing.
tom_ is offline   Reply With Quote
Old 04-11-2019, 12:11 PM   #6
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default

There is absolutely no need, but you can make a one-off donation here if you wish:
http://www.msf.org/donate
They need it more than I do (and would spend it more wisely).
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 04-11-2019, 12:19 PM   #7
foxAsteria
Human being with feelings
 
foxAsteria's Avatar
 
Join Date: Dec 2009
Location: Oblivion
Posts: 10,254
Default

Well seems you found a solution, but this is similar to what Instascale does (and consequently why I regret purchasing it). It's made for playing scale runs easily so each note always shifts the new note by a specific interval based on the last note. To repeat a note you have to assign a key to that function (repeat last note).

I think it's an interesting approach if you don't already have some experience with playing keys, but it's counterintutive if you do.
__________________
foxyyymusic
foxAsteria is online now   Reply With Quote
Old 04-11-2019, 01:02 PM   #8
tom_
Human being with feelings
 
Join Date: Dec 2016
Posts: 61
Default

Great idea, thanks! I just donated.

Could you give me a hint on which variable to look for to figure out how to modify the script so that the last 2 notes are used for comparison instead of just one? Maybe I could just create an additional version of the script that takes the penultimate note into account instead of the last one. Then I could chain the 2 plugins.

I'm gonna take a look at Instascale. Thanks for the hint.
tom_ is offline   Reply With Quote
Old 04-12-2019, 05:07 AM   #9
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default

That's a bit trickier (so no guarantees!):

>>> https://i.imgur.com/ki1nhJk.png

Edit: Attachment removed, see later post
__________________
DarkStar ... interesting, if true. . . . Inspired by ...

Last edited by DarkStar; 04-13-2019 at 04:55 AM.
DarkStar is offline   Reply With Quote
Old 04-12-2019, 06:16 AM   #10
tom_
Human being with feelings
 
Join Date: Dec 2016
Posts: 61
Default

You're a great guy! Thank you very much.

The new version almost works. One problem is that in contrast to the first version, some notes are not released and therefore some errors occur.
Attached Images
File Type: jpg output.jpg (48.2 KB, 75 views)
tom_ is offline   Reply With Quote
Old 04-12-2019, 07:23 AM   #11
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default

Hah. Well I did say "no guarantees"

Can you attach a small test project that shows the problem?

How to post attachments (in Post #1)
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 04-12-2019, 07:55 AM   #12
tom_
Human being with feelings
 
Join Date: Dec 2016
Posts: 61
Default

Yeah, I know. I just thought I'd ask. Maybe it's an easy problem to fix

I've attached the test project.

If you press Record, the output of the first track will be recorded.
Then you can see the problem.

Interestingly, the output varies with different record sessions.
Attached Files
File Type: rpp test.RPP (8.0 KB, 72 views)
tom_ is offline   Reply With Quote
Old 04-12-2019, 10:20 AM   #13
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default

Fixed the hanging note (no Note Off) and differing results problems.

But ... my new version checks the current note against the last two undropped notes. In your project, from the Required track it looks like you want it checked against the last 2 received notes. Can you let me know which?
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 04-12-2019, 12:33 PM   #14
tom_
Human being with feelings
 
Join Date: Dec 2016
Posts: 61
Default

Sounds great

Your version (check against last two undropped notes) is probably the better one. This would be awesome.
tom_ is offline   Reply With Quote
Old 04-13-2019, 05:00 AM   #15
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default



See later for revised version of the JS FX
__________________
DarkStar ... interesting, if true. . . . Inspired by ...

Last edited by DarkStar; 04-15-2019 at 04:38 AM.
DarkStar is offline   Reply With Quote
Old 04-13-2019, 12:20 PM   #16
tom_
Human being with feelings
 
Join Date: Dec 2016
Posts: 61
Default

Thank you very much for your efforts! Unfortunately it doesn't work with the Randomizer anymore, as planned.

But please don't feel compelled to continue.
Attached Files
File Type: rpp test2.RPP (3.4 KB, 81 views)
tom_ is offline   Reply With Quote
Old 04-13-2019, 12:28 PM   #17
tom_
Human being with feelings
 
Join Date: Dec 2016
Posts: 61
Default

It's really weird. If I record the notes from Randomizer and then play them again, your plugin won't work. If I draw the notes myself, the plugin works.

Oh, I've discovered: If I put another plugin in between, it seems to work. I'm doing some more tests.

Last edited by tom_; 04-13-2019 at 12:34 PM.
tom_ is offline   Reply With Quote
Old 04-13-2019, 12:51 PM   #18
tom_
Human being with feelings
 
Join Date: Dec 2016
Posts: 61
Default

With another plugin in between it works Thank you very much again! Without your help it would have become very complicated for me.

In general, the Reaper Forum is one of the friendliest and most helpful I've ever met.
tom_ is offline   Reply With Quote
Old 04-14-2019, 03:59 PM   #19
tom_
Human being with feelings
 
Join Date: Dec 2016
Posts: 61
Default

My plugin, which outputs the random notes, works in polyphonic mode.

Unfortunately, the script has problems filtering notes if different tone pitches of the input notes overlap.
tom_ is offline   Reply With Quote
Old 04-15-2019, 03:29 AM   #20
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default

Try this one

Attached Files
File Type: txt Note_Dup_Dropper2_DS.txt (4.8 KB, 73 views)
__________________
DarkStar ... interesting, if true. . . . Inspired by ...

Last edited by DarkStar; 04-15-2019 at 04:37 AM.
DarkStar is offline   Reply With Quote
Old 04-15-2019, 05:47 AM   #21
tom_
Human being with feelings
 
Join Date: Dec 2016
Posts: 61
Default

It seems to be working perfectly now.

I can't tell you how grateful I am to you!

There are great committed people here in the forum. Awesome.

Thanks a million!
tom_ is offline   Reply With Quote
Old 04-15-2019, 08:04 AM   #22
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default

Good oh!

Just remember to help out others here when you can. We all started somewhere.
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar 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 08:07 AM.


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