Skip to content

Commit 05d9dc6

Browse files
committed
create notation_tab crate, for tab repos
1 parent de0319e commit 05d9dc6

File tree

31 files changed

+99
-14057
lines changed

31 files changed

+99
-14057
lines changed

Cargo.lock

Lines changed: 10 additions & 114 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ members = [
1010
"crates/notation_model",
1111
"crates/notation_bevy",
1212
"apps/notation_viewer",
13-
"apps/notation_tool",
13+
"apps/notation_tabs",
1414
]
1515

1616
# https://rustwasm.github.io/book/reference/code-size.html
@@ -23,4 +23,4 @@ opt-level = 's'
2323
opt-level = 1
2424

2525
[patch.crates-io]
26-
# winit = { git = "https://github.com/yjpark/winit/", branch = "touch-input_0.24.0" }
26+
# winit = { git = "https://github.com/yjpark/winit/", branch = "touch-input_0.24.0" }

apps/notation_tabs/Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[package]
2+
name = "notation_tabs"
3+
version = "0.3.0"
4+
edition = "2021"
5+
6+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
8+
[dependencies]
9+
notation_tab = { path = "../../crates/notation_tab" }

apps/notation_tabs/src/main.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
use notation_tab::prelude::*;
2+
3+
pub mod scarborough_fair;
4+
5+
pub fn main() {
6+
write_tab(&scarborough_fair::new_tab(), "../notation_viewer/assets/tabs/scarborough_fair.ron");
7+
}

apps/notation_tool/src/tab/songs/misc/scarborough_fair.rs renamed to apps/notation_tabs/src/scarborough_fair.rs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
use notation_dsl::tab;
2-
use notation_proto::prelude::*;
1+
#!/usr/bin/env rust-script
2+
//! ```cargo
3+
//! [dependencies]
4+
//! notation_tab = { version = "0.3.0", path = "crates/notation_tab" }
5+
//! ```
6+
7+
use notation_tab::prelude::*;
8+
9+
pub fn main() {
10+
print_tab(&new_tab());
11+
}
312

413
pub fn new_tab() -> Tab {
514
tab! {

apps/notation_tool/Cargo.toml

Lines changed: 0 additions & 14 deletions
This file was deleted.

apps/notation_tool/src/main.rs

Lines changed: 0 additions & 59 deletions
This file was deleted.

apps/notation_tool/src/tab/beginner/mod.rs

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/notation_tool/src/tab/beginner/right_hand_1.rs

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)