Function libpd_rs::send::send_float_to
source · [−]Expand description
Sends an f32 value to the pd receiver object specified in the receiver argument
send_float_to("foo", 1.0) will send the f32 value to |s foo| on the next tick.
The value can be received from a |r foo| object in the loaded pd patch.
Example
use libpd_rs::send::send_float_to;
// Handle the error if the receiver object is not found
send_float_to("foo", 1.0).unwrap_or_else(|err| {
dbg!("{}", err);
});
// or don't care..
let _ = send_float_to("foo", 1.0);Errors
A list of errors that can occur:
