Csound Csound-dev Csound-tekno Search About

[Cs-dev] Freeverb - Thanks!

Date2005-03-10 18:02
Fromsteven yi
Subject[Cs-dev] Freeverb - Thanks!
Hi Istvan,

Thanks for putting in Freeverb as an opcode!

^_^

(Off to give it a try now...)

steven


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-03-10 18:40
FromIstvan Varga
SubjectRe: [Cs-dev] Freeverb - Thanks!
steven yi wrote:

> Hi Istvan,
> 
> Thanks for putting in Freeverb as an opcode!
> 
> ^_^
> 
> (Off to give it a try now...)

Here is the documentation for the opcode:

aoutL, aoutR freeverb ainL, ainR, kRoomSize, kHFDamp[, iSRate[, iSkip]]

ainL, ainR: input signals; usually both are the same, but different
     inputs can be used for special effect
     NOTE: it is recommended to process the input signal(s) with the
     denorm opcode in order to avoid denormalized numbers which could
     significantly increase CPU usage in some cases

aoutL, aoutR: output signals for left and right channel

kRoomSize (range: 0 to 1): controls the length of the reverb, a higher
     value means longer reverb. Settings above 1 may make the opcode
     unstable.

kHFDamp (range: 0 to 1): high frequency attenuation; a value of zero
     means all frequencies decay at the same rate, while higher settings
     will result in a faster decay of the high frequency range.

iSRate (optional, defaults to 44100): adjusts the reverb parameters for
     use with the specified sample rate (this will affect the length of
     the delay lines in samples, and, as of the latest CVS version, the
     high frequency attenuation). Only integer multiples of 44100 will
     reproduce the original character of the reverb exactly, so it may
     be useful to set this to 44100 or 88200 for an orchestra sample
     rate of 48000 or 96000 Hz, respectively. While iSRate is normally
     expected to be close to the orchestra sample rate, different
     settings may be useful for special effects.

iSkip (optional, defaults to zero): if non-zero, initialization of the
     opcode will be skipped, whenever possible.

EXAMPLE



sr      =  44100
ksmps   =  32
nchnls  =  2
0dbfs   =  1

         instr 1
a1      vco2 0.75, 440, 10
kfrq    port 100, 0.008, 20000
a1      butterlp a1, kfrq
a2      linseg 0, 0.003, 1, 0.01, 0.7, 0.005, 0, 1, 0
a1      =  a1 * a2
         denorm a1
aL, aR  freeverb a1, a1, 0.9, 0.35, sr, 0
         outs a1 + aL, a1 + aR
         endin




i 1 0 5
e





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-03-10 18:50
Fromsteven yi
SubjectRe: [Cs-dev] Freeverb - Thanks!
Hi Istvan,

Thanks for the docs, I'll incorporate shortly.  However, in trying to 
load the opcode lib, it doesn't seem to get picked up.  Using a couple 
printf's, it seemed that csoundModuleCreate was called, but not 
csoundModuleInit.  (I am on WinXP using MinGW)

Any ideas?  I'm still looking around, but haven't seen anything yet.

steven


