Csound Csound-dev Csound-tekno Search About

How can I manipulate input signal?

Date2006-02-24 06:53
From"Chaochi Chang"
SubjectHow can I manipulate input signal?
AttachmentsNone  

Date2006-02-24 08:47
From"Steven Yi"
SubjectRe: How can I manipulate input signal?
AttachmentsNone  

Date2006-02-24 13:55
FromMitchell Turner
SubjectRe: How can I manipulate input signal?
Chaochi,
Here is a very simple CSD file that shows a simple manipulation of  
the input signal using a comb filter (more like a delay here).  The  
flags that I use are in the  block at the top.
Hope this is helpful,
Mitch




-odac -iadc --midi-device=0 -m0 -d


sr = 44100
kr	=	4410
ksmps = 10
nchnls = 2

instr 1
	;.........	Live input signal
	aL, aR	ins

	;.........	Comb Filter the live signal
	krvbtime 	= 10			; in seconds (length of reverb time)
	ilptimeL		= 1				; in seconds (echo density)
	ilptimeR		= .75			; in seconds (echo density)
	awetL		comb	aL, krvbtime, ilptimeL		; filter the Left channel
	awetR		comb	aR, krvbtime, ilptimeR		; filter the Right channel

	;.........	Mix the Dry and Wet signals
	kmixlevel	= .3		; should be a number from 0 to 1, where: 	0 = Dry
						;				 						.5 = half_wet half_dry								
						;										1 = Wet
	amixL		= aL*(1-kmixlevel) + awetL*kmixlevel
	amixR		= aR*(1-kmixlevel) + awetR*kmixlevel

	;.........	EG
	aoutL		linen		amixL, .5, p3, .1
	aoutR		linen		amixR, .5, p3, .1

	;.........	Output Mixed signal
	outs aoutL*.5, aoutR*.5		;
endin


; f-table
f1	0	4096 10 1

;i#	str	dur
i1		0		8888			; run instrument 1 for 8888 seconds







On Feb 24, 2006, at 1:53 AM, Chaochi Chang wrote:

> Hi All
> I try to use "asig1 in" to get the signal from microphone.
> I have tried to use "asigout = asig1 * kamp" (kamp is
> an adjustable value from FLTK UI)
> I want to know what opcode I can use to manipulate the
> input signal, such as adjust its tone/tune? Thanks a lot!
>
> Chaochi
> --
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2006-02-24 14:11
FromMitchell Turner
SubjectRe: How can I manipulate input signal?
Sorry to resend this but the CSD file I sent in the last email did  
not look right.  Here it is again.  This should look better,
Mitch




-odac -iadc --midi-device=0 -m0 -d


sr = 44100
kr	=	4410
ksmps = 10
nchnls = 2

instr 1
	;.........	Live input signal
	aL, aR	ins

	;.........	Comb Filter the live signal
	krvbtime 	= 10			; in seconds (length of reverb time)
	ilptimeL	= 1			; in seconds (echo density)
	ilptimeR	= .75			; in seconds (echo density)
	awetL		comb	aL, krvbtime, ilptimeL		; filter the Left channel
	awetR		comb	aR, krvbtime, ilptimeR		; filter the Right channel

	;.........	Mix the Dry and Wet signals
	kmixlevel	= .3	; should be a number from 0 to 1,
				; where: 0 = Dry, .5 = half_wet half_dry, and 1 = Wet

	amixL		= aL*(1-kmixlevel) + awetL*kmixlevel
	amixR		= aR*(1-kmixlevel) + awetR*kmixlevel

	;.........	EG
	aoutL		linen		amixL, .5, p3, .1
	aoutR		linen		amixR, .5, p3, .1

	;.........	Output Mixed signal
	outs aoutL*.5, aoutR*.5		;
endin


; f-table
f1	0	4096 10 1

;i#	str	dur
i1		0		8888			; run instrument 1 for 8888 seconds




On Feb 24, 2006, at 1:53 AM, Chaochi Chang wrote:

> Hi All
> I try to use "asig1 in" to get the signal from microphone.
> I have tried to use "asigout = asig1 * kamp" (kamp is
> an adjustable value from FLTK UI)
> I want to know what opcode I can use to manipulate the
> input signal, such as adjust its tone/tune? Thanks a lot!
>
> Chaochi
> --
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2006-02-24 15:43
From"Chaochi Chang"
SubjectRe: How can I manipulate input signal?
Hi Steven
Thanks for the information. I am trying to shifting the signal's pitch
via a fixed amount. Any suggestion about that? Thanks.

Chaochi


-----Original Message-----
From: Steven Yi [mailto:stevenyi@gmail.com]
Sent: Friday, February 24, 2006 3:47 AM
To: csound@lists.bath.ac.uk
Subject: Re: [Csnd] How can I manipulate input signal?


Hi Chaochi,

Once you have the signal in, there are many ways to adjust it's
character.  You can filter it like any other signal using filters
(i.e. butterlp, butterbp, moogvcf, etc.) for coloring, or phase vocode
it with another signal to get a different coloring, or convolve the
signal with an impule response, etc. It all depends really on what
kind of character of sound you are looking for.

As for tune, are you trying to tune a signal say like Antares
Auto-Tune where the signal becomes quantized to a scale?  Or shifting
signal's pitch via a fixed amount (i.e. transposed up a minor second)?

steven



On 2/23/06, Chaochi Chang  wrote:
> Hi All
> I try to use "asig1 in" to get the signal from microphone.
> I have tried to use "asigout = asig1 * kamp" (kamp is
> an adjustable value from FLTK UI)
> I want to know what opcode I can use to manipulate the
> input signal, such as adjust its tone/tune? Thanks a lot!
>
> Chaochi
> --
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>
-- 
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2006-02-27 22:33
From"Robson Cozendey"
SubjectRe: How can I manipulate input signal?
Hi Chaochi,

I was having the same problem some time ago. The first thought to solving 
this is to use the opcode " sndwarp" to shift the pitch, but the problem 
with it is that sndwarp reads from a table, not from an stored signal.
An option, that I have not tried yet, is to use the UDO "freqShift" which is 
found in:

http://www.csounds.com/udo/displayOpcode.php?opcode_id=50

A possible problem with freqShift is that it moves the harmonics too in a 
linear way, which change the spetrum of the signal and may cause 
inharmonicity for large pitch shifts.
A problem with so many opcodes of CSound is that they read their signal from 
a table, and it is not possible to read them from a variable.
Who knows if in the future we will have opcode versions for reading from 
tables and from variables? It would make CSound more suitable for real-time, 
since tables are most useful only for non real-time tasks.


>From: "Chaochi Chang" 
>Reply-To: csound@lists.bath.ac.uk
>To: 
>Subject: Re: [Csnd] How can I manipulate input signal?
>Date: Fri, 24 Feb 2006 10:43:30 -0500
>
>
>Hi Steven
>Thanks for the information. I am trying to shifting the signal's pitch
>via a fixed amount. Any suggestion about that? Thanks.
>
>Chaochi
>
>
>-----Original Message-----
>From: Steven Yi [mailto:stevenyi@gmail.com]
>Sent: Friday, February 24, 2006 3:47 AM
>To: csound@lists.bath.ac.uk
>Subject: Re: [Csnd] How can I manipulate input signal?
>
>
>Hi Chaochi,
>
>Once you have the signal in, there are many ways to adjust it's
>character.  You can filter it like any other signal using filters
>(i.e. butterlp, butterbp, moogvcf, etc.) for coloring, or phase vocode
>it with another signal to get a different coloring, or convolve the
>signal with an impule response, etc. It all depends really on what
>kind of character of sound you are looking for.
>
>As for tune, are you trying to tune a signal say like Antares
>Auto-Tune where the signal becomes quantized to a scale?  Or shifting
>signal's pitch via a fixed amount (i.e. transposed up a minor second)?
>
>steven
>
>
>
>On 2/23/06, Chaochi Chang  wrote:
> > Hi All
> > I try to use "asig1 in" to get the signal from microphone.
> > I have tried to use "asigout = asig1 * kamp" (kamp is
> > an adjustable value from FLTK UI)
> > I want to know what opcode I can use to manipulate the
> > input signal, such as adjust its tone/tune? Thanks a lot!
> >
> > Chaochi
> > --
> > Send bugs reports to this list.
> > To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
> >
>--
>Send bugs reports to this list.
>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>--
>Send bugs reports to this list.
>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

