Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Filter keytracking

Date2008-01-15 18:55
FromMichael Bechard
Subject[Csnd] Re: Filter keytracking
I'm going to assume here that you know some basics of csound and how it works. If not, there are plenty of wonderful tutorials to be found on the net that will help you out: http://www.csounds.com/tutorials

In your instrument code in your orchestra, the cutoff frequency for the filter is, like most everything, just another variable (usually k-rate). If you want it to follow whatever pitch is assigned to the current note, simply assign the note's frequency parameter (p4) to your k-rate variable and plug it in to your filter opcode. For instance:

kcutoff = p4

afiltered tone asound, kcutoff

...where asound is the signal to filter (tone is a simple lowpass filter opcode). But you can make it as involved as you like. For instance, if you want the filter cutoff to be half the note pitch, kcutoff = p4 * .5, etc. Whatever you like.

Feel free to post more questions to this list, but the csound user's mailing list is a good place for these type questions, and any csound questions in general (this list is usually for topics specifically to the blue frontend, but it's no big deal).

http://www.csounds.com/community

Have fun, and I'm sorry if this post seems pedantic. You seem a bit new, so I'm trying to point you in the right direction, so if I'm off-base, I apologize!

Michael

----- Original Message ----
From: kalma 
To: csound@lists.bath.ac.uk
Sent: Tuesday, January 15, 2008 10:43:22 AM
Subject: [Csnd]  Filter keytracking



Hello all

I am quite new to Csound and I was wondering how filter keytracking
 could be
done in Csound. What I understand is that filter cutoff is usually set
 for
midi note 64 and keytacking is used to adjust this value. What is not
 clear
to me is how the adjustment is calculated. If keytracking is set to
 100%
filter follows note frequency, but the original cutoff frequency should
 be
also taken account. Im quite lost with this, so if anyone has an
 example or
some tips how to implement this i would appreciate it.

Matti


-----
------------------------------------------------------------------------------------------------
"But the dreams came on in the Japanese night like livewire voodoo..."
-- William Gibson, Neuromancer
-- 
View this message in context:
 http://www.nabble.com/Filter-keytracking-tp14841696p14841696.html
Sent from the Csound - General mailing list archive at Nabble.com.



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body
 "unsubscribe csound"





      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs