tildebyte / ChucK-plugin-for-ST3

A Sublime Text 3 plugin for ChucK (http://chuck.cs.princeton.edu).
19 stars 2 forks source link

what to do when wav_writer_wgain.ck is not present in the project folder #45

Closed zeffii closed 10 years ago

zeffii commented 10 years ago

I prefer not to have a zillion wav_writer_wgain.ck scattered around the place, but the paths thing might still be a real problem, or I would stick it in the same directory as the chuck binary and use the full path to it. I may test this first before coding the ugly hack of writing a .ck to the project folder.

zeffii commented 10 years ago

OK, quick test shows that in windows

# cc = ["wav_writer_wgain.ck", str(song_duration), wav_name, str(max_amp)]
cc = ["C:/wherever/wav_writer_wgain.ck", str(song_duration), wav_name, str(max_amp)]

works. So it might be most convenient to get the chuck plugin directory automagically, and stick the .ck in a subfolder because we can. May have time to do this tomorrow.

zeffii commented 10 years ago

done. but some testing would be nice on osx :)

tildebyte commented 10 years ago

I'll take a look tomorrow

zeffii commented 10 years ago

its a new sublime setting entry now, give the path of the directory containing the wav_writer_wgain.ck https://github.com/tildebyte/ChucK-plugin-for-ST3/blob/master/ChucK.sublime-settings#L23