pub fn encode_time_based_notes(
notes: &[Note<f64>],
) -> Result<String, EncodeError>Expand description
Encodes a list of time-based Notes into the given writer
Notes should be sorted by time and column to be pastable into ArrowVortex.
use arrowvortex_clipboard::{Note, NoteKind};
let notes = &[
Note { pos: 0.0, column: 0, kind: NoteKind::Tap },
Note { pos: 0.25, column: 1, kind: NoteKind::Tap },
Note { pos: 0.5, column: 2, kind: NoteKind::Tap },
Note { pos: 0.75, column: 3, kind: NoteKind::Tap },
];
assert_eq!(
arrowvortex_clipboard::encode_time_based_notes(notes)?,
r#"ArrowVortex:notes:!<`B&z!!!!"z!!(A1!WW3#!!!#W56ClczkW]"#,
);