On Sun, 15 Nov 2009, Rohan Drape wrote:

let { n = lpf (brownNoise 'α' AR) f * m + a
   ; ff = onePole (brownNoise 'β' AR) 0.99 }
in rhpf n ff 0.03 * g

Why not

however this has the obvious drawback of making graphs non-composable
when abstracted without explicitly 'composing' identifiers, ie.

mk id f m a g =
 let { n = lpf (brownNoise (id `mappend` 'α') AR) f * m + a
     ; ff = onePole (brownNoise (id `mappend` 'β') AR) 0.99 }
 in rhpf n ff 0.03 * g


... and then you define a monad in order to support generation of id's using mappend and then you end up with what you already have. :-)
_______________________________________________
haskell-art mailing list
[email protected]
http://lists.lurk.org/mailman/listinfo/haskell-art

Reply via email to