Rufuss Sewell Posted August 9, 2016 Share Posted August 9, 2016 I have several synths that are either high note or low note priority. I hate that. I just want last note. It seems like something Logic could handle to just send last note to the midi out so the synth itself doesn't need to bother. I tried the voice limiter object and it does work, but it doesn't retrigger a previously held note so you can't do rapid pivots and trills. It seems like there would be a simple midi script for this. Any ideas? Quote Link to comment Share on other sites More sharing options...
ski Posted August 10, 2016 Share Posted August 10, 2016 (edited) var hold = []; function HandleMIDI(e) { var a = e instanceof NoteOn && e.velocity != 0; var b = e instanceof NoteOff; if (a) { switch (hold.length) { case 0: hold.push(e.pitch); e.send(), e.trace(); break; case 1: if (hold[0] != e.pitch) { var noff = new NoteOff(); noff.pitch = hold[0]; noff.velocity = 0; noff.send(), noff.trace(); hold.pop(); e.send(), e.trace(); hold.push(e.pitch); break; } } } if (b) { e.send(), e.trace(); if (e.pitch == hold[0]) { hold.pop(); } } if (!a && !b) { e.send(), e.trace(); } } Edited August 10, 2016 by ski Quote Link to comment Share on other sites More sharing options...
ski Posted August 10, 2016 Share Posted August 10, 2016 The above code gives you true last note priority. Instructions to install it below. If you want something that lets you hold a note and repeatedly play another so you can do trills, that would be a different ballgame. But see how this works for you for starters... • Install a Scripter plugin • Open the Scripter editor • CMD+A and then hit Delete to get rid of everything • Copy and paste the above code into the editor • Click Run Script Quote Link to comment Share on other sites More sharing options...
Rufuss Sewell Posted August 14, 2016 Author Share Posted August 14, 2016 Thank you! I was looking for the ability to hold a note and do trills. Someone on Gearslutz made a script that works! You can see it here: https://www.gearslutz.com/board/electronic-music-instruments-electronic-music-production/1106294-force-last-note-priority-via-logic-software.html#post12069190 Quote Link to comment Share on other sites More sharing options...
DjStiky Posted November 18, 2016 Share Posted November 18, 2016 Would it be possible to make a version of this script that could force LOW note priority instead? Quote Link to comment Share on other sites More sharing options...
kinderale Posted November 15, 2018 Share Posted November 15, 2018 Many thanks for the GS script, works beatifully! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.