Skip to content

Commit

Permalink
pub default_path field; fix #1; bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
joseluis committed Apr 18, 2021
1 parent 28cee10 commit c9bea64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "sofiza"
description = "SFZ format parser"
version = "0.2.0"
version = "0.2.1"
edition = "2018"
authors = ["José Luis Cruz <joseluis@andamira.net>"]
repository = "https://github.com/andamira/sofiza"
Expand Down
6 changes: 5 additions & 1 deletion src/sfz/instrument.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ pub struct Instrument {
/// The opcodes in a region overrides those in global and in its group.
pub regions: Vec<Region>, // these opcodes override global, and their group ones

/// The default path.
// maybe make this later a: struct Control
// https://sfzformat.com/headers/control
default_path: PathBuf,
pub default_path: PathBuf,

last_header_created: Header,
}
Expand Down Expand Up @@ -287,6 +288,9 @@ impl Instrument {
self.regions[region].set_group(group);
Ok(())
}

// TODO:
pub fn groups_iter(&self) -> () {}
}

/// The current status of the parsing of the instrument
Expand Down

0 comments on commit c9bea64

Please sign in to comment.