<div dir="ltr"><div>Yep. This is all I am looking for.<br></div>Thanks a mucho.<br><div class="gmail_extra"><br>Joe<br><br><div class="gmail_quote">On Sat, Nov 22, 2014 at 3:08 PM, Kjetil Matheussen <span dir="ltr"><<a href="mailto:k.s.matheussen@gmail.com" target="_blank">k.s.matheussen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I don't know if this is what you're asking about. but this is the</div><div>script used to convert scheme code into "#include"-able</div><div>c-code for the k_guile pd external:</div><a href="https://github.com/kmatheussen/k_guile/blob/master/gen_c_scheme.py" target="_blank">https://github.com/kmatheussen/k_guile/blob/master/gen_c_scheme.py</a><br><div><br></div><div>The output is used like this:</div><div><table><tbody><tr><td><span>char</span> *scheme_code =</td>
</tr>
<tr>
<td>#<span>include</span> <span><span>"scheme_code</span>_scm.txt<span>"<br><br></span></span></td></tr></tbody></table><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sat, Nov 22, 2014 at 8:40 PM, JV <span dir="ltr"><<a href="mailto:billbose@gmail.com" target="_blank">billbose@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><br></div>How do you embed a 'large' scheme program with s7 .<br></div>Do you run any macros before you compile the c code to do the escapes for the scheme text? (see below)<br></div>I will appreciate if i can get access to those macros.<br><div><div><div><div><br clear="all"><br>int main(int argc, char **argv)<br>{<br> char *scheme_program = "(define (hello src)"<br> "(display src))"<br> "(hello \"joe\n\")";<br> s7_scheme *s7;<br> s7 = s7_init();<br> s7_eval_c_string(s7, scheme_program);<br>}<span><font color="#888888"><br>-- <br><div>Joe<br></div>
</font></span></div></div></div></div></div>
<br></div></div>_______________________________________________<br>
Cmdist mailing list<br>
<a href="mailto:Cmdist@ccrma.stanford.edu" target="_blank">Cmdist@ccrma.stanford.edu</a><br>
<a href="http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist" target="_blank">http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><br></div>
</div></div>