add rotate cmd to lang

This commit is contained in:
Luna 2019-07-22 17:04:43 -03:00
parent 2151afb115
commit 67c9f425bb
3 changed files with 6 additions and 6 deletions

View file

@ -37,8 +37,3 @@ scritcher examples/middle_amp.scri blah.bmp
// blah_g1.bmp, the second saves to blah_g2.bmp, etc.
$your_image_viewer blah_g1.bmp
```
## todo
- search other plugins
- conquer the world for glitchy anime girls

View file

@ -114,7 +114,7 @@ Parameters:
- `gain`: Gain, 0..12, default 0
- `noClip`: Soft Clip (assumed boolean), 0..1, default 0
## `delay seed gain feedback_pc tap_count first_delay delay_range delay_scale delay_rand_pc gain_scale wet`
## `delay split index seed gain feedback_pc tap_count first_delay delay_range delay_scale delay_rand_pc gain_scale wet`
Parameters:
- `seed`: Random seed, 0..1000, default 0

View file

@ -28,6 +28,8 @@ pub const CommandType = enum {
RevDelay,
Noise,
WildNoise,
Rotate,
};
pub const Command = struct {
@ -159,6 +161,9 @@ pub const Lang = struct {
// custom implementations (not lv2)
_ = try self.keywords.put("noise", .Noise);
_ = try self.keywords.put("wildnoise", .WildNoise);
// even more custom
_ = try self.keywords.put("rotate", .Rotate);
}
pub fn parse(self: *Lang, data: []const u8) !CommandList {