alda

WE'VE MOVED! Join us at: http://slack.alda.io
dave 2015-09-20T15:59:27.000063Z

i had a shower-thought today that since uber-jarring the whole project would mean including fluid-r3 as a mandatory dependency, the resulting binary file is going to be pretty big, probably too big to host the file on github

dave 2015-09-20T16:00:02.000064Z

i suppose we could host it on bitbucket instead

dave 2015-09-20T16:00:15.000065Z

where do people host binary files, if not on github?

dave 2015-09-20T16:01:23.000066Z

probably good for it not to be in the same git repo as the rest of the alda codebase, anyway -- the git repo would take up a huge amount of hard drive space

dave 2015-09-20T16:01:42.000067Z

especially with different versions of the binary at different points in history

dave 2015-09-20T16:05:08.000069Z

https://github.com/jedbrown/git-fat might help

crisptrutski 2015-09-20T19:38:43.000071Z

you’d probably want to distribute it separately to final binary - so if you have an old version + sound font you don’t need to download again when upgrading

crisptrutski 2015-09-20T19:39:17.000072Z

downloading a file and adding it to the classpath could just be bash logic

dave 2015-09-20T21:00:16.000073Z

@crisptrutski: hmm... i guess we could circumvent the whole maven dependency business and just wget the soundfont via bash

dave 2015-09-20T21:00:32.000074Z

and put it in ~/.soundfonts or something

dave 2015-09-20T21:00:51.000075Z

is that what you were thinking?

crisptrutski 2015-09-20T21:01:06.000076Z

pretty much

crisptrutski 2015-09-20T21:01:33.000077Z

might be a bad idea :simple_smile:

dave 2015-09-20T21:02:22.000078Z

as far as i can tell, i think it would work

dave 2015-09-20T21:02:44.000079Z

it would be useful to have the soundfont path be configurable

dave 2015-09-20T21:02:58.000080Z

maybe the install/setup process could be something like:

dave 2015-09-20T21:03:07.000081Z

- download the alda binary, put it in your $PATH

dave 2015-09-20T21:03:15.000082Z

- run alda setup

dave 2015-09-20T21:03:28.000083Z

- this checks whether you have an alda config file, and if not, starts one for you

dave 2015-09-20T21:04:00.000084Z

- asks you where you want to store your soundfonts, default to ~/.soundfonts or whatever

dave 2015-09-20T21:04:20.000085Z

- asks you if you want to fetch FluidR3 and use that

dave 2015-09-20T21:04:49.000086Z

and if the user skips alda setup, it will just use the stock JVM soundfont by default

crisptrutski 2015-09-20T21:04:58.000087Z

sounds good

crisptrutski 2015-09-20T21:05:04.000088Z

could even check ~/.soundfonts by default

crisptrutski 2015-09-20T21:05:29.000089Z

maybe use reflection to check if fluidr3 is present on classpath, and make it default only then?

crisptrutski 2015-09-20T21:05:41.000090Z

so by “check” i just mean add to classpath

dave 2015-09-20T21:06:07.000091Z

i don't really fully understand how the classpath works... how would one add FluidR3 to it?

dave 2015-09-20T21:07:17.000093Z

if using boot to run alda (either via the current script, or via boot alda -x ...), you can add it to the dependencies in build.boot or as a CLI parameter to boot

dave 2015-09-20T21:07:23.000094Z

but what if you're running alda as a standalone binary?

crisptrutski 2015-09-20T21:08:16.000095Z

so boot handles downloading/locating deps and adding to classpath, but you can just add known classpaths straight if you’re running a jar with java

dave 2015-09-20T21:08:48.000097Z

ohh, i see

crisptrutski 2015-09-20T21:09:20.000098Z

java -classpath ~/.soundfonts -jar alda.jar i think

dave 2015-09-20T21:09:44.000100Z

awesome, i didn't know you could do that

crisptrutski 2015-09-20T21:12:59.000101Z

also coming to java via clojure for the most part

crisptrutski 2015-09-20T21:13:23.000102Z

learning stuff about this “low level” jvm layer too all the time

crisptrutski 2015-09-20T21:13:51.000103Z

but somehow i can still pass putting “full stack” on my CV (oh the farce :simple_smile:)

dave 2015-09-20T21:18:35.000106Z

gtg, back later tonight probably!

crisptrutski 2015-09-20T21:26:01.000107Z

laters! enjoy the remains of the weekend

crisptrutski 2015-09-20T21:26:08.000108Z

later here already.. i can smell the monday