Csound Csound-dev Csound-tekno Search About

[Csnd] Csound's counterparts for Pd filters

Date2013-02-28 19:14
FromAnton Kholomiov
Subject[Csnd] Csound's counterparts for Pd filters
I'm trying to work through Designing Sound by Andy Farnell with Csound,
but my implementation sounds not so good as Pd's ones (author of the book uses Pd).
I suspect that Pd's filters are not the same as Csound's ones. Do you know what
are the Csounds counterparts for Pd's filters (hip, lop, bp) and to my ears
osc sounds much better than oscil1 with 16384 gen table. Is it possible
to implement this unit with Csound?

Anton

Date2013-02-28 19:22
FromJustin Smith
SubjectRe: [Csnd] Csound's counterparts for Pd filters
iirc hip,lop, bp are butterworth filters, so the direct analog would be butterhp, butterlp, butterbp

for sine oscillation, I recommend poscil3 (I think osc~ does cubic interpolation, so this should give a similar result)


On Thu, Feb 28, 2013 at 11:14 AM, Anton Kholomiov <anton.kholomiov@gmail.com> wrote:
I'm trying to work through Designing Sound by Andy Farnell with Csound,
but my implementation sounds not so good as Pd's ones (author of the book uses Pd).
I suspect that Pd's filters are not the same as Csound's ones. Do you know what
are the Csounds counterparts for Pd's filters (hip, lop, bp) and to my ears
osc sounds much better than oscil1 with 16384 gen table. Is it possible
to implement this unit with Csound?

Anton


Date2013-03-05 16:14
Fromjoachim heintz
SubjectRe: [Csnd] Csound's counterparts for Pd filters
Attachmentsoscillators.csd  
(in addition to what victor explained:)

i'd say: NEVER use oscil and its decendents. they do certainly have 
their rights for historical reasons, but are by force imprecise. i'd 
recommend the use of poscil as a standard, and poscil3 in some cases. 
see the attached csd for the reason.

it's great you transform some of farnells examples to csound! can you 
share the results?

best -

	joachim



Am 28.02.2013 20:14, schrieb Anton Kholomiov:
> I'm trying to work through Designing Sound by Andy Farnell with Csound,
> but my implementation sounds not so good as Pd's ones (author of the
> book uses Pd).
> I suspect that Pd's filters are not the same as Csound's ones. Do you
> know what
> are the Csounds counterparts for Pd's filters (hip, lop, bp) and to my ears
> osc sounds much better than oscil1 with 16384 gen table. Is it possible
> to implement this unit with Csound?
>
> Anton

Date2013-03-06 11:51
FromVictor Lazzarini
SubjectRe: [Csnd] Csound's counterparts for Pd filters
I'd say oscili and oscil3 are not too bad really.

Oscil is dire.

Victor
On 5 Mar 2013, at 16:14, joachim heintz wrote:

> (in addition to what victor explained:)
> 
> i'd say: NEVER use oscil and its decendents. they do certainly have their rights for historical reasons, but are by force imprecise. i'd recommend the use of poscil as a standard, and poscil3 in some cases. see the attached csd for the reason.
> 
> it's great you transform some of farnells examples to csound! can you share the results?
> 
> best -
> 
> 	joachim
> 
> 
> 
> Am 28.02.2013 20:14, schrieb Anton Kholomiov:
>> I'm trying to work through Designing Sound by Andy Farnell with Csound,
>> but my implementation sounds not so good as Pd's ones (author of the
>> book uses Pd).
>> I suspect that Pd's filters are not the same as Csound's ones. Do you
>> know what
>> are the Csounds counterparts for Pd's filters (hip, lop, bp) and to my ears
>> osc sounds much better than oscil1 with 16384 gen table. Is it possible
>> to implement this unit with Csound?
>> 
>> Anton
> 
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2013-03-06 11:55
FromRory Walsh
SubjectRe: [Csnd] Csound's counterparts for Pd filters
Oscil might be dire, but it's nice to have at least one
non-interpolating oscillator.

Date2013-03-06 11:59
FromDave Phillips
SubjectRe: [Csnd] Csound's counterparts for Pd filters
On 03/05/2013 11:14 AM, joachim heintz wrote:
>
>
> it's great you transform some of farnells examples to csound! can you 
> share the results?
>

Yes, please do ! Designing Sound is a great book, it would be wonderful 
to see its examples in Csound. That's quite a project.

Best,

dp