Istvan Varga wrote:
> steven yi wrote:
> 
>> Hi Istvan,
>>
>> Thanks for putting in Freeverb as an opcode!
>>
>> ^_^
>>
>> (Off to give it a try now...)
> 
> 
> Here is the documentation for the opcode:
> 
> aoutL, aoutR freeverb ainL, ainR, kRoomSize, kHFDamp[, iSRate[, iSkip]]
> 
> ainL, ainR: input signals; usually both are the same, but different
>     inputs can be used for special effect
>     NOTE: it is recommended to process the input signal(s) with the
>     denorm opcode in order to avoid denormalized numbers which could
>     significantly increase CPU usage in some cases
> 
> aoutL, aoutR: output signals for left and right channel
> 
> kRoomSize (range: 0 to 1): controls the length of the reverb, a higher
>     value means longer reverb. Settings above 1 may make the opcode
>     unstable.
> 
> kHFDamp (range: 0 to 1): high frequency attenuation; a value of zero
>     means all frequencies decay at the same rate, while higher settings
>     will result in a faster decay of the high frequency range.
> 
> iSRate (optional, defaults to 44100): adjusts the reverb parameters for
>     use with the specified sample rate (this will affect the length of
>     the delay lines in samples, and, as of the latest CVS version, the
>     high frequency attenuation). Only integer multiples of 44100 will
>     reproduce the original character of the reverb exactly, so it may
>     be useful to set this to 44100 or 88200 for an orchestra sample
>     rate of 48000 or 96000 Hz, respectively. While iSRate is normally
>     expected to be close to the orchestra sample rate, different
>     settings may be useful for special effects.
> 
> iSkip (optional, defaults to zero): if non-zero, initialization of the
>     opcode will be skipped, whenever possible.
> 
> EXAMPLE
> 
> 
> 
> sr      =  44100
> ksmps   =  32
> nchnls  =  2
> 0dbfs   =  1
> 
>         instr 1
> a1      vco2 0.75, 440, 10
> kfrq    port 100, 0.008, 20000
> a1      butterlp a1, kfrq
> a2      linseg 0, 0.003, 1, 0.01, 0.7, 0.005, 0, 1, 0
> a1      =  a1 * a2
>         denorm a1
> aL, aR  freeverb a1, a1, 0.9, 0.35, sr, 0
>         outs a1 + aL, a1 + aR
>         endin
> 
> 
> 
> 
> i 1 0 5
> e
> 
> 
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-03-10 18:59
Fromsteven yi
SubjectRe: [Cs-dev] Freeverb - Thanks!
Ah... never mind about it not calling.  I was checking for csound -z and 
csound -z1 to see if it got picked up.  Using your example CSD file it 
rendered fine.

So... that leads to another question: any way to get -z and -z1 to pick 
up opcodes that youse the csoundModuleInit and csoundModuleCreate syntax?

steven


steven yi wrote:
> Hi Istvan,
> 
> Thanks for the docs, I'll incorporate shortly.  However, in trying to 
> load the opcode lib, it doesn't seem to get picked up.  Using a couple 
> printf's, it seemed that csoundModuleCreate was called, but not 
> csoundModuleInit.  (I am on WinXP using MinGW)
> 
> Any ideas?  I'm still looking around, but haven't seen anything yet.
> 
> steven
> 
> 
> Istvan Varga wrote:
> 
>> steven yi wrote:
>>
>>> Hi Istvan,
>>>
>>> Thanks for putting in Freeverb as an opcode!
>>>
>>> ^_^
>>>
>>> (Off to give it a try now...)
>>
>>
>>
>> Here is the documentation for the opcode:
>>
>> aoutL, aoutR freeverb ainL, ainR, kRoomSize, kHFDamp[, iSRate[, iSkip]]
>>
>> ainL, ainR: input signals; usually both are the same, but different
>>     inputs can be used for special effect
>>     NOTE: it is recommended to process the input signal(s) with the
>>     denorm opcode in order to avoid denormalized numbers which could
>>     significantly increase CPU usage in some cases
>>
>> aoutL, aoutR: output signals for left and right channel
>>
>> kRoomSize (range: 0 to 1): controls the length of the reverb, a higher
>>     value means longer reverb. Settings above 1 may make the opcode
>>     unstable.
>>
>> kHFDamp (range: 0 to 1): high frequency attenuation; a value of zero
>>     means all frequencies decay at the same rate, while higher settings
>>     will result in a faster decay of the high frequency range.
>>
>> iSRate (optional, defaults to 44100): adjusts the reverb parameters for
>>     use with the specified sample rate (this will affect the length of
>>     the delay lines in samples, and, as of the latest CVS version, the
>>     high frequency attenuation). Only integer multiples of 44100 will
>>     reproduce the original character of the reverb exactly, so it may
>>     be useful to set this to 44100 or 88200 for an orchestra sample
>>     rate of 48000 or 96000 Hz, respectively. While iSRate is normally
>>     expected to be close to the orchestra sample rate, different
>>     settings may be useful for special effects.
>>
>> iSkip (optional, defaults to zero): if non-zero, initialization of the
>>     opcode will be skipped, whenever possible.
>>
>> EXAMPLE
>>
>> 
>> 
>> sr      =  44100
>> ksmps   =  32
>> nchnls  =  2
>> 0dbfs   =  1
>>
>>         instr 1
>> a1      vco2 0.75, 440, 10
>> kfrq    port 100, 0.008, 20000
>> a1      butterlp a1, kfrq
>> a2      linseg 0, 0.003, 1, 0.01, 0.7, 0.005, 0, 1, 0
>> a1      =  a1 * a2
>>         denorm a1
>> aL, aR  freeverb a1, a1, 0.9, 0.35, sr, 0
>>         outs a1 + aL, a1 + aR
>>         endin
>>
>> 
>> 
>>
>> i 1 0 5
>> e
>>
>> 
>> 
>>
>>
>> -------------------------------------------------------
>> SF email is sponsored by - The IT Product Guide
>> Read honest & candid reviews on hundreds of IT Products from real users.
>> Discover which products truly live up to the hype. Start reading now.
>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-03-10 19:02
FromIstvan Varga
SubjectRe: [Cs-dev] Freeverb - Thanks!
steven yi wrote:

> Thanks for the docs, I'll incorporate shortly.  However, in trying to 
> load the opcode lib, it doesn't seem to get picked up.  Using a couple 
> printf's, it seemed that csoundModuleCreate was called, but not 
> csoundModuleInit.  (I am on WinXP using MinGW)
> 
> Any ideas?  I'm still looking around, but haven't seen anything yet.

No idea, but does rtpa.dll load and initialize correctly ? It uses the
same interface (csoundModuleCreate etc.).


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-03-10 19:16
FromIstvan Varga
SubjectRe: [Cs-dev] Freeverb - Thanks!
steven yi wrote:

> Ah... never mind about it not calling.  I was checking for csound -z and 
> csound -z1 to see if it got picked up.  Using your example CSD file it 
> rendered fine.
> 
> So... that leads to another question: any way to get -z and -z1 to pick 
> up opcodes that youse the csoundModuleInit and csoundModuleCreate syntax?

I have committed a new version of argdecode.c to CVS that calls
csoundInitModules() before printing the opcode list. This should
fix the problem.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-03-10 20:29
Fromsteven yi
SubjectRe: [Cs-dev] Freeverb - Thanks!
Attachmentsfreeverb.html  
Hi Istvan,

Thanks, that works just fine.  I've also attached the output from the 
freeverb entry I've put into the manual.  Could you fill out description 
information and correct anything that I might have mistaken?

Thanks again!
steven


Istvan Varga wrote:
> steven yi wrote:
> 
>> Ah... never mind about it not calling.  I was checking for csound -z 
>> and csound -z1 to see if it got picked up.  Using your example CSD 
>> file it rendered fine.
>>
>> So... that leads to another question: any way to get -z and -z1 to 
>> pick up opcodes that youse the csoundModuleInit and csoundModuleCreate 
>> syntax?
> 
> 
> I have committed a new version of argdecode.c to CVS that calls
> csoundInitModules() before printing the opcode list. This should
> fix the problem.
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 


Date2005-03-10 21:22
FromIstvan Varga
SubjectRe: [Cs-dev] Freeverb - Thanks!
steven yi wrote:

> Thanks, that works just fine.  I've also attached the output from the 
> freeverb entry I've put into the manual.  Could you fill out description 
> information and correct anything that I might have mistaken?

Here is a possible description:

freeverb is a stereo reverb unit based on Jezar's public domain
C++ sources, composed of eight parallel comb filters on both
channels, followed by four allpass units in series. The filters
on the right channel are slightly detuned compared to the left
channel in order to create a stereo effect.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2005-03-10 22:11
Fromsteven yi
SubjectRe: [Cs-dev] Freeverb - Thanks!
Sounds good to me.  I've added that for the description and have checked 
it in.  I'll do a build of the manual either later this week or early 
next week and will update Csounds.com with it.

steven


Istvan Varga wrote:
> steven yi wrote:
> 
>> Thanks, that works just fine.  I've also attached the output from the 
>> freeverb entry I've put into the manual.  Could you fill out 
>> description information and correct anything that I might have mistaken?
> 
> 
> Here is a possible description:
> 
> freeverb is a stereo reverb unit based on Jezar's public domain
> C++ sources, composed of eight parallel comb filters on both
> channels, followed by four allpass units in series. The filters
> on the right channel are slightly detuned compared to the left
> channel in order to create a stereo effect.
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net