MIDI over OSC

View: New views
3 Messages — Rating Filter:   Alert me  

MIDI over OSC

by IOhannes m zmölnig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi all

for a project, i have to transmit MIDI over the network and i will use
OSC (either using Pd or a liblo app) for that.

looking at the specs, i find that there is already a MIDI-type (i never
needed _that_)
however i don't understand the reasoning, why this MIDI packet consists
of 4 MIDI bytes.

is this meant to be a raw midi stream zero-padded at the end?
e.g. sending "144 60 64 128 60 0" would be packeted as
"144 60 64 128" and "60 0 0 0"??



or is a single midi atom meant to hold an entire midi-message (zero
padded)?
the above example would then be "144 60 64 0" "128 60 0 0"
what about sysex then?

i guess the 4-byte alignment was thought with processing performance in
mind. but then we have single chars as well...

probably i'll end up simply using a blob..


mgasdr
IOhannes

PS: i don't like MIDI either
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkr0kMcACgkQkX2Xpv6ydvSojgCfSr+T8O/SPscJOgRGnWSZ771a
taMAn2D9MukntyNxR6S54CBQZ8yLlxlQ
=1bWi
-----END PGP SIGNATURE-----
_______________________________________________
OSC_dev mailing list
OSC_dev@...
http://lists.create.ucsb.edu/mailman/listinfo/osc_dev

Re: MIDI over OSC

by Andy W. Schmeder-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> or is a single midi atom meant to hold an entire midi-message (zero
> padded)?
> the above example would then be "144 60 64 0" "128 60 0 0"


This would be my interpretation.  Unfortunately there are no more  
details available.


> what about sysex then?

No idea, probably that wasn't anticipated.

To my knowledge, the types "S", "c", "r", "m" and "[", "]" are rarely  
if ever used.

I am not aware of any actual OSC implementation that uses this "MIDI  
word type".

Various individuals have invented encodings for OSC in MIDI that don't  
use it.  Here is one of them:

http://opensoundcontrol.org/implementation/osc2midi


For MIDI over networks you can use RTP-MIDI which I believe is now  
supported in OSX, Windows and maybe Linux also.


> probably i'll end up simply using a blob..

I'd probably do the same.


---

Andy W. Schmeder
andy [at] cnmat.berkeley.edu

Programmer/Analyst II
Research Group
Center for New Music and Audio Technologies
University of California at Berkeley
http://cnmat.berkeley.edu

_______________________________________________
OSC_dev mailing list
OSC_dev@...
http://lists.create.ucsb.edu/mailman/listinfo/osc_dev

Re: MIDI over OSC

by Gaspard Bucher :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Nov 6, 2009 at 11:11 PM, Andy W. Schmeder
<andy@...> wrote:
>
> To my knowledge, the types "S", "c", "r", "m" and "[", "]" are rarely
> if ever used.
>

'[' and ']' are used extensively in oscit to discover methods. This is
an example of a reply (describes the type and current value of 8
urls):

[s[*s]][s[sss]][s[sss]][s[sss]][s[sss]][s[sss]][s[ssss]][s[fffss]]

This would be impossible without '[' and ']' delimiters (and without
using a blob).

Gaspard
_______________________________________________
OSC_dev mailing list
OSC_dev@...
http://lists.create.ucsb.edu/mailman/listinfo/osc_dev