| *** tytel has joined #lv2 | 00:05 | |
| *** tytel_ has quit IRC | 00:05 | |
| *** tytel has quit IRC | 00:10 | |
| *** tytel has joined #lv2 | 00:10 | |
| *** tytel has quit IRC | 00:12 | |
| *** tytel has joined #lv2 | 00:12 | |
| *** tytel has quit IRC | 00:16 | |
| *** tytel has joined #lv2 | 00:16 | |
| *** tytel has quit IRC | 00:21 | |
| *** tytel has joined #lv2 | 00:21 | |
| *** NickSB3 has quit IRC | 00:33 | |
| *** tytel has quit IRC | 00:39 | |
| *** nicksbx has joined #lv2 | 00:40 | |
| *** tytel has joined #lv2 | 00:40 | |
| *** tytel has quit IRC | 00:42 | |
| *** tytel has joined #lv2 | 00:43 | |
| *** tytel has quit IRC | 00:44 | |
| *** tytel has joined #lv2 | 00:45 | |
| *** ricardocrudo has quit IRC | 00:45 | |
| *** NickSB2 has quit IRC | 00:45 | |
| *** tytel_ has joined #lv2 | 00:54 | |
| *** tytel has quit IRC | 00:54 | |
| *** tytel has joined #lv2 | 00:56 | |
| *** tytel_ has quit IRC | 00:56 | |
| *** tytel has quit IRC | 00:57 | |
| *** tytel has joined #lv2 | 00:58 | |
| *** tytel has quit IRC | 01:11 | |
| *** tytel has joined #lv2 | 01:11 | |
| *** tytel_ has joined #lv2 | 01:15 | |
| *** tytel has quit IRC | 01:15 | |
| *** tytel has joined #lv2 | 01:24 | |
| *** tytel_ has quit IRC | 01:24 | |
| *** tytel has quit IRC | 01:33 | |
| *** NickSB2_ has quit IRC | 01:36 | |
| *** tytel has joined #lv2 | 04:55 | |
| *** tytel has quit IRC | 05:01 | |
| *** tytel has joined #lv2 | 06:12 | |
| *** tytel has quit IRC | 06:22 | |
| *** tytel has joined #lv2 | 06:42 | |
| *** tytel has quit IRC | 07:32 | |
| *** tytel has joined #lv2 | 07:33 | |
| *** tytel has quit IRC | 07:58 | |
| *** edogawa has joined #lv2 | 08:00 | |
| *** ricardocrudo has joined #lv2 | 08:47 | |
| *** NickSB2_ has joined #lv2 | 09:15 | |
| *** drobilla has quit IRC | 10:17 | |
| *** ventosus has joined #lv2 | 11:30 | |
| *** NickSB2_ has quit IRC | 13:50 | |
| *** drobilla has joined #lv2 | 14:36 | |
| *** tytel has joined #lv2 | 15:55 | |
| *** ricardocrudo has quit IRC | 16:02 | |
| *** tytel has quit IRC | 17:24 | |
| *** tytel has joined #lv2 | 17:27 | |
| *** tytel has quit IRC | 17:47 | |
| *** edogawa has quit IRC | 17:47 | |
| *** flexus has joined #lv2 | 18:07 | |
| *** ricardocrudo has joined #lv2 | 18:21 | |
| *** rncbc has joined #lv2 | 18:26 | |
| *** edogawa has joined #lv2 | 18:33 | |
| ColaEuphoria | const uint8_t* const msg = (const uint8_t*)(ev + 1); | 19:21 |
|---|---|---|
| ColaEuphoria | this is in the fifths.c example plugin assigning msg to a midi event | 19:22 |
| ColaEuphoria | because 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 |
| ColaEuphoria | as a uint8_t? | 19:23 |
| rgareus | yes | 19:24 |
| ColaEuphoria | thanks | 19:24 |
| rgareus | oh wait. | 19:26 |
| rgareus | msg[0], msg[1], msg[2] will be the 3 bytes | 19:26 |
| rgareus | ev is the event itself. the cast happens after the +1 (which skips the even header) | 19:26 |
| rgareus | call parse_raw_midi_data ((const uint8_t*)(ev+1), ev->body.size); | 19:27 |
| ColaEuphoria | oh | 19:27 |
| ColaEuphoria | right | 19:27 |
| ColaEuphoria | because ev is a pointer variable | 19:27 |
| rgareus | with static void parse_raw_midi_data (const uint8_t* midi_event_message_data, size_t midi_msg_byte_len); | 19:28 |
| rgareus | if you need the timestamp. that'll be ev->time.frames | 19:29 |
| ColaEuphoria | so 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 bytes | 19:30 |
| rgareus | it is a N element array of uint8_t N = ev->body.size | 19:31 |
| ColaEuphoria | well, in the context of midi | 19:31 |
| ColaEuphoria | will a midi message size ever be less than 3? | 19:32 |
| rgareus | the +1 is a bit of a hack - skip to data-body http://lv2plug.in/doc/html/group__atom.html#structLV2__Atom__Event | 19:32 |
| ColaEuphoria | ah | 19:32 |
| rgareus | LV2 Atoms messages are in the form { length-of-payload-in-bytes message-type payload } | 19:34 |
| rgareus | ColaEuphoria: did you see http://lv2plug.in/book/ ? | 19:35 |
| ColaEuphoria | yeah that's where i found that code snippet | 19:36 |
| ColaEuphoria | under fifths.c | 19:36 |
| rgareus | ok. | 19:36 |
| *** NickSB2_ has joined #lv2 | 19:36 | |
| ColaEuphoria | i knew that midi events were sent through as atoms | 19:36 |
| ColaEuphoria | i just didn't know how the midi itself was structured in lv2 | 19:36 |
| ColaEuphoria | but now i think i have it :) | 19:36 |
| rgareus | midi messages can be 1, 2 or 3 bytes long. sysex messages can be endless. but 3 bytes messages are by far the most commont | 19:38 |
| rgareus | http://www.midi.org/techspecs/midimessages.php | 19:38 |
| *** ventosus has left #lv2 | 20:34 | |
| *** flexus has quit IRC | 21:11 | |
| *** tytel has joined #lv2 | 21:54 | |
| *** ricardocrudo has quit IRC | 22:51 | |
| *** NickSB2_ has quit IRC | 23:07 | |
| *** rncbc has quit IRC | 23:36 | |
| *** tytel has quit IRC | 23:38 | |
| *** tytel has joined #lv2 | 23:39 | |
| *** tytel has quit IRC | 23:44 | |
Generated by irclog2html.py 2.13.0 by Marius Gedminas - find it at mg.pov.lt!