pub fn encode_row_based_notes(
notes: &[Note<u64>],
) -> Result<String, EncodeError>Expand description
Encodes a list of row-based Notes into the given writer
Notes should be sorted by row and column to be pastable into ArrowVortex.
use arrowvortex_clipboard::{Note, NoteKind};
let notes = &[
Note { pos: 0, column: 0, kind: NoteKind::Tap },
Note { pos: 12, column: 1, kind: NoteKind::Tap },
Note { pos: 24, column: 2, kind: NoteKind::Tap },
Note { pos: 36, column: 3, kind: NoteKind::Tap },
];
assert_eq!(
arrowvortex_clipboard::encode_row_based_notes(notes)?,
r#"ArrowVortex:notes:!!E9%!=T#H"!d"#,
);