Date2013-03-06 12:13
FromSteven Yi
SubjectRe: [Csnd] Csound's counterparts for Pd filters
Jim Hearon did a good review of oscillators in the Csound Journal a while back:

http://www.csounds.com/journal/2006spring/oscillatorsTour.html



On Tue, Mar 5, 2013 at 4:14 PM, joachim heintz  wrote:
> (in addition to what victor explained:)
>
> i'd say: NEVER use oscil and its decendents. they do certainly have their
> rights for historical reasons, but are by force imprecise. i'd recommend the
> use of poscil as a standard, and poscil3 in some cases. see the attached csd
> for the reason.
>
> it's great you transform some of farnells examples to csound! can you share
> the results?
>
> best -
>
>         joachim
>
>
>
> Am 28.02.2013 20:14, schrieb Anton Kholomiov:
>
>> I'm trying to work through Designing Sound by Andy Farnell with Csound,
>> but my implementation sounds not so good as Pd's ones (author of the
>> book uses Pd).
>> I suspect that Pd's filters are not the same as Csound's ones. Do you
>> know what
>> are the Csounds counterparts for Pd's filters (hip, lop, bp) and to my
>> ears
>> osc sounds much better than oscil1 with 16384 gen table. Is it possible
>> to implement this unit with Csound?
>>
>> Anton
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>

Date2013-03-06 12:19
FromAnton Kholomiov
SubjectRe: [Csnd] Csound's counterparts for Pd filters
I don't have time now to make a thorough investigation, but I will come back to it and report my results a bit later.
One thing I've noticed is that poscil3 is MUCH slower. I don't dare to use it on the daily basis.
Maybe it's good to switch to it at the final stage. I mean use it to make a production ready record.

> can you share the results?

Yes, I'd like to do it, but it's going to be a Haskell code :) I'm using my Csound code generator [1].
Haskell is a most popular purely functional programming language. It's fun to use it [2]. Actually it
resembles Csound in the fact that it's mostly used in the academia. Computer science researchers [3]
and kids [4] tend to like it.

Cheers,
Anton

[1] http://hackage.haskell.org/package/csound-expression
[2] http://learnyouahaskell.com/
[3] http://www.haskell.org/ghc/
[4] http://cdsmith.wordpress.com/category/haskell-for-kids/

2013/3/6 Victor Lazzarini <Victor.Lazzarini@nuim.ie>
I'd say oscili and oscil3 are not too bad really.

Oscil is dire.

Victor
On 5 Mar 2013, at 16:14, joachim heintz wrote:

> (in addition to what victor explained:)
>
> i'd say: NEVER use oscil and its decendents. they do certainly have their rights for historical reasons, but are by force imprecise. i'd recommend the use of poscil as a standard, and poscil3 in some cases. see the attached csd for the reason.
>
> it's great you transform some of farnells examples to csound! can you share the results?
>
> best -
>
>       joachim
>
>
>
> Am 28.02.2013 20:14, schrieb Anton Kholomiov:
>> I'm trying to work through Designing Sound by Andy Farnell with Csound,
>> but my implementation sounds not so good as Pd's ones (author of the
>> book uses Pd).
>> I suspect that Pd's filters are not the same as Csound's ones. Do you
>> know what
>> are the Csounds counterparts for Pd's filters (hip, lop, bp) and to my ears
>> osc sounds much better than oscil1 with 16384 gen table. Is it possible
>> to implement this unit with Csound?
>>
>> Anton
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
> <oscillators.csd>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2013-03-11 17:44
Fromjoachim heintz
Subject++SPAM++ Re: [Csnd] Csound's counterparts for Pd filters
Attachmentsoscil_poscil.png  
thanks for the link, steven. i had a look, and i think there is 
definitely something wrong with the result of poscil in the article. 
either the code has changed since then, or jim happend to get something 
wrong here. the manual states: "poscil (precise oscillator) is the same 
as oscili, but allows etc". and indeed, it *does* interpolate very 
similar to oscili. i have tested it with this csd which does more or 
less the same as jim's code in his article:



0dbfs = 1
nchnls = 2
giSine ftgen 0, 0, 16, 10, 1
instr 1
aOutL oscil 1, 100, giSine
aOutR poscil 1, 100, giSine
outs aOutL, aOutR
endin


i 1 0 .01



the result shows clearly that poscil does in no way lead to similar 
results as oscil - see the attached screen shot. so i don't know how it 
comes to the picture which is shown in ftable 10 in the article. perhaps 
there was a bug in the code which has been fixed thanks to the article?

