uploaded all materials
This commit is contained in:
12
hw6/feedback/fortune_favors_the_fontaine.m
Normal file
12
hw6/feedback/fortune_favors_the_fontaine.m
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user