scritcher/doc/README.md

46 lines
1.2 KiB
Markdown
Raw Normal View History

2019-06-07 02:45:54 +00:00
scritcher command reference
---
scritcher scripts are shell-like commands separated by a semicolon.
## parameters of the arg type
some commands allow a `:N` syntax where N is an integer to use a given
argument when `scritcher` is called. so, for example, calling a script:
```
2019-07-09 21:51:00 +00:00
load :0;
2019-06-07 02:45:54 +00:00
showpath;
```
and then doing `scritcher path/to/script.scri arg` will print `arg` on the
screen and then exit.
2019-07-09 21:51:00 +00:00
## split and index arguments
plugin commands have a split and an index argument so that you can select
where in the file you want the plugin to be ran.
so, if you did `plugin 3 1...`, it would split the file in 3, then get the
part that is of index 1 (starting at 0).
2019-06-07 02:45:54 +00:00
## `load path_or_arg`
2019-07-09 21:51:00 +00:00
Load a file into memory. The file MUST end with the bmp extension (and so MUST
be a bmp. feel free to put other files, no warranties are given.)
## `amp split index gain`
Run the eg-amp plugin over the given slice of the file.
2019-06-07 02:45:54 +00:00
2019-07-09 21:51:00 +00:00
## TODO `echo split index delay`
2019-06-07 02:45:54 +00:00
Run an echo filter on the given loaded file.
## `quicksave`
2019-06-07 02:45:54 +00:00
Save the file on the same directory of the file specified by `load`, but
with a suffix on the filename (before extension).
Doing consecutive `quicksave`s will not overwrite any files, the suffixes will
just be different.