Use comptime for fully declarative LV2 and Custom commands #14

Merged
luna merged 69 commits from declarative-commands into master 2020-06-02 21:37:47 +00:00
2 changed files with 4 additions and 5 deletions
Showing only changes of commit c3b83c3e4b - Show all commits

View file

@ -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);

View file

@ -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);
}