Ninecows Posted December 10, 2023 Share Posted December 10, 2023 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 🤗 Quote Link to comment Share on other sites More sharing options...
Solution Jordi Torres Posted December 13, 2023 Solution Share Posted December 13, 2023 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. 2 1 Quote Link to comment Share on other sites More sharing options...
Ninecows Posted December 29, 2023 Author Share Posted December 29, 2023 Thanks! Seems like it was a bad midi interface. I tried another and it works. But really appreciate the code and link to the manual. The manual I found else where was very limited. And you got me kickstarted with scripting 😊 2 Quote Link to comment Share on other sites More sharing options...
Jordi Torres Posted December 29, 2023 Share Posted December 29, 2023 You're welcome! And glad to hear things are working with a different MIDI interface. Cheers, J. 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.