Thanks for the post but I should add that I'm really new to Matlab and don't really know what I'm doing. Here's my note that I've synthesised:
close all; clear all;
rate=20000;
duration=4;
length=duration*rate;
t=linspace(0,duration,length);
A1=exp(-0.1*t)*1; A2=exp(-0.7*t)*0.907...
Guys,
I'm trying to implement an ADSR envelope to a piano note that I have synthesised. I basically just want to apply the envelope to the final signal 'y'.
Anyone done this before or have and code/ideas on how to get it to work?
Thanks in advance!
Another very basic question...
This should be very easy but I've been trying to get this to work all a day, and it's slowly driving me mad!
Basically I want a slider and an text box next to it that displays the value of the slider (1 - 6 steps).
I'm using this code for the callback part...
Thanks for the replys guys, it all seems good apart from obtaining p, the measured pressure. How can I get that from the .wav file? Is this just an average pressure for the entire duration of the file?
I guess using the 'wavread' function is going to be the best way get it into matlab, this...
Please bear in mind that I am a complete newbie to Matlab...
I need to find the Leq (equivalent continous noise level) of a .wav file using Matlab. I was wondering if anyone knows if this is a simple function within one of the toolboxes or even if there is actually a way to implement this...