for each   do
if   () ≤ HMCR  then
% memory consideration
if  rand() ≤ PAR   then
   rand() ×  % pitch adjustment
  if  
   
  elseif
   
  end
     end
else
rand() ×  % random selection
end
end
Algorithm 1