torstenanders Posted December 29, 2016 Share Posted December 29, 2016 Is there a way a way to extend an existing library? For example, for a specific composition I may want to collect a library of rhythms, melodic fragments etc., to arrange and transform these later with existing library features. Is it possible to by and by extend a library so that instead of, say, defining (setf rhythm1 (length-divide 1 3 '(q))) I instead may write something like (setf (library 'new-piece 'rhythms 'rhythm1) (length-divide 1 3 '(q))) Asked differently: what is the internal data structure of the existing library feature(s)? Is it possible to get access to that data for user-defined functions etc.? Also, is it possible to export an existing library into a file? BTW: Why are all these quotes necessary in calls to functions like library and many others -- why is the function library not a macro instead (only at the top-most level of course as syntactic sugar, I am certainly not suggesting to have macros instead of functions in principle). Thank you very much! Best, Torsten Quote Link to comment Share on other sites More sharing options...
opmo Posted December 30, 2016 Share Posted December 30, 2016 In order to use libraries you must define first with DEF-LIBRARY It is possible to assemble a library and its identifiers using the function CREATE-LIBRARY Quote Link to comment Share on other sites More sharing options...
torstenanders Posted December 30, 2016 Author Share Posted December 30, 2016 Yes, I read that, but these functions all create libraries from scratch. Is there a way (planned) to extend a library? Thanks! Torsten Quote Link to comment Share on other sites More sharing options...
opmo Posted December 31, 2016 Share Posted December 31, 2016 I agree this would be useful indeed. Quote Link to comment Share on other sites More sharing options...
torstenanders Posted December 31, 2016 Author Share Posted December 31, 2016 Thanks! T Quote Link to comment Share on other sites More sharing options...
torstenanders Posted August 22, 2017 Author Share Posted August 22, 2017 >> Is there a way a way to extend an existing library? >> Also, is it possible to export an existing library into a file? > I agree this would be useful indeed. Sorry for following this up. Any plans to extend the existing library functionality to make libraries extendable and exportable? If not I am happy to roll my own (that should be easy enough :) Best, Torsten Quote Link to comment Share on other sites More sharing options...
opmo Posted August 24, 2017 Share Posted August 24, 2017 I am adding all the suggestions to our todo list. hujairi 1 Quote Link to comment Share on other sites More sharing options...
torstenanders Posted August 26, 2017 Author Share Posted August 26, 2017 Thanks! Torsten Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.