Timeline for Playing sound in left and right speaker alternatively and storing output in array in matlab
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 15, 2014 at 13:51 | comment | added | jojeck♦ |
@Asau7610: size(sound_array) will return dimensions of matrix, refer to: size
|
|
May 15, 2014 at 13:46 | comment | added | Asau7610 | That is playing the way I need it to @jojek but trying to figure out how to show the output array just to make sure the data is being stored the right way with all 400 samples for each | |
May 15, 2014 at 13:32 | comment | added | Asau7610 | oh ok I didn't see the new post. I will try now @jojek | |
May 15, 2014 at 13:28 | comment | added | jojeck♦ | @Asau7610: Have you even tried to apply the code I posted? Please see the updated link. You have three variables. One with both channels at the same time and two with signal played at left and right channel - that's what you want. | |
May 15, 2014 at 13:28 | history | edited | jojeck♦ | CC BY-SA 3.0 |
added 519 characters in body
|
May 15, 2014 at 13:24 | comment | added | Asau7610 | oh ok I semi understand what your saying...this is my first real time using matlab and just doing it for a grad project. So stil kind of confused on how I would do the variables in the code. | |
May 15, 2014 at 13:22 | comment | added | jojeck♦ |
@Asau7610: You must provide array with one column full of zeros in order to play it back in one speaker only. Otherwise mono recording is played on both channels. Create such variables and do your sound(sound_L, Fs); which will play on left speaker. You have three variables then. If you want that in one only, then I suggest to use some cell array.
|
|
May 15, 2014 at 13:17 | comment | added | Asau7610 | oh ok @jojek but how would i put them in an output array so that say i have 400 samples that are active for the left then switch to the right doing the same making the left the silent channel. | |
May 15, 2014 at 13:15 | history | answered | jojeck♦ | CC BY-SA 3.0 |