Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save petrkucerak/2792bd511abfebf41cac91d0b39953d7 to your computer and use it in GitHub Desktop.
Save petrkucerak/2792bd511abfebf41cac91d0b39953d7 to your computer and use it in GitHub Desktop.
data = load('To specify file path');
plot(data);
sound(data(:,1) - mean(data(:,1)),10000); % To specify custom Sample Rate, (e.g. 10000)
sound(data(:,2) - mean(data(:,2)),10000); % To specify custom Sample Rate, (e.g. 10000)
sound(data(:,3) - mean(data(:,3)),10000); % To specify custom Sample Rate, (e.g. 10000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment