Jump to content

Limit note length to fixed value?


Ninecows
Go to solution Solved by Jordi Torres,

Recommended Posts

Hi

I have never tried scripter before and is in a hurry (recording my kid on midi drums for Christmas present for her grand dad!)

so she has this old Yamaha DTXPLORER drumkit and for some reason it either doesn’t send note off or logic doesn’t get it. So basically when she hit one of the pads the same pad cannot be retriggered for a second or two 🤷‍♂️😳

when I look at the recorded midi they are all sustained for at least a whole beat.

So if someone can either tell me what checkbox I have missed or help me with a small script that limits note length to eg 1/128 or so I would be super grateful and you have saved Christmas 🤗

Link to comment
Share on other sites

  • Solution

Hi @Ninecows,

Looks like you can set a so-called "MIDI Key ON/OFF" parameter on theses things. Have a look here at page 22 in the DTXPLORER's manual:

DTXPLORER Owner's Manual (yamaha.com)

Sounds like in your case it's currently set to "norm".

If that doesn't help, give this script a try:

/* 
Half Note (1/2): 0.5
Quarter Note (1/4): 0.25
Eighth Note (1/8): 0.125
16th Note (1/16): 0.0625
32nd Note (1/32): 0.03125
64th Note (1/64): 0.015625
128th Note (1/128): 0.0078125 
*/

var NeedsTimingInfo = true;

function HandleMIDI(e) {
  if (e instanceof NoteOn) {
    const noteOff = new NoteOff(e);
    noteOff.sendAtBeat(e.beatPos + 0.0078125);
  }
  e.send();
}

J.

 

 

  • Like 2
  • Love 1
Link to comment
Share on other sites

  • 3 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...