Re: Save map contentns to external file?
Thanks that gives me a few options. I am leaning towards the latter approach of registering the functions somewhere and then serializing the information needed to retrieve them. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Save map contentns to external file?
Thanks, edn looks like the way to go but your example is not quite working. The issue appears to be with pr. (defn foo [] 'foo) (def data {0 foo, 1 '[a b c]}) (spit filename (pr data)) First pr prints the data to *out* but then returns nil so spit is writing an empty file. Second despite the documentation that pr output is a readable format, when I attempt to read it I get a runtime exception of "Unreadable form" (pr foo) --> #nil # --> RuntimeException Unreadable form clojure.lang.Util.runtimeException (Util.java:219) Any help greatly appreciated. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Save map contentns to external file?
Hi I am developing an Overtone MIDI application and wish to save/read the state of a map to an external file. The map keys are always integers, specifically MIDI program numbers. The map values however have one of two forms. They are either explicit association list of key/value pairs or functions which return assoc list. I could handle the task if the map values where always explicit list. My real problem is how do I write out a Clojure function to an external file and later reconstruct it? Ideally the file would be pure text but that's not an absolute requirement. Are there any standard methods for doing such a thing? Thanks -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ANN] Cadejo, A MIDI management tool for Overtone
Hi everyone, I have just released "Cadejo", a MIDI management tool for Overtone. It forms an infrastructure which defines how MIDI devices communicate with Overtone instruments. The release also includes 4 full-featured instruments. 1) ALGO, an 8-operator FM synth 2) Alias, a subtractive synth with extensive modulation possibilities 3) MASA, an organ loosely based on the Hammond B3 4) Combo, a simpler organ primarily used for illustration. All instruments have program banks with a few pre-defined "patches" accessible by MIDI program change. MIDI program 127 generates random patch data. Cadejo supports all MIDI channel messages with the exception of polyphonic after-touch. Some of it's feature are: - Keyboard layering and split points - Tuning tables for alternate intonation. - Velocity, pressure and controller mapping functions. - Separate poly and monophonic response modes. - Program banks with the ability to execute arbitrary Clojure functions in response to MIDI program change events. An introductory video may be viewed at https://www.youtube.com/watch?v=GgXCAMs2EQY The project may be found on git hub at https://github.com/plewto/Cadejo/ Thanks -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.