function [out] = trinote (len, note) %trinote % out = trinote (len, note) bpm = 120; nscale = 0; if (evalin ('base', 'exist(''params'')')) params = evalin ('base', 'params'); bpm = params.bpm; samprate = params.samprate; nscale = params.nscale; end freq = (2 ^ (((note + nscale) - 69) / 12) * 440); secs = len * (4 * (1 / (bpm / 60))); tout = trifreq (secs, freq); out = zeros (2, (length (tout))); out(1,:) = tout; out(2,:) = tout;