• I am one of the two people behind lavatech, hello.
  • https://l4.pm
  • skirts

  • Joined on 2018-11-12
luna closed issue luna/scritcher#11 2020-06-02 21:37:47 +00:00
make lv2 commands fully declarative
luna pushed to master at luna/scritcher 2020-06-02 21:37:46 +00:00
18924adac4 Merge pull request 'Use comptime for fully declarative LV2 and Custom commands' (#14) from declarative-commands into master
6d8614e678 revert cloned runner using parsed cmd list
af0ea574e1 remove default value for Runner.repl field
1b59705eae cloned runners inherit repl flag from parent
a2ea8fb53e make args live through lifetime of runner
Compare 70 commits »
luna merged pull request luna/scritcher#14 2020-06-02 21:37:46 +00:00
Use comptime for fully declarative LV2 and Custom commands
luna pushed to declarative-commands at luna/scritcher 2020-06-02 20:25:18 +00:00
6d8614e678 revert cloned runner using parsed cmd list
af0ea574e1 remove default value for Runner.repl field
1b59705eae cloned runners inherit repl flag from parent
a2ea8fb53e make args live through lifetime of runner
Compare 4 commits »
luna pushed to declarative-commands at luna/scritcher 2020-06-02 20:04:50 +00:00
c78ca9dd5b refactor argument fetching for load cmd
dc98c7a22f use better seed
Compare 2 commits »
luna pushed to declarative-commands at luna/scritcher 2020-06-02 19:36:13 +00:00
aeb76fe6c0 add more possibilities on temporary file paths
luna pushed to declarative-commands at luna/scritcher 2020-06-02 19:17:11 +00:00
542ba75b01 make repl cloned runner run the runqs cmd
c7eb70a06f ignore lines without commands
0240b10a3c close handles while making temporary paths
d6c92c0231 add split and index when printing custom/lv2 cmds
Compare 4 commits »
luna pushed to declarative-commands at luna/scritcher 2020-06-02 02:59:47 +00:00
5235482ab4 print float parameters with decimal notation
ee7ffd1be7 move repl commands to the heap
0453f37305 add noop, runqs support to runner
7f008db540 part 2 of printing commands
Compare 4 commits »
luna pushed to declarative-commands at luna/scritcher 2020-06-02 01:35:40 +00:00
b06bab9ec5 remove unecessary compileError call
f973d6807d add basics of printing under new command structure
128f58c502 re-enable repl
e71eba583e make load command own its path memory
9cb82e3180 remove unecessary code
Compare 5 commits »
luna pushed to declarative-commands at luna/scritcher 2020-06-02 01:14:31 +00:00
b00ab8e839 remove the big switch when printing commands
0b816a512e lang: remove unused declarations
Compare 2 commits »
luna pushed to declarative-commands at luna/scritcher 2020-06-02 01:06:35 +00:00
b0525f2386 add proper support on rotateCmd for lang.Command.Rotate
54919110a5 refactor: remove 'new' prefix from functions
76b353e593 remove code for old runner commands
Compare 3 commits »
luna created pull request luna/scritcher#14 2020-06-02 00:46:39 +00:00
Use comptime for fully declarative LV2 and Custom commands
luna pushed to declarative-commands at luna/scritcher 2020-06-02 00:41:51 +00:00
b238517b33 update symbols for Dyncomp
luna pushed to declarative-commands at luna/scritcher 2020-06-01 01:28:21 +00:00
36937a5fde remove ParamMap creation from runner
72379e63ee add support for more types on lv2 parameter structs
690ab89cfd allow any typed command to use lv2 param parse logic
30da41293a fix type defs for noise cmds
89afa8af10 convert from ParamMap to ducktyped param struct
Compare 5 commits »
luna pushed to declarative-commands at luna/scritcher 2020-06-01 00:55:57 +00:00
9801e303c0 flatten switch values
2b4f428890 fix typo
Compare 2 commits »
luna pushed to declarative-commands at luna/scritcher 2020-06-01 00:55:36 +00:00
83996b889f make rotate not be a typed command
10b2c69605 fix typos
303a40758d make custom plugins always receive ParamMap
1c1e525b1d add support for plugin command types
1fac8c7312 fix putting KV on a string
Compare 6 commits »
luna pushed to declarative-commands at luna/scritcher 2020-06-01 00:34:59 +00:00
e669b74ffb add CustomCommand function
ca751e58f7 add draft declarations for custom commands
82dc99d7d5 remove unecessary switch
d9358ed794 add lv2 parameter validation
8ce844ceed add validation for split/index args
Compare 5 commits »
luna commented on issue luna/scritcher#11 2020-05-31 21:41:11 +00:00
make lv2 commands fully declarative

I started working on this yesterday and I got good results. 99% of the LV2 commands work flawlessly.

There's also some un-needed repetition around things as Zig's comptime isn't perfect, and so the type system can't detect some things as comptime. That's fine. Better than before.

TODO:

  • dyncomp doesn't work because ratio isn't found in the plugin, what happened?
  • Custom commands.
luna pushed to declarative-commands at luna/scritcher 2020-05-31 21:30:48 +00:00
7543ecafaa remove unused blocks of code
325e7b1102 add support for the rest of lv2 commands
0de2d05fa3 fix detune command definition
3a7009f9bf convert more commands to new form
Compare 4 commits »
luna pushed to declarative-commands at luna/scritcher 2020-05-31 20:18:46 +00:00
c6c31f5a60 rename NewCommand to Command
8e0ebbe5e0 remove old Command struct
Compare 2 commits »