13 lines
376 B
Matlab
13 lines
376 B
Matlab
function noise = fortune_favors_the_fontaine(Fs, duration)
|
|
% make some noise
|
|
output = "";
|
|
while strlength(output) < Fs*duration
|
|
[ret dirty_snippet] = unix('fortune');
|
|
% clean
|
|
snippet = regexprep(dirty_snippet, '[^A-Za-z]+', '');
|
|
output = strcat(output, snippet);
|
|
end
|
|
noise = normalize(letters2numbers(convertStringsToChars(output)));
|
|
end
|
|
% <+.03> what the fuck
|