Skip to content

Commit c9bea64

Browse files
committed
pub default_path field; fix #1; bump version
1 parent 28cee10 commit c9bea64

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "sofiza"
33
description = "SFZ format parser"
4-
version = "0.2.0"
4+
version = "0.2.1"
55
edition = "2018"
66
authors = ["José Luis Cruz <joseluis@andamira.net>"]
77
repository = "https://github.com/andamira/sofiza"

src/sfz/instrument.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ pub struct Instrument {
3737
/// The opcodes in a region overrides those in global and in its group.
3838
pub regions: Vec<Region>, // these opcodes override global, and their group ones
3939

40+
/// The default path.
4041
// maybe make this later a: struct Control
4142
// https://sfzformat.com/headers/control
42-
default_path: PathBuf,
43+
pub default_path: PathBuf,
4344

4445
last_header_created: Header,
4546
}
@@ -287,6 +288,9 @@ impl Instrument {
287288
self.regions[region].set_group(group);
288289
Ok(())
289290
}
291+
292+
// TODO:
293+
pub fn groups_iter(&self) -> () {}
290294
}
291295

292296
/// The current status of the parsing of the instrument

0 commit comments

Comments
 (0)