On Wed, 14 Jun 2000, Daniel Barna wrote:

> There are pieces, in which a certain rhythm is repeated several times.
> For example 
> [ g8 r16. g32 ][  g'8 r16. g32 ][ fis8 r16. fis32][ f8 r16. f32] 
> ... and so on, for about 50 bars. It is exhausting to type so much,
> and quite error prone. It would be very useful to implement macros, like
> this:
> rhythm1(x,y) = [ x8 r16. y32 ]      % if the two notes are different
> rhythm1(x)   = [ x8 r16. x32 ]      %     ... or if they are the same
> and you could say simply
> \rhythm1(g) \rhythm1(g',g) \rhythm1(fis) ... etc
> (this is a BAD example, the comma used for the separation of arguments
> coincides with the octave changing mark. This is only a demonstration of
> an idea)
> 

This was already discussed. m4(1) or cpp(1) or cc(1) with the appropriate
flags are your friends to get macros.

harti
-- 
harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private
              [EMAIL PROTECTED], [EMAIL PROTECTED]

Reply via email to