amm_sdk 0.4.0

Abstract Music Manipulation (AMM) Rust SDK
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[cfg(target_arch = "wasm32")]
use amm_sdk::wasm::*;
#[cfg(target_arch = "wasm32")]
use wasm_bindgen_test::*;

#[cfg(target_arch = "wasm32")]
wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);

#[cfg(target_arch = "wasm32")]
#[wasm_bindgen_test]
fn pass() {
  let data = include_str!("../examples/Grande Valse Brillante.musicxml");
  match load_from_musicxml(data.as_bytes()) {
    Ok(composition) => console_log!("{:?}", composition),
    Err(error) => console_log!("{:?}", error),
  }
  assert_eq!(1, 1);
}