Thursday, 2015-08-27

*** tytel has joined #lv200:05
*** tytel_ has quit IRC00:05
*** tytel has quit IRC00:10
*** tytel has joined #lv200:10
*** tytel has quit IRC00:12
*** tytel has joined #lv200:12
*** tytel has quit IRC00:16
*** tytel has joined #lv200:16
*** tytel has quit IRC00:21
*** tytel has joined #lv200:21
*** NickSB3 has quit IRC00:33
*** tytel has quit IRC00:39
*** nicksbx has joined #lv200:40
*** tytel has joined #lv200:40
*** tytel has quit IRC00:42
*** tytel has joined #lv200:43
*** tytel has quit IRC00:44
*** tytel has joined #lv200:45
*** ricardocrudo has quit IRC00:45
*** NickSB2 has quit IRC00:45
*** tytel_ has joined #lv200:54
*** tytel has quit IRC00:54
*** tytel has joined #lv200:56
*** tytel_ has quit IRC00:56
*** tytel has quit IRC00:57
*** tytel has joined #lv200:58
*** tytel has quit IRC01:11
*** tytel has joined #lv201:11
*** tytel_ has joined #lv201:15
*** tytel has quit IRC01:15
*** tytel has joined #lv201:24
*** tytel_ has quit IRC01:24
*** tytel has quit IRC01:33
*** NickSB2_ has quit IRC01:36
*** tytel has joined #lv204:55
*** tytel has quit IRC05:01
*** tytel has joined #lv206:12
*** tytel has quit IRC06:22
*** tytel has joined #lv206:42
*** tytel has quit IRC07:32
*** tytel has joined #lv207:33
*** tytel has quit IRC07:58
*** edogawa has joined #lv208:00
*** ricardocrudo has joined #lv208:47
*** NickSB2_ has joined #lv209:15
*** drobilla has quit IRC10:17
*** ventosus has joined #lv211:30
*** NickSB2_ has quit IRC13:50
*** drobilla has joined #lv214:36
*** tytel has joined #lv215:55
*** ricardocrudo has quit IRC16:02
*** tytel has quit IRC17:24
*** tytel has joined #lv217:27
*** tytel has quit IRC17:47
*** edogawa has quit IRC17:47
*** flexus has joined #lv218:07
*** ricardocrudo has joined #lv218:21
*** rncbc has joined #lv218:26
*** edogawa has joined #lv218:33
ColaEuphoriaconst uint8_t* const msg = (const uint8_t*)(ev + 1);19:21
ColaEuphoriathis is in the fifths.c example plugin assigning msg to a midi event19:22
ColaEuphoriabecause i'm new to this, i'm guessing it's safe to assume ev + 2 will point to the third midi byte, which contains velocity information?19:23
ColaEuphoriaas a uint8_t?19:23
rgareusyes19:24
ColaEuphoriathanks19:24
rgareusoh wait.19:26
rgareusmsg[0], msg[1], msg[2]   will be the 3 bytes19:26
rgareusev is the event itself. the cast happens after the +1 (which skips the even header)19:26
rgareuscall      parse_raw_midi_data ((const uint8_t*)(ev+1), ev->body.size);19:27
ColaEuphoriaoh19:27
ColaEuphoriaright19:27
ColaEuphoriabecause ev is a pointer variable19:27
rgareuswith         static void parse_raw_midi_data (const uint8_t* midi_event_message_data, size_t midi_msg_byte_len);19:28
rgareusif you need the timestamp.  that'll be     ev->time.frames19:29
ColaEuphoriaso ev + 1 gives the midi message msg, which is a 3 element array of uint8_t, with the first element being the status byte, and the next two being data bytes19:30
rgareusit is a N element array of uint8_t    N = ev->body.size19:31
ColaEuphoriawell, in the context of midi19:31
ColaEuphoriawill a midi message size ever be less than 3?19:32
rgareusthe +1 is a bit of a hack - skip to data-body     http://lv2plug.in/doc/html/group__atom.html#structLV2__Atom__Event19:32
ColaEuphoriaah19:32
rgareusLV2 Atoms messages are in the form    { length-of-payload-in-bytes  message-type   payload }19:34
rgareusColaEuphoria: did you see  http://lv2plug.in/book/  ?19:35
ColaEuphoriayeah that's where i found that code snippet19:36
ColaEuphoriaunder fifths.c19:36
rgareusok.19:36
*** NickSB2_ has joined #lv219:36
ColaEuphoriai knew that midi events were sent through as atoms19:36
ColaEuphoriai just didn't know how the midi itself was structured in lv219:36
ColaEuphoriabut now i think i have it :)19:36
rgareusmidi messages can be 1, 2 or 3 bytes long.  sysex messages can be endless.   but 3 bytes messages are by far the most commont19:38
rgareushttp://www.midi.org/techspecs/midimessages.php19:38
*** ventosus has left #lv220:34
*** flexus has quit IRC21:11
*** tytel has joined #lv221:54
*** ricardocrudo has quit IRC22:51
*** NickSB2_ has quit IRC23:07
*** rncbc has quit IRC23:36
*** tytel has quit IRC23:38
*** tytel has joined #lv223:39
*** tytel has quit IRC23:44

Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!