Csound Csound-dev Csound-tekno Search About

[Cs-dev] (amp)db

Date2011-12-10 13:16
FromTito Latini
Subject[Cs-dev] (amp)db
AttachmentsNone  

Date2011-12-10 16:03
FromVictor Lazzarini
SubjectRe: [Cs-dev] (amp)db
Or limit it to values above -15? What does the manual say?
On 10 Dec 2011, at 13:16, Tito Latini wrote:

> The `db' opcode is the same as ampdb but it uses
> the optimized `pow2' function (OOps/aops.c:52),
> `ampdb' uses `exp' instead. But `pow2' fails
> when the argument is < -15, therefore
> 
>  iamp < -90.309  in  db(iamp)      [0dbfs = 1]
> 
> doesn't work. We can rewrite the `db' opcode as a `ampdb' clone.
> Is it a solution ?
> 
> There is also a general bug with the new parser and the
> opcode(expr) rule    TODO [3/4]
> 
> tito
> 
> ------------------------------------------------------------------------------
> Learn Windows Azure Live!  Tuesday, Dec 13, 2011
> Microsoft is holding a special Learn Windows Azure training event for 
> developers. It will provide a great way to learn Windows Azure and what it 
> provides. You can attend the event by watching it streamed LIVE online.  
> Learn more at http://p.sf.net/sfu/ms-windowsazure
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

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




------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-12-10 16:57
FromTito Latini
SubjectRe: [Cs-dev] (amp)db
AttachmentsNone  

Date2011-12-10 18:03
FromTito Latini
SubjectRe: [Cs-dev] (amp)db
AttachmentsNone  

Date2011-12-10 23:58
FromVictor Lazzarini
SubjectRe: [Cs-dev] (amp)db
Thanks; I've increased the range now to 24bit from 15 for db() via Pow2. Also in the process, I discovered two outstanding static tables in aops.c,  which we hadn't tracked down way back in 2004-5. I have moved them to be instance-based and modified the functions and macros to create and access them.

Victor

On 10 Dec 2011, at 18:03, Tito Latini wrote:

> version with the new macros
> 
> n = (*p->a < -POW2MAX/LOG2_10D20 ? -POW2MAX : *p->a*LOG2_10D20);
> 
> ------------------------------------------------------------------------------
> Learn Windows Azure Live!  Tuesday, Dec 13, 2011
> Microsoft is holding a special Learn Windows Azure training event for 
> developers. It will provide a great way to learn Windows Azure and what it 
> provides. You can attend the event by watching it streamed LIVE online.  
> Learn more at http://p.sf.net/sfu/ms-windowsazure
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

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




------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-12-11 09:55
FromTito Latini
SubjectRe: [Cs-dev] (amp)db
AttachmentsNone  

Date2011-12-11 10:15
FromVictor Lazzarini
SubjectRe: [Cs-dev] (amp)db
yes, thanks I realised that and told John ffitch, but hadn't looked at the answer. I'm incorporating it now.
On 11 Dec 2011, at 09:55, Tito Latini wrote:

> add_token(csound, "db", T_FUNCTION);

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




------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-12-11 10:19
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] (amp)db
there was nothing wrong with those static tables.  they were consta

 Thanks; I've increased the range now to 24bit from 15 for db() via Pow2.
> Also in the process, I discovered two outstanding static tables in aops.c,
>  which we hadn't tracked down way back in 2004-5. I have moved them to be
> instance-based and modified the functions and macros to create and access
> them.
>
> Victor
>
> On 10 Dec 2011, at 18:03, Tito Latini wrote:
>
>> version with the new macros
>>
>> n = (*p->a < -POW2MAX/LOG2_10D20 ? -POW2MAX : *p->a*LOG2_10D20);
>>
>> ------------------------------------------------------------------------------
>> Learn Windows Azure Live!  Tuesday, Dec 13, 2011
>> Microsoft is holding a special Learn Windows Azure training event for
>> developers. It will provide a great way to learn Windows Azure and what
>> it
>> provides. You can attend the event by watching it streamed LIVE online.
>> Learn more at http://p.sf.net/sfu/ms-windowsazure
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> Learn Windows Azure Live!  Tuesday, Dec 13, 2011
> Microsoft is holding a special Learn Windows Azure training event for
> developers. It will provide a great way to learn Windows Azure and what it
> provides. You can attend the event by watching it streamed LIVE online.
> Learn more at http://p.sf.net/sfu/ms-windowsazure
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>



------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2011-12-11 11:22
FromVictor Lazzarini
SubjectRe: [Cs-dev] (amp)db
yes, you're right. If you want to revert, go ahead.
On 11 Dec 2011, at 10:19, jpff@cs.bath.ac.uk wrote:

> there was nothing wrong with those static tables.  they were consta
> 
> Thanks; I've increased the range now to 24bit from 15 for db() via Pow2.
>> Also in the process, I discovered two outstanding static tables in aops.c,
>> which we hadn't tracked down way back in 2004-5. I have moved them to be
>> instance-based and modified the functions and macros to create and access
>> them.
>> 
>> Victor
>> 
>> On 10 Dec 2011, at 18:03, Tito Latini wrote:
>> 
>>> version with the new macros
>>> 
>>> n = (*p->a < -POW2MAX/LOG2_10D20 ? -POW2MAX : *p->a*LOG2_10D20);
>>> 
>>> ------------------------------------------------------------------------------
>>> Learn Windows Azure Live!  Tuesday, Dec 13, 2011
>>> Microsoft is holding a special Learn Windows Azure training event for
>>> developers. It will provide a great way to learn Windows Azure and what
>>> it
>>> provides. You can attend the event by watching it streamed LIVE online.
>>> Learn more at http://p.sf.net/sfu/ms-windowsazure
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Learn Windows Azure Live!  Tuesday, Dec 13, 2011
>> Microsoft is holding a special Learn Windows Azure training event for
>> developers. It will provide a great way to learn Windows Azure and what it
>> provides. You can attend the event by watching it streamed LIVE online.
>> Learn more at http://p.sf.net/sfu/ms-windowsazure
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Learn Windows Azure Live!  Tuesday, Dec 13, 2011
> Microsoft is holding a special Learn Windows Azure training event for 
> developers. It will provide a great way to learn Windows Azure and what it 
> provides. You can attend the event by watching it streamed LIVE online.  
> Learn more at http://p.sf.net/sfu/ms-windowsazure
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

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




------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net