Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

MATLAB Simulink Help!

Status
Not open for further replies.

the_risk_master

Advanced Member level 2
Joined
Aug 12, 2005
Messages
662
Helped
79
Reputation
158
Reaction score
19
Trophy points
1,298
Location
UE+MIT, Philippines, (14°N , 120°E )
Activity points
5,527
matlab simulink help

Hi anyone, everyone,

Please, anyone who can help me or just a hint (that would be fine too) to do these in MATLAB simulink:

I wanted to read an audio music file, and then I want to seperate the guitar or vocal track of the audio file. (so the audio output, there would be no guitar or vocal output).


Please help, I need it badly I have poor knowledge at DSP (im sorry) But this one would help in my design project.

THanks in advance.
 

dspman

Member level 2
Joined
Mar 14, 2004
Messages
42
Helped
5
Reputation
10
Reaction score
1
Trophy points
1,288
Location
...
Activity points
336
separate wave component matlab

hi,

you question is not clear.
you have to explane more about your problem.
if your problem is with programming in simulink, then you can use matlab commands in simulink too but you have to note some points.
but if the problem is with the algorithm, you have to analyse your signal first. you may find out that the signals you mentioned are seperatable in frequency domain using two simple filters, and if not, you may have to use more advanced methods as "blind source seperation" methods.

yours.
but if your
 

the_risk_master

Advanced Member level 2
Joined
Aug 12, 2005
Messages
662
Helped
79
Reputation
158
Reaction score
19
Trophy points
1,298
Location
UE+MIT, Philippines, (14°N , 120°E )
Activity points
5,527
example simulink lowpass filter

Hi,

First and foremost, I would like to thank you DSPman.

My problem is here:

I want to load a digital music in Simulink (Im familiar with simulink blocksets)
the digital music for example an mp3 file format contains vocal tracks. What I want to do is to remove the vocal tracks from the original mp3 file.

Q: What DSP blockset in simulink should I use and configure as block diagram for this simulation?
 

leoren_tm

Advanced Member level 1
Joined
Dec 19, 2005
Messages
466
Helped
11
Reputation
22
Reaction score
7
Trophy points
1,298
Activity points
4,305
simulink sonido stereo

tol....
try analysing the file on GOLDWAVE...
then on file save as...an matlab file...
you can see the sampling time and some data..maybe it would help you
TC
 

pyrite

Member level 2
Joined
Aug 9, 2004
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
0
goldwave, matlab

As others mentioned, you need to analyze the audio data first.
But I doubt it will work because the frequency range of the vocal and guitar are overlapped so it will be hard to filter it out.
 

leoren_tm

Advanced Member level 1
Joined
Dec 19, 2005
Messages
466
Helped
11
Reputation
22
Reaction score
7
Trophy points
1,298
Activity points
4,305
how can i read song im matlab

huh????
some of the audio encoding, separate vocal from other instruments...
 

kamalkgarg

Newbie level 5
Joined
Apr 8, 2006
Messages
10
Helped
2
Reputation
4
Reaction score
0
Trophy points
1,281
Activity points
1,408
simulink music

I hope this can only be done if the spectrum contained by vocal & guitar. So if you are able to find the band occupied by the two then you can use filter design toolbox aviable in the matlab to filter out any of the two.
 

leoren_tm

Advanced Member level 1
Joined
Dec 19, 2005
Messages
466
Helped
11
Reputation
22
Reaction score
7
Trophy points
1,298
Activity points
4,305
forum matlab pure simulink or s-function

i mean...some encoding techque use, they separate the components..
vocal are separated from other instruments
 

ionp

Member level 3
Joined
May 26, 2006
Messages
66
Helped
8
Reputation
16
Reaction score
4
Trophy points
1,288
Location
USA
Activity points
1,780
simulink musical instrument

Often, vocals are shared between the stereo channels with equal amplitude, and present an audio image in the center. Instruments, on the other hand, often have an audio image to the left or right and have unequal amplitudes on each channel. If this is the case, vocals may be largely removed by taking the difference between the two channels.
 

leoren_tm

Advanced Member level 1
Joined
Dec 19, 2005
Messages
466
Helped
11
Reputation
22
Reaction score
7
Trophy points
1,298
Activity points
4,305
mp3 simulink

