Use comptime for fully declarative LV2 and Custom commands #14
1 changed files with 1 additions and 43 deletions
|
@ -2,49 +2,7 @@ const langs = @import("lang.zig");
|
||||||
|
|
||||||
pub fn printList(list: langs.CommandList, stream: var) !void {
|
pub fn printList(list: langs.CommandList, stream: var) !void {
|
||||||
for (list.items) |cmd| {
|
for (list.items) |cmd| {
|
||||||
var command = switch (cmd.command) {
|
const command = @tagName(cmd.tag);
|
||||||
.Noop => "noop",
|
|
||||||
.Load => "load",
|
|
||||||
.Quicksave => "quicksave",
|
|
||||||
.RunQS => "runqs",
|
|
||||||
|
|
||||||
.Amp => "amp",
|
|
||||||
.RFlanger => "rflanger",
|
|
||||||
.Eq => "eq",
|
|
||||||
.Phaser => "phaser",
|
|
||||||
.Mbeq => "mbeq",
|
|
||||||
.Chorus => "chorus",
|
|
||||||
.PitchScaler => "pitchscaler",
|
|
||||||
.Reverb => "reverb",
|
|
||||||
.Highpass => "highpass",
|
|
||||||
.Delay => "delay",
|
|
||||||
.Vinyl => "vinyl",
|
|
||||||
.RevDelay => "revdelay",
|
|
||||||
.Gate => "gate",
|
|
||||||
.Detune => "detune",
|
|
||||||
.Overdrive => "overdrive",
|
|
||||||
.Degrade => "Degrade",
|
|
||||||
.RePsycho => "repsycho",
|
|
||||||
.TalkBox => "talkbox",
|
|
||||||
.DynComp => "dyncomp",
|
|
||||||
.ThruZero => "thruzero",
|
|
||||||
.Foverdrive => "foverdrive",
|
|
||||||
.Gverb => "gverb",
|
|
||||||
.Invert => "invert",
|
|
||||||
.TapeDelay => "tapedelay",
|
|
||||||
.ModDelay => "moddelay",
|
|
||||||
.MultiChorus => "multichorus",
|
|
||||||
.Saturator => "saturator",
|
|
||||||
.VintageDelay => "vintagedelay",
|
|
||||||
|
|
||||||
.Noise => "noise",
|
|
||||||
.WildNoise => "wildnoise",
|
|
||||||
.Write => "write",
|
|
||||||
.Embed => "embed",
|
|
||||||
|
|
||||||
.Rotate => "rotate",
|
|
||||||
};
|
|
||||||
|
|
||||||
try stream.print("{}", .{command});
|
try stream.print("{}", .{command});
|
||||||
|
|
||||||
for (cmd.args.items) |arg| {
|
for (cmd.args.items) |arg| {
|
||||||
|
|
Loading…
Reference in a new issue