hello tom

> In a way, the solution I arrived on is conceptually simpler,
> since it's just labels: you can use whichever ones you like.

yes.  still there's nice aspects to using records that i guess
are lost with this approach?

  let o = sinOsc {freq = lfSaw {freq = 0.4} * 24 + 200}
  in o + o {freq = freq o * lfSaw {freq = 0.1}}

(for non-haskellers reading along, ie. julian, "freq o" is the
frequency of o, and "o {freq = ...}" is a variant of o where the
frequency is "...". of course o is a variant of sinOsc in exactly
the same way...)

best,
rohan

-- 

Read the whole topic here: Haskell Art:
http://lurk.org/r/topic/4z5GFidD9x7cFW8lZSd7fA

To leave Haskell Art, email haskell-...@group.lurk.org with the following email 
subject: unsubscribe

Reply via email to