Despite what others have said, I'm going to chime in and say that I
think an immutable hierarchy is going to be awkward for the use case
you describe.
In your example, notes are buried fairly deep in a hierarchy. Now if
you always tend to make manipulations by starting from the root score
node an
Hi,
Am 21.12.2009 um 22:09 schrieb PM:
> I've mocked it up before using structmaps, but I get stuck when it
> comes to doing all this with immutable structures. Immutability is no
> problem for a system like Lilypond where the score data is fixed when
> the program runs, but in a system where so
Hello,
On Mon, Dec 21, 2009 at 11:09 PM, PM wrote:
> I'm a new Clojure user. I've been working my way through SICP and the
> videos that accompany it, and I've also read the Clojure book. I
> already do a lot of work with a music notation library (JMSL) in Java,
> and I'd like to see if I could
HI,
You could look at the Zippers library http://clojure.org/other_libraries
which is useful for editing nested structures in a functional way...
or perhaps you might use one of the Clojure reference types to hold
the notes?
Cheers,
James
On Dec 22, 8:09 am, PM wrote:
> I'm a new Clojure user.
I'm a new Clojure user. I've been working my way through SICP and the
videos that accompany it, and I've also read the Clojure book. I
already do a lot of work with a music notation library (JMSL) in Java,
and I'd like to see if I could do some tasks more simply in Clojure.
One of the issues I r