This user-fun reads the value of the "freq" field and adds 3 other components with frequency equal to freq x 2, freq x 3, freq x 4, but the resulting data are wrong.
This method is uncorrect. If you read via the textfile the resulting data you will find as result of the computation :
Now have a close look to how user-fun works reading the lambda patch from left to right.
To avoid to change the starting data make always a copy of it with clone and add new components with add-comp.
This user-fun adds another component randomly chosen among the others.
This user-fun adds to each component a new one with frequency equal to the frequency of the next following divided by two, except the last component, which take the frequency of the first one.