How to generate a song on Matlab?
51 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Richa Chaturvedi
el 19 de Dic. de 2016
Respondida: Micah Audrey
el 26 de En. de 2024
I have to make a song on Matlab and then set up sine waves that correspond to the notes on the scale. The notes are CFDGCEAmCFGC. can someone help me with this?
0 comentarios
Respuesta aceptada
David Barry
el 19 de Dic. de 2016
Here's an example to get you started. 5 seconds of middle C.
fs = 1e4; % sampling frequency
t = 1:1/fs:5; % time signal
freq = 261.6; % note frequency in Hz (middle C)
y = sin(2*pi*freq*t); % create sine wave
player = audioplayer(y, fs); % create audio player object
play(player); % play the sound
Más respuestas (2)
zeeshan ali
el 1 de Mzo. de 2020
fs = 1e4; % sampling frequency
t = 1:1/fs:5; % time signal
freq = 261.6; % note frequency in Hz (middle C)
y = sin(2*pi*freq*t); % create sine wave
player = audioplayer(y, fs); % create audio player object
play(player); % play the sound
0 comentarios
Micah Audrey
el 26 de En. de 2024
CAN SOMEONE REPLICATE THE SONG KISS THE RAIN USING MATLAB PLS
0 comentarios
Ver también
Categorías
Más información sobre Audio I/O and Waveform Generation en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!