Old 02-11-2007, 04:32 AM   #1
IXix
Human being with feelings
 
Join Date: Jan 2007
Location: mcr:uk
Posts: 3,889
Default 'offset' param in midi functions (reaper version)

Hi,

Please could someone explain or give me a practical example of what this parameter is for? The manual says it's the offset in samples from the current block so I thought maybe it allowed you to delay the action of the function for n samples but that doesn't work for me.
IXix is offline   Reply With Quote
Old 02-11-2007, 05:37 AM   #2
LOSER
Human being with feelings
 
Join Date: May 2006
Posts: 2,373
Default

Quote:
Originally Posted by IXix View Post
Hi,

Please could someone explain or give me a practical example of what this parameter is for? The manual says it's the offset in samples from the current block so I thought maybe it allowed you to delay the action of the function for n samples but that doesn't work for me.
Do you mean midisend(offset,msg1,msg23)? - Then, yes, this is the offset, but REAPER's blocksize is rather small so you won't hear the delay. You will have to do some buffering for that I think.
LOSER is offline   Reply With Quote
Old 02-11-2007, 05:46 AM   #3
IXix
Human being with feelings
 
Join Date: Jan 2007
Location: mcr:uk
Posts: 3,889
Default

Quote:
Originally Posted by LOSER View Post
Do you mean midisend(offset,msg1,msg23)? - Then, yes, this is the offset, but REAPER's blocksize is rather small so you won't hear the delay. You will have to do some buffering for that I think.
Ah, I think I see. I thought it was an absolute offset so that midisend(44100,msg1,msg23) would wait a whole second before sending the message but it looks like you're saying it's just an offset into the block and not past the end of the block, is that right?
IXix is offline   Reply With Quote
Old 02-11-2007, 06:34 AM   #4
LOSER
Human being with feelings
 
Join Date: May 2006
Posts: 2,373
Default

Quote:
Originally Posted by IXix View Post
Ah, I think I see. I thought it was an absolute offset so that midisend(44100,msg1,msg23) would wait a whole second before sending the message but it looks like you're saying it's just an offset into the block and not past the end of the block, is that right?
That is correct (AFAIK). (Otherwise I already had some MIDI delay/echo FX out there )
LOSER is offline   Reply With Quote
Old 02-11-2007, 06:52 AM   #5
IXix
Human being with feelings
 
Join Date: Jan 2007
Location: mcr:uk
Posts: 3,889
Default

Thanks for clearing that up for me. Your help is much appreciated.

-IX
IXix 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:59 PM.


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