Use comptime for fully declarative LV2 and Custom commands #14
2 changed files with 4 additions and 5 deletions
|
@ -136,15 +136,15 @@ pub const NewCommand = struct {
|
|||
pub const base_tag = Tag.amp;
|
||||
pub const base_type = Type.lv2_command;
|
||||
base: NewCommand,
|
||||
gain: f64
|
||||
gain: f32
|
||||
};
|
||||
|
||||
pub const RFlanger = struct {
|
||||
pub const base_tag = Tag.rflanger;
|
||||
pub const base_type = Type.lv2_command;
|
||||
base: NewCommand,
|
||||
delay_depth_avg: f64,
|
||||
law_freq: f64,
|
||||
delay_depth_avg: f32,
|
||||
law_freq: f32,
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -404,7 +404,7 @@ pub const Lang = struct {
|
|||
try commands.append(cmd.base);
|
||||
}
|
||||
|
||||
pub fn parse(self: *Lang, data: []const u8) ParseError!CommandList {
|
||||
pub fn parse(self: *Lang, data: []const u8) !CommandList {
|
||||
var splitted_it = std.mem.split(data, ";");
|
||||
// try self.fillKeywords();
|
||||
var cmds = CommandList.init(self.allocator);
|
||||
|
|
|
@ -778,7 +778,6 @@ pub const Runner = struct {
|
|||
debug_flag: bool,
|
||||
) !void {
|
||||
for (cmds.items) |cmd| {
|
||||
// TODO
|
||||
// if (debug_flag) const_cmd.print();
|
||||
try self.newRunCommand(cmd);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue