Author |
Topic: Sysex delay with COM interface (Read 4329 times) |
|
Dave Wheeler
New Member



Posts: 5
|
 |
Sysex delay with COM interface
« on: Aug 28th, 2001, 2:50pm » |
Quote Modify
|
Has anyone sussed a way of delaying between bytes when sending sysex when using the COM interface (Midiox 1.0 type library). The DelayAfterF7 switch seems to offer delay between whole sysex sends and not between bytes. This can be done in MidiOx by setting the output buffer to 1 byte and then delaying between buffers. Any ideas Dave
|
|
IP Logged |
|
|
|
Jamie OConnell
Administrator
    


Gender: 
Posts: 2027
|
 |
Re: Sysex delay with COM interface
« Reply #1 on: Aug 28th, 2001, 11:00pm » |
Quote Modify
|
Under Windows, SysEx data is transmitted in buffers, so that a lot of information can be moved fairly quickly. I'm not sure why you would want a delay between SysEx bytes? But you can do it the same way in a script as you do it without one: set the buffer size to 1 byte (this is incredibly inefficient, by the way, but not harmful). The COM SysEx interface will obey the DelayAfterF7 setting, and if you really need it, it could be made to obey the between buffers setting too. So... Why do you really need it?
|
|
IP Logged |
--Jamie Music is its own reward.
|
|
|
Dave Wheeler
New Member



Posts: 5
|
 |
Re: Sysex delay with COM interface
« Reply #2 on: Aug 29th, 2001, 3:07am » |
Quote Modify
|
Thanks Jamie. I'm looking towards writing a frontend for Thorstens MidiBox which due to hardware (the PIC) which needs time to write to internal memory between bytes needs the delay. I didn't know that there was a BetweenBuffers setting available !!!! at the moment I am writing to a file and then sending the file with your MidiOx with the output buffer size set to 1 and a 5 ms delay between buffers. Cya Dave
|
|
IP Logged |
|
|
|
Jamie OConnell
Administrator
    


Gender: 
Posts: 2027
|
 |
Re: Sysex delay with COM interface
« Reply #3 on: Aug 29th, 2001, 9:48am » |
Quote Modify
|
The between buffers (milliseconds) setting is the one you just alluded to: "the output buffer size set to 1 and a 5 ms delay between buffers". I'll see if we can get the COM stuff to obey that setting.
|
|
IP Logged |
--Jamie Music is its own reward.
|
|
|
Dave Wheeler
New Member



Posts: 5
|
 |
Re: Sysex delay with COM interface
« Reply #4 on: Aug 29th, 2001, 10:28am » |
Quote Modify
|
Thanks Jamie, Nothing like opening a can of worms !!!! Looks like the script does not use the settings in MidiOX (which would be ideal). the other of course is to not use MidiOx as a client. Seems a shame after all your work and it is by far the best midi tool around. The rest of my code is getting close (looks horrible but thats VB for you !) and at the moment I am saving the .SYX to a file and sending with MidiOx. Thanks again for your Help. Dave
|
|
IP Logged |
|
|
|
Jamie OConnell
Administrator
    


Gender: 
Posts: 2027
|
 |
Re: Sysex delay with COM interface
« Reply #5 on: Aug 29th, 2001, 5:44pm » |
Quote Modify
|
on Aug 29th, 2001, 10:28am, Dave_Wheeler wrote: Looks like the script does not use the settings in MidiOX (which would be ideal). |
| Right, that's what I've been saying: that if people really needed it, it could be added. To summarise: currently when sending a SysEx file, the script obeys the Delay After F7 setting, but ignores the Delay between buffers setting.
|
|
IP Logged |
--Jamie Music is its own reward.
|
|
|
Dave Wheeler
New Member



Posts: 5
|
 |
Re: Sysex delay with COM interface
« Reply #6 on: Aug 30th, 2001, 12:43pm » |
Quote Modify
|
Hi Jamie. For me that would be great but I'm not sure how many people are usiny the interface (from VB or C++) as there would be little point in loads of effort for a small amount of users. (Even though it would be handy for me ) Cheers Dave
|
|
IP Logged |
|
|
|
madMixx
New Member


MIDI-OX Rules! <- no need to change default text..

Gender: 
Posts: 5
|
 |
Re: Sysex delay with COM interface
« Reply #7 on: Sep 18th, 2002, 4:11pm » |
Quote Modify
|
@dave: you could also avoid the SendSysexFile method by using the SendSysexString method which gathers data from another buffer (i.E. a Variant datatype) you set up in vb. I had to do this for my app (see my thread) and it works quite well with the exception that midiox won't do anything (com server 'stalls' without errormessages) after sending/receiving about 350 kb of sysex data. I work around this by closing and reopening the midi ports after transfers. I could provide you with some easy samples (read from file to buffer, send from buffer to port) if you want. Best Reagrds, chris
|
|
IP Logged |
|
|
|
Dave Wheeler
New Member



Posts: 5
|
 |
Re: Sysex delay with COM interface
« Reply #8 on: Sep 18th, 2002, 5:56pm » |
Quote Modify
|
Hi Chris, Thanks for your offer. I gave up with scripting MidiOx in the end but found some free MIDI tools from Mayby (iffy spelling !) which suited my application. Cya Dave
|
|
IP Logged |
|
|
|
madMixx
New Member


MIDI-OX Rules! <- no need to change default text..

Gender: 
Posts: 5
|
 |
Re: Sysex delay with COM interface
« Reply #9 on: Sep 18th, 2002, 9:57pm » |
Quote Modify
|
ahh, i see. These are actually quite good. I finally found the free version too. (other one was discontinued) For those of you interested the gnu-license version of the discontinued (but still very good) mabry midiio control for vb is located on http://modemss.brisnet.org.au/~mlevoi/midi.html which is the homepage of Mike Le Voi who also does some free support (if you ask him kindly) for this control. peace, chris
|
|
IP Logged |
|
|
|
|