_________________________________________________________________
Copa 2006: Juiz @#$%*&!? e mais frases para seu MSN Messenger 
http://copa.br.msn.com/extra/frases/

Date2006-02-27 22:49
From"Steven Yi"
SubjectRe: How can I manipulate input signal?
AttachmentsNone  

Date2006-02-27 23:10
Fromapalomba@austin.rr.com
SubjectCsoundVST and Ableton Live...
AttachmentsNone  

Date2006-02-28 01:49
From"Chaochi Chang"
SubjectRe: How can I manipulate input signal?

Hi Robson
The opcodes you mentioned seems very useful for me. I will try them
out. Thanks a lot for your help. :-)

Chaochi

-----Original Message-----
From: Robson Cozendey [mailto:russel_rj@hotmail.com]
Sent: Monday, February 27, 2006 5:34 PM
To: csound@lists.bath.ac.uk
Subject: Re: [Csnd] How can I manipulate input signal?


Hi Chaochi,

I was having the same problem some time ago. The first thought to solving
this is to use the opcode " sndwarp" to shift the pitch, but the problem
with it is that sndwarp reads from a table, not from an stored signal.
An option, that I have not tried yet, is to use the UDO "freqShift" which is
found in:

http://www.csounds.com/udo/displayOpcode.php?opcode_id=50

A possible problem with freqShift is that it moves the harmonics too in a
linear way, which change the spetrum of the signal and may cause
inharmonicity for large pitch shifts.
A problem with so many opcodes of CSound is that they read their signal from
a table, and it is not possible to read them from a variable.
Who knows if in the future we will have opcode versions for reading from
tables and from variables? It would make CSound more suitable for real-time,
since tables are most useful only for non real-time tasks.


>From: "Chaochi Chang" 
>Reply-To: csound@lists.bath.ac.uk
>To: 
>Subject: Re: [Csnd] How can I manipulate input signal?
>Date: Fri, 24 Feb 2006 10:43:30 -0500
>
>
>Hi Steven
>Thanks for the information. I am trying to shifting the signal's pitch
>via a fixed amount. Any suggestion about that? Thanks.
>
>Chaochi
>
>
>-----Original Message-----
>From: Steven Yi [mailto:stevenyi@gmail.com]
>Sent: Friday, February 24, 2006 3:47 AM
>To: csound@lists.bath.ac.uk
>Subject: Re: [Csnd] How can I manipulate input signal?
>
>
>Hi Chaochi,
>
>Once you have the signal in, there are many ways to adjust it's
>character.  You can filter it like any other signal using filters
>(i.e. butterlp, butterbp, moogvcf, etc.) for coloring, or phase vocode
>it with another signal to get a different coloring, or convolve the
>signal with an impule response, etc. It all depends really on what
>kind of character of sound you are looking for.
>
>As for tune, are you trying to tune a signal say like Antares
>Auto-Tune where the signal becomes quantized to a scale?  Or shifting
>signal's pitch via a fixed amount (i.e. transposed up a minor second)?
>
>steven
>
>
>
>On 2/23/06, Chaochi Chang  wrote:
> > Hi All
> > I try to use "asig1 in" to get the signal from microphone.
> > I have tried to use "asigout = asig1 * kamp" (kamp is
> > an adjustable value from FLTK UI)
> > I want to know what opcode I can use to manipulate the
> > input signal, such as adjust its tone/tune? Thanks a lot!
> >
> > Chaochi
> > --
> > Send bugs reports to this list.
> > To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
> >
>--
>Send bugs reports to this list.
>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>--
>Send bugs reports to this list.
>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

_________________________________________________________________
Copa 2006: Juiz @#$%*&!? e mais frases para seu MSN Messenger
http://copa.br.msn.com/extra/frases/

--
Send bugs reports to this list.
To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk