No description
Find a file
2024-10-09 13:34:20 -04:00
clap-main clean up files and set up nimble 2024-05-16 13:33:21 -04:00
example_bundle.clap/Contents works now, fixes name size used instead of path size, adds empty bundle 2024-04-13 02:43:48 -04:00
htmldocs add generated documentation and docs info to readme 2024-05-20 12:46:59 -04:00
src process/audiobuffer doc comments 2024-10-09 13:34:20 -04:00
.gitattributes remove html from lang bar? 2024-07-06 13:28:11 -04:00
.gitignore clean up files and set up nimble 2024-05-16 13:33:21 -04:00
clap.nimble oops, bump version 2024-05-25 13:49:13 -04:00
example_plugin.nim move files around in prep for nicer api 2024-04-16 19:46:28 -04:00
LICENSE.txt Create LICENSE.txt 2024-05-16 15:03:20 -04:00
README.md remove commented out T suffix types 2024-10-09 03:24:55 -04:00

nim-clap

clap plugin api in nim. currently unfinished but includes all the basics

install with nimble install clap

i have moved the plugin framework which abstracts over the raw api to a new repo, offbeat.


tested with version 1.2, hash df8f16c. later versions may not work, try this version if you have any issues

has futhark set up but commented out. to use, put clap repo files in clap-main folder, not as a folder in that folder

supported extensions:

  • audio ports
  • note ports
  • parameters
  • latency
  • logging
  • state
  • gui
  • timers

known missing api sections (PRs welcome):

  • transport events
  • thread checking (basically empty file)
  • definitely others

building

to build, run the following command

nim compile --out:"example" --app:lib --threads:on ".../nim_clap/example.nim"

or for debugging

nim compile --verbosity:1 --hints:off --out:"example" --app:lib --forceBuild
--threads:on --lineDir:on --lineTrace:on --debuginfo:on ".../nim_clap/example.nim"

mac

then copy the binary (and .dSYM if debugging) into the provided example.clap bundle for macos. if you change the filename, you will need to change the bundle plist to have the updated name.

other platforms

i am not sure what is needed for windows or linux, but reaper at least doesn't care if it is bundled or not. i simply copied and modified the surge bundle.

documentation

to view existing generated documentation

to generate documentation

  • run nim doc --project --index:on --outdir:htmldocs src/clap.nim