his problem was about guiter and vocal, obviosly guitar are high freq while vocal are low.....simply use a lowpass filter, but ofcourse this would not give a desiarable output, but i think it is the only way to do it....
use some function on matlab about filter.....cheby1,cheby2, butterworth, and other some filter that the matlab has...

Added after 3 minutes:

to risk master
try using goldwave, there you'l find result on filtering signal's
 

Element_115

Advanced Member level 2
Joined
Mar 23, 2002
Messages
509
Helped
72
Reputation
144
Reaction score
43
Trophy points
1,308
Activity points
3,767
matlab audio filtering out instruments

I'm pretty sure this can't be done, or else it would have taken over the Karaoke
industry. If the originals music file was already divided in to separate tracks
then you could go select that individual track. The best you can do is filter the
different frequency bands. But even this is not too good because each instrument
can have multiple octave. So if you filter the Low end you can get most of the
Bass Guitar and Bass drum out of song, but you will also cut some Vocals and Guit.
And most instruments use 700Hz - 1KHz.

The only way to do this with DSP is to first know what frequenies (ie the Vocal line)
you want to take out are and subtract it from the music file. I asked this same
question to my Prof in a DSP class, he said you can't do it.

Cheers
 

Robinenemy

Advanced Member level 4
Joined
Jul 10, 2006
Messages
110
Helped
26
Reputation
52
Reaction score
11
Trophy points
1,298
Activity points
1,916
use matlab to remove vocals in mp3

I think this can be done but that will not involve just Simulink
but also other toolboxes in Matlab like fuzzy/Neural etc.

Again now when we get the freq spectrum of a Song
We have vocal + Music(Guitar Drums etc)
So we have to remove(I would rather use the word reduce) the freq components of the Music part so

we need to train our Neural network for Vocal songs(suppose 10)
and then vocal+Music songs to identify Pure Vocal components as "Solution"
and Music as "No Soultion"

If properly done this could reduce the components of music
and other methods may be applied to refine it further.

Regards

Robin
 

leoren_tm

Advanced Member level 1
Joined
Dec 19, 2005
Messages
466
Helped
11
Reputation
22
Reaction score
7
Trophy points
1,298
Activity points
4,305
cheby2 function matlab

IT CAN BE DONE AS I SAID!!!!
but the result would not be good!!!!
this is because not all frequcy band will represented by the vocal or by the guitar but, some of it would be of combination!!!!
as i said...this should use filter toolbox, which cannot be done by a simulink only,...
 

Element_115

Advanced Member level 2
Joined
Mar 23, 2002
Messages
509
Helped
72
Reputation
144
Reaction score
43
Trophy points
1,308
Activity points
3,767
low pass filter effect on mp3 files in matlab

If you want to TRULY separate instruments, Voice etc... That can not be done, or
I have not seen any company/product that does so.

If you want to filter out a single instrument you can try, but you will not be able to
"completely" Isolate it.

I have used Cool Edit/Adobe Audition to do this and it helps but it does not completly
Isolate an Instrument. But I'm not a Pro either.

Good luck
 

leoren_tm

Advanced Member level 1
Joined
Dec 19, 2005
Messages
466
Helped
11
Reputation
22
Reaction score
7
Trophy points
1,298
Activity points
4,305
separate voice from song in matlab

yha...try using goldwave, you can easily chose a cut-off frequency for your filter
 

rsrinivas

Advanced Member level 1
Joined
Oct 10, 2006
Messages
415
Helped
50
Reputation
100
Reaction score
12
Trophy points
1,298
Location
bengalooru
Activity points
3,704
filter out instruments matlab

Hi
Wat i think is an MP3 is an encoded one and it may alter the properties of the original signal so wat we may be trying to do may affect other frequency components.
try using wav format .It may work.Notch filters would be better than banpass filters.
i am not sure on this.
 

leoren_tm

Advanced Member level 1
Joined
Dec 19, 2005
Messages
466
Helped
11
Reputation
22
Reaction score
7
Trophy points
1,298
Activity points
4,305
simulink help

wav file can be created by goldwave, and it can be analys on matlab...
bandpass filter are for a certain range of frequency, while nocth filters are for specific frq therefore no point of comparison..:)
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top