best -
	
	joachim


ps: with my "oscil and its descendents" i did not mean oscili and oscil3 
but only the non-interpolating ones like oscil1. except it makes sense 
to have no interpolation.


Am 06.03.2013 13:13, schrieb Steven Yi:
> Jim Hearon did a good review of oscillators in the Csound Journal a while back:
>
> http://www.csounds.com/journal/2006spring/oscillatorsTour.html
>
>
>
> On Tue, Mar 5, 2013 at 4:14 PM, joachim heintz  wrote:
>> (in addition to what victor explained:)
>>
>> i'd say: NEVER use oscil and its decendents. they do certainly have their
>> rights for historical reasons, but are by force imprecise. i'd recommend the
>> use of poscil as a standard, and poscil3 in some cases. see the attached csd
>> for the reason.
>>
>> it's great you transform some of farnells examples to csound! can you share
>> the results?
>>
>> best -
>>
>>          joachim
>>
>>
>>
>> Am 28.02.2013 20:14, schrieb Anton Kholomiov:
>>
>>> I'm trying to work through Designing Sound by Andy Farnell with Csound,
>>> but my implementation sounds not so good as Pd's ones (author of the
>>> book uses Pd).
>>> I suspect that Pd's filters are not the same as Csound's ones. Do you
>>> know what
>>> are the Csounds counterparts for Pd's filters (hip, lop, bp) and to my
>>> ears
>>> osc sounds much better than oscil1 with 16384 gen table. Is it possible
>>> to implement this unit with Csound?
>>>
>>> Anton
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>


Date2013-03-12 12:41
FromJustin Smith
SubjectRe: ++SPAM++ Re: [Csnd] Csound's counterparts for Pd filters
I think that is just the difference between no interpolation (oscil) and floating point interpolation (poscil)

Also, a 16 point wave table is almost comically small - and if the point was to show how extreme the difference between interpolation and non interpolation is, why not a 2 point table?


On Mon, Mar 11, 2013 at 10:44 AM, joachim heintz <jh@joachimheintz.de> wrote:
thanks for the link, steven. i had a look, and i think there is definitely something wrong with the result of poscil in the article. either the code has changed since then, or jim happend to get something wrong here. the manual states: "poscil (precise oscillator) is the same as oscili, but allows etc". and indeed, it *does* interpolate very similar to oscili. i have tested it with this csd which does more or less the same as jim's code in his article:

<CsoundSynthesizer>
<CsInstruments>
0dbfs = 1
nchnls = 2
giSine ftgen 0, 0, 16, 10, 1
instr 1
aOutL oscil 1, 100, giSine
aOutR poscil 1, 100, giSine
outs aOutL, aOutR
endin
</CsInstruments>
<CsScore>
i 1 0 .01
</CsScore>
</CsoundSynthesizer>

the result shows clearly that poscil does in no way lead to similar results as oscil - see the attached screen shot. so i don't know how it comes to the picture which is shown in ftable 10 in the article. perhaps there was a bug in the code which has been fixed thanks to the article?

best -
       
        joachim


ps: with my "oscil and its descendents" i did not mean oscili and oscil3 but only the non-interpolating ones like oscil1. except it makes sense to have no interpolation.


Am 06.03.2013 13:13, schrieb Steven Yi:
Jim Hearon did a good review of oscillators in the Csound Journal a while back:

http://www.csounds.com/journal/2006spring/oscillatorsTour.html



On Tue, Mar 5, 2013 at 4:14 PM, joachim heintz <jh@joachimheintz.de> wrote:
(in addition to what victor explained:)

i'd say: NEVER use oscil and its decendents. they do certainly have their
rights for historical reasons, but are by force imprecise. i'd recommend the
use of poscil as a standard, and poscil3 in some cases. see the attached csd
for the reason.

it's great you transform some of farnells examples to csound! can you share
the results?

best -

         joachim



Am 28.02.2013 20:14, schrieb Anton Kholomiov:

I'm trying to work through Designing Sound by Andy Farnell with Csound,
but my implementation sounds not so good as Pd's ones (author of the
book uses Pd).
I suspect that Pd's filters are not the same as Csound's ones. Do you
know what
are the Csounds counterparts for Pd's filters (hip, lop, bp) and to my
ears
osc sounds much better than oscil1 with 16384 gen table. Is it possible
to implement this unit with Csound?

Anton


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
csound"



Send bugs reports to the Sourceforge bug tracker
             https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2013-03-14 19:10
