Csound Csound-dev Csound-tekno Search About

[Cs-dev] compress also for 0dbfs=x?

Date2010-07-29 10:21
Fromjoachim heintz
Subject[Cs-dev] compress also for 0dbfs=x?
hi -

i just saw that the compress opcode just works with 0dbfs=32768  
(example below).
is it easy to change the code to accept any 0dbfs value?
if not, we should add an information on the manual page.

	joachim





sr = 44100
ksmps = 32
nchnls = 1
0dbfs = 1; change to 32768
instr 1
asig soundin "fox.wav"
acmpr compress asig, asig, 0, 48, 60, 1, .01, .1, .05
out acmpr
endin


i 1 0 3
e



------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-07-29 16:51
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] compress also for 0dbfs=x?
> hi -
>
> i just saw that the compress opcode just works with 0dbfs=32768
> (example below).
> is it easy to change the code to accept any 0dbfs value?
> if not, we should add an information on the manual page.
>
> 	joachim
>

Sounds like a bug -- will investigate


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-07-29 17:33
Fromjoachim heintz
SubjectRe: [Cs-dev] compress also for 0dbfs=x?
thanks


Am 29.07.2010 um 17:51 schrieb jpff@cs.bath.ac.uk:

>> hi -
>>
>> i just saw that the compress opcode just works with 0dbfs=32768
>> (example below).
>> is it easy to change the code to accept any 0dbfs value?
>> if not, we should add an information on the manual page.
>>
>> 	joachim
>>
>
> Sounds like a bug -- will investigate
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-07-29 18:52
FromJana
SubjectRe: [Cs-dev] compress also for 0dbfs=x?
  If there is a dependency on an fixed 0dbfs value in the internal 
calculation of "compress", I think it would be an easy workaround to 
pass the necessary 0dbfs value as an additional, optional parameter 
which defaults to 32768. If done in that way, existing orchestra code 
wouldn't be affected.

Best,
Jana


Am 29.07.2010 11:21, schrieb joachim heintz:
> hi -
>
> i just saw that the compress opcode just works with 0dbfs=32768
> (example below).
> is it easy to change the code to accept any 0dbfs value?
> if not, we should add an information on the manual page.
>
> 	joachim
>
> 
> 
> 
> 
> sr = 44100
> ksmps = 32
> nchnls = 1
> 0dbfs = 1; change to 32768
> instr 1
> asig soundin "fox.wav"
> acmpr compress asig, asig, 0, 48, 60, 1, .01, .1, .05
> out acmpr
> endin
> 
> 
> i 1 0 3
> e
> 
> 
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>


------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2010-07-31 19:46
Fromjohn ffitch
SubjectRe: [Cs-dev] compress also for 0dbfs=x?
>>>>> "joachim" == joachim heintz  writes:

 joachim> hi -
 joachim> i just saw that the compress opcode just works with 0dbfs=32768  
 joachim> (example below).
 joachim> is it easy to change the code to accept any 0dbfs value?
 joachim> if not, we should add an information on the manual page.

 joachim> 	joachim

Did not see anything obvious related to 0dbfs, but i will look again

==John ffitch

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net