Old 09-02-2014, 01:49 AM   #1
G-Sun
Human being with feelings
 
G-Sun's Avatar
 
Join Date: May 2010
Location: Norway
Posts: 7,318
Default Remove duplicate midi on different note

Hi folks!

I have a Cajun that I'd like to use as a trigger for kick and snare.
So I set up a trigger on back-mic and front-mic to new track, one note for kick, another for snare.
This gives me basically two notes per hit, with different relative velocities, on same track.
So, now I need to remove the note that is lowest in velocity,
so one hit will be kick, another snare.

Is there a script somewhere for this?
Is it hard to make?

I might have to manually change some notes later, but such a script would make things much easier.
__________________
Reaper x64, win 11
Composer, text-writer, producer
Bandcamp
G-Sun is offline   Reply With Quote
Old 09-02-2014, 03:05 AM   #2
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 19,677
Default

I do not know of a script but it would not be too difficult.

Code:
Get the next MIDI note.
If a first Note On, save the velocity.
If a second Note On, 
    use the max velocity of this note and the saved velocity, 
    send a Note On.
If a first Note Off, ignore it.
If a second Note Off, send it on.
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is offline   Reply With Quote
Old 09-02-2014, 07:00 AM   #3
G-Sun
Human being with feelings
 
G-Sun's Avatar
 
Join Date: May 2010
Location: Norway
Posts: 7,318
Default

Quote:
Originally Posted by DarkStar View Post
I do not know of a script but it would not be too difficult.
Ok, nice.

I was thinking not like an fx, but as a script thinning the notes.
More like this maybe?
Code:
Get the next MIDI note.
If a first Note A On, save velocity A.
If a second Note B On within +20ms,
    save the velocity B
If vel A > vel. B
   delete note B
else
   delete note A
__________________
Reaper x64, win 11
Composer, text-writer, producer
Bandcamp
G-Sun 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 11:56 AM.


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