On Fri, Mar 11, 2011 at 10:56 AM, Anton Kholomiov <[email protected]> wrote: > I think deep reverse example doesn't break music-signal barrier. > For music structure you can make function > > reverseMusic :: Music a -> Music a > > And if you are going to reverse signals you are going to write function for > signals > > reverseSignal :: Signal -> Signal > > and then if 'Music' is 'Functor' > > reverseDeep :: Music Signal -> Music Signal > reverseDeep = fmap reverseSignal . reverseMusic
Well, it's hard to say without knowing how Music and Signal combine. If I assume there is some "instrument" abstraction that marks the boundary, then you can use this to express a score with reversed instruments. What if you want to reverse a phrase? And how would this work with reverb, which is usually applied to phrases or entire scores? _______________________________________________ haskell-art mailing list [email protected] http://lists.lurk.org/mailman/listinfo/haskell-art
