ああ、そうか。
bufferじゃなくてIDを置き換えればいいんだ。
#define id 2
repeat 3
buffer id
id=id+1
loop