- #1
Bassalisk
- 947
- 2
So I was playing in MATLAB with signals.
I recorded myself saying some sample sentence. I imported it as a vector (it was mono), and reproduced it and it worked.
But then I told matlab, to skip every other element.
Basically I wrote this:
soundsc(a(1:2:end),44100).
what I EXPECTED was to hear some snipping. But what I heard was my voice going really fast and ending after 4 seconds. ( original clip was 8 seconds).
Why?
If MATLAB skipped every other sample, and we still kept the period(frequency) the same, why did it make the clip shorter?
I mean yes, I have two times less samples to reproduce than in original clip. But shouldn't that still be distributed throughout those 8 seconds?
Shouldn't I just end up with less "quality" voice?
I didn't tell him to delete every 2 samples, and the compress, I only told him to skip every other one.
Is MATLAB "seeing" this command (1:2:end) as a new vector essentially, which is then twice as short, and then it would sound faster?
I recorded myself saying some sample sentence. I imported it as a vector (it was mono), and reproduced it and it worked.
But then I told matlab, to skip every other element.
Basically I wrote this:
soundsc(a(1:2:end),44100).
what I EXPECTED was to hear some snipping. But what I heard was my voice going really fast and ending after 4 seconds. ( original clip was 8 seconds).
Why?
If MATLAB skipped every other sample, and we still kept the period(frequency) the same, why did it make the clip shorter?
I mean yes, I have two times less samples to reproduce than in original clip. But shouldn't that still be distributed throughout those 8 seconds?
Shouldn't I just end up with less "quality" voice?
I didn't tell him to delete every 2 samples, and the compress, I only told him to skip every other one.
Is MATLAB "seeing" this command (1:2:end) as a new vector essentially, which is then twice as short, and then it would sound faster?