3 releases

Uses old Rust 2015

0.0.3 Mar 26, 2016
0.0.2 Jun 14, 2015
0.0.1 Jun 14, 2015

#16 in #osc

Download history 6/week @ 2023-11-23 1/week @ 2023-11-30 1/week @ 2023-12-14 4/week @ 2023-12-21 1/week @ 2023-12-28 4/week @ 2024-01-04 6/week @ 2024-01-11 2/week @ 2024-02-01 7/week @ 2024-02-08 15/week @ 2024-02-15 26/week @ 2024-02-22 27/week @ 2024-02-29 24/week @ 2024-03-07

92 downloads per month
Used in 3 crates (2 directly)

MIT license

16KB
341 lines

_ _ | |_|_|___ _ _ ___ ___ ___ | | | | | | . | -| | |_| |_|_|_| |___|___|___| |___|

tinyosc is a small, liberally licensed opensoundcontrol implementation for
rust. it is, at the moment, quite bare-bones, but the gist and spirit are
both there.

currently, only serialization and deserialization of messages is
supported. pattern matching is planned.

tinyosc supports the following type-tags:

    'i' => i32,
    'f' => f32,
    's' => &str,
    'T' => true,
    'F' => false,
    'N' => Argument::None

you can construct argument lists manually, with vec![] like so:

    Message {
        path: "/where/ever/its/happenin",
        arguments: vec![Argument::i(42), Argument::f(32.32), Argument::F]
    }

or you could use the handy osc_args![] macro, which automatically wraps
arguments in their corresponding Argument variant:

    Message {
        path: "/where/ever/its/happenin",
        arguments: osc_args![42, 32.32, false]
    }

this is identical in effect to the above example with vec![]. the choice
is yours!

simply pair Message serialization/deserialization with std::net::UdpSocket
and you are well on yr way!

questions, comments, and/or ascii art to wrl@illest.net
peace

Dependencies

~165KB