Using matlab Compose a short piece of electronic music. The piece must conform t
ID: 2085597 • Letter: U
Question
Using matlab
Compose a short piece of electronic music. The piece must conform to the following rules (and no amount of complaining that "music doesn't have rules, man" will change that): It must be between 10 and 15 seconds long. It must be sampled at the rate Fs = 8192. It must incorporate at least three of the built-in sounds handel gong laughter, train, chirp and splat. These can be incorporated in part, in full, or repeated several times in succession. It must include sounds playing at the same time as others. It may include pure notes created using sine waves, but this is optional. It may include piano notes, but this is harder than it might seem: they will need to be resampled to match the sampling rate of 8192. Only attempt this if you want a challenge. No other sounds may be included in the piece. So no sampling your own voice, no downloading other clips, etc. The final piece must be represented by a single array y, which is played with a single call of sound or soundsc The code you write below must construct and play your piece from an empty workspace (so load any samples you use).Explanation / Answer
close all,
clear all,
clc,
SoundSignal = [];
load splat;
S1=y;
load handel;
S2=y;
load chirp;
S3=y;
load gong;
S5=y;
load laughter;
S4=y;
load train;
S6=y;
SoundSignal = cat(1,S1,S2,S3,S4,S5,S6);
length(SoundSignal)
sound(SoundSignal);
figure, plot(SoundSignal);
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.