Csound Csound-dev Csound-tekno Search About

[Csnd] subtract frequencies

Date2013-09-14 07:36
FromEnrico Francioni
Subject[Csnd] subtract frequencies
Hi,

I would like to subtract the frequencies of a melodic line in an audio file;
I know I could do it with a filter, but I ask for help from someone who has
already done this thing.

thanks,
enrico



--
View this message in context: http://csound.1045644.n5.nabble.com/subtract-frequencies-tp5727601.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-09-14 09:55
Fromzappfinger
Subject[Csnd] Re: subtract frequencies
You could use pvspitch for that, but it is very hard if the audio file
contains other frequencies than the one you are interested in. So if the
audio file only contains the melody, it is possible.
Our ears/brains do a wonderful job in isolating a single instrument, but
this is very hard for software.

Richard 




--
View this message in context: http://csound.1045644.n5.nabble.com/subtract-frequencies-tp5727601p5727602.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-09-14 14:01
FromEnrico Francioni
Subject[Csnd] Re: subtract frequencies
I could say the same to the filter which frequencies (distributed over time)
must subtract ...
as in the example:




nchnls	=	1
0dbfs		=	1

gidur		=	2

;================================

instr 1	; original signal (white-noise+melody)

arand 	rand 	.8
ia	=	.001
kfreq		linseg	440, gidur, 440, ia, 330, gidur, 330, ia, 560, gidur, 560, ia,
440, gidur-(ia*3), 440
aoscil	oscil	.8, kfreq, 1

gaout sum 		arand, aoscil

out gaout

endin

;================================

instr 2	; subtract melody

arand 	rand 	.8
ia	=	.001
kfreq		linseg	440, gidur, 440, ia, 330, gidur, 330, ia, 560, gidur, 560, ia,
440, gidur-(ia*3), 440
aoscil	oscil	.8, kfreq, 1

gaout sum 		arand, aoscil

gaout butterbr	gaout, kfreq, 50

out gaout

endin

;================================



f0 99999
f1 0 512 10 1

i1	0	8
i2	9	8




Version: 3
Render: Real
Ask: Yes
Functions: ioObject
Listing: ioObject
WindowBounds: 43 44 718 648
CurrentView: orc
IOViewEdit: Off
Options: -b1024 -A -s -m167 





--
View this message in context: http://csound.1045644.n5.nabble.com/subtract-frequencies-tp5727601p5727604.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-10-12 07:40
FromEnrico Francioni
Subject[Csnd] Re: subtract frequencies
But the project I have in mind is to succeed (first) to extrapolate the
values ​​frequencial the melody (in real time ...) and then (after) pass it
to a filter that removes them from the audio file.

e



--
View this message in context: http://csound.1045644.n5.nabble.com/subtract-frequencies-tp5727601p5728258.html
Sent from the Csound - General mailing list archive at Nabble.com.