function instclass = str2inst(str)
% instclass = str2inst(str)
% str can be 'son', 'nb', 'bb', 'os'
% instclass is  son, nb, bb, os
% (there is probably a better way to do this)


if strmatch(str, 'son')
   instclass = son;
elseif strmatch(str, 'nb')
   instclass = nb;
elseif strmatch(str, 'bb')
   instclass = bb;
elseif strmatch(str, 'os')
   instclass = os;
else
   fprintf('cannot deal with string representing instrument class:\mn')
   str
   return
end