Old 11-24-2016, 11:56 AM   #1
jimbobbley
Human being with feelings
 
Join Date: Nov 2011
Posts: 72
Default MIDI clock blocker / filter?

Hi all


I'm having a bit of trouble routing a Roland SPDSX via Reaper to an external sequencer. It seems the MIDI timing information that the SPD spits out (which can't be turned off, it seems) is overloading the buffer and as a result the sequencer is only seeing about one note in 4.

Would writing a JS script to block clock be an easy thing to do? I can't see any existing scripts on this forum, but apologies if I've missed one.

I'd really appreciate any help here - thanks in advance!
jimbobbley is offline   Reply With Quote
Old 11-24-2016, 03:09 PM   #2
ijijn
Human being with feelings
 
ijijn's Avatar
 
Join Date: Apr 2012
Location: Christchurch, New Zealand
Posts: 479
Default

Quote:
Originally Posted by jimbobbley View Post
Hi all


I'm having a bit of trouble routing a Roland SPDSX via Reaper to an external sequencer. It seems the MIDI timing information that the SPD spits out (which can't be turned off, it seems) is overloading the buffer and as a result the sequencer is only seeing about one note in 4.

Would writing a JS script to block clock be an easy thing to do? I can't see any existing scripts on this forum, but apologies if I've missed one.

I'd really appreciate any help here - thanks in advance!
Sure, that would be a really easy thing to do. Do you know the format of the timing info coming from the SPD, or can you capture some of it as a MIDI file and upload it here?
ijijn is offline   Reply With Quote
Old 11-24-2016, 03:49 PM   #3
ijijn
Human being with feelings
 
ijijn's Avatar
 
Join Date: Apr 2012
Location: Christchurch, New Zealand
Posts: 479
Default

If we're talking about standard MIDI Clock F8 messages, you can try this:

Code:
desc:Clock Blocker

@block

while (midirecv_str(offset, message = #))
(str_getchar(message, 0) !== 0xF8 ? midisend_str(offset, message));
ijijn is offline   Reply With Quote
Old 11-25-2016, 09:12 AM   #4
NextLevel
Human being with feelings
 
Join Date: Dec 2014
Posts: 410
Default

"Clock blocking", is this the term for when one copy of REAPER is trying to hookup with another but the friend of the first copy is trying to prevent it?

LOL sorry could'nt resist ...carry on.

"Man, why you always gotta' be clock blocking me?"
NextLevel is offline   Reply With Quote
Old 12-05-2016, 07:02 AM   #5
jimbobbley
Human being with feelings
 
Join Date: Nov 2011
Posts: 72
Default

Thanks a lot for the help! I'll try this as soon as I can get my hands on the SPD-SX again.. much appreciated. The unit seems to receive F8 code so I'm guessing it must transmit it, too, although the manual is a bit useless on that front.

Thanks again
jimbobbley is offline   Reply With Quote
Old 04-15-2017, 05:19 AM   #6
jimbobbley
Human being with feelings
 
Join Date: Nov 2011
Posts: 72
Default

Just in case anyone was remotely interested in this, I found the problem in the end wasn't MIDI clock but was instead the length of the notes the SPD spits out (too short).

You can gate these in the SPD to make them longer but this has the unfortunate (and inexplicable) by-product of turning off the audio out on the SPD, which is ridiculous.

What I've done instead to solve the problem is:

SPD input channel FX:
pizMIDI converter3 - filter out all note off messages
JS Fixed Note Length v0.3 - set note length to 1/16 (they're just triggering one-shot samples so it doesn't matter)

That way you end up with much longer notes with proper note on and off messages and everything works nicely.

Thanks again for help though...

J
jimbobbley is offline   Reply With Quote
Old 12-08-2019, 01:19 AM   #7
BrufordRules
Human being with feelings
 
BrufordRules's Avatar
 
Join Date: Jan 2008
Posts: 41
Default

Quote:
Originally Posted by ijijn View Post
If we're talking about standard MIDI Clock F8 messages, you can try this:

Code:
desc:Clock Blocker

@block

while (midirecv_str(offset, message = #))
(str_getchar(message, 0) !== 0xF8 ? midisend_str(offset, message));
3 years have passed since this post but I would like to say thank you for your script.
That's all I need to block the annoying MIDI Clock messages coming from my Roland Octapad SPD-30 which are impossible to disable from the device itself.

Cheers
__________________
Bill Bruford on King Crimson: This is a band where you get to play in weird time signatures and still stay in nice hotels.
BrufordRules 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 07:58 AM.


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