Fromjoachim heintz
SubjectRe: ++SPAM++ Re: [Csnd] Csound's counterparts for Pd filters
well, i have taken the same table size as jim did; and i think his 
choice is reasonable to see what is happening with interpolation.

and: yes, it is floating point interpolation what poscil does, but in 
jim's article was stated that poscil does not do any interpolation at all:
"Poscil - Does not provide interpolation and uses only the input 
tables's 16 point values."
(http://www.csounds.com/journal/2006spring/oscillatorsTour.html - summary)

that exactly was the point at which i said, something must be wrong with 
this result in the article.

	joachim


Am 12.03.2013 13:41, schrieb Justin Smith:
> I think that is just the difference between no interpolation (oscil) and
> floating point interpolation (poscil)
>
> Also, a 16 point wave table is almost comically small - and if the point
> was to show how extreme the difference between interpolation and non
> interpolation is, why not a 2 point table?
>
>
> On Mon, Mar 11, 2013 at 10:44 AM, joachim heintz  > wrote:
>
>     thanks for the link, steven. i had a look, and i think there is
>     definitely something wrong with the result of poscil in the article.
>     either the code has changed since then, or jim happend to get
>     something wrong here. the manual states: "poscil (precise
>     oscillator) is the same as oscili, but allows etc". and indeed, it
>     *does* interpolate very similar to oscili. i have tested it with
>     this csd which does more or less the same as jim's code in his article:
>
>     
>     
>     0dbfs = 1
>     nchnls = 2
>     giSine ftgen 0, 0, 16, 10, 1
>     instr 1
>     aOutL oscil 1, 100, giSine
>     aOutR poscil 1, 100, giSine
>     outs aOutL, aOutR
>     endin
>     
>     
>     i 1 0 .01
>     
>     
>
>     the result shows clearly that poscil does in no way lead to similar
>     results as oscil - see the attached screen shot. so i don't know how
>     it comes to the picture which is shown in ftable 10 in the article.
>     perhaps there was a bug in the code which has been fixed thanks to
>     the article?
>
>     best -
>
>              joachim
>
>
>     ps: with my "oscil and its descendents" i did not mean oscili and
>     oscil3 but only the non-interpolating ones like oscil1. except it
>     makes sense to have no interpolation.
>
>
>     Am 06.03.2013 13:13, schrieb Steven Yi:
>
>         Jim Hearon did a good review of oscillators in the Csound
>         Journal a while back:
>
>         http://www.csounds.com/__journal/2006spring/__oscillatorsTour.html
>         
>
>
>
>         On Tue, Mar 5, 2013 at 4:14 PM, joachim heintz
>         > wrote:
>
>             (in addition to what victor explained:)
>
>             i'd say: NEVER use oscil and its decendents. they do
>             certainly have their
>             rights for historical reasons, but are by force imprecise.
>             i'd recommend the
>             use of poscil as a standard, and poscil3 in some cases. see
>             the attached csd
>             for the reason.
>
>             it's great you transform some of farnells examples to
>             csound! can you share
>             the results?
>
>             best -
>
>                       joachim
>
>
>
>             Am 28.02.2013 20:14, schrieb Anton Kholomiov:
>
>                 I'm trying to work through Designing Sound by Andy
>                 Farnell with Csound,
>                 but my implementation sounds not so good as Pd's ones
>                 (author of the
>                 book uses Pd).
>                 I suspect that Pd's filters are not the same as Csound's
>                 ones. Do you
>                 know what
>                 are the Csounds counterparts for Pd's filters (hip, lop,
>                 bp) and to my
>                 ears
>                 osc sounds much better than oscil1 with 16384 gen table.
>                 Is it possible
>                 to implement this unit with Csound?
>
>                 Anton
>
>
>
>             Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
>             
>             Discussions of bugs and features can be posted here
>             To unsubscribe, send email sympa@lists.bath.ac.uk
>              with body "unsubscribe
>             csound"
>
>
>
>         Send bugs reports to the Sourceforge bug tracker
>         https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
>         
>         Discussions of bugs and features can be posted here
>         To unsubscribe, send email sympa@lists.bath.ac.uk
>          with body "unsubscribe csound"
>
>
>
>
>     Send bugs reports to the Sourceforge bug tracker
>     https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
>     
>     Discussions of bugs and features can be posted here
>     To unsubscribe, send email sympa@lists.bath.ac.uk
>      with body "unsubscribe csound"
>
>