Csound Csound-dev Csound-tekno Search About

[Csnd] mixing conundrum..

Date2008-12-04 14:01
From"Rory Walsh"
Subject[Csnd] mixing conundrum..
AttachmentsNone  

Date2008-12-04 14:06
FromIain McCurdy
Subject[Csnd] RE: mixing conundrum..
Is 'active' what you are looking for?

Iain

> Date: Thu, 4 Dec 2008 14:01:44 +0000
> From: rorywalsh@ear.ie
> To: csound@lists.bath.ac.uk
> Subject: [Csnd] mixing conundrum..
>
> I have a controlling instrument that randomly starts instances of
> other instruments. The problem is that over time the number of
> concurrent instances builds up so much that clipping inevitably
> occurs. Therefore I need to find out how many instances of an
> instrument are running so that I can scale the overall levels
> accordingly. I'm pretty sure that there is an opcode for this but I
> can't seem to find it, anyone remember what it's called?
>
> Rory.
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Suspicious message? There’s an alert for that. Get your Hotmail® account now.

Date2008-12-04 14:14
From"Rory Walsh"
Subject[Csnd] Re: RE: mixing conundrum..
AttachmentsNone  

Date2008-12-04 14:33
From"Andres Cabrera"
Subject[Csnd] Re: Re: RE: mixing conundrum..
AttachmentsNone  

Date2008-12-04 15:05
From"Rory Walsh"
Subject[Csnd] Re: Re: Re: RE: mixing conundrum..
AttachmentsNone  

Date2008-12-04 17:06
From"Aidan Collins"
Subject[Csnd] Re: Re: Re: Re: RE: mixing conundrum..
AttachmentsNone  

Date2008-12-04 18:08
FromVictor Lazzarini
Subject[Csnd] Re: Re: Re: Re: Re: RE: mixing conundrum..
Well, a simple way would be






sr= 44100
ksmps = 64
0dbfs = 1

instr 1

kscal active  1
kamp port   1/kscal, 0.01
asig  oscili  kamp, p4, 1
kenv linseg 0, 0.1,1,p3-0.2,1,0.1, 0

          out asig*kenv

endin





f1 0 16384 10 1


i1 0 10 440
i1 1 3  220
i1 2 5  350
i1 4 3  700







At 17:06 04/12/2008, you wrote:
>Hi, Would one of you mind posting a little code 
>about how you would use 'active' to scale 
>amplitude? I've tried this a few times in the 
>past, and always felt that my methods were 
>inelegant; I think largely because I have a hard 
>time wrapping my head around amplitude values. 
>thanks, Aidan On Thu, Dec 4, 2008 at 10:05 AM, 
>Rory Walsh  wrote: > I just 
>did a search for instance in the chm manual but 
>it didn't show > up anything... or maybe I just 
>missed it. > > 2008/12/4 Andres Cabrera 
>: >> Hi Rory, >> >> Where 
>did you look? Maybe it's not located in an 
>intuitive place. >> >> Cheers, >> Andrés >> >> 
>On Thu, Dec 4, 2008 at 9:14 AM, Rory Walsh 
> wrote: >>> Hi Iain. That's 
>look like the one, I knew it was in there 
>somewhere! >>> >>> Rory. >>> >>> >>> 2008/12/4 
>Iain McCurdy : >>>> Is 
>'active' what you are looking for? >>>> >>>> 
>Iain >>>> >>>>> Date: Thu, 4 Dec 2008 14:01:44 
>+0000 >>>>> From: rorywalsh@ear.ie >>>>> To: 
>csound@lists.bath.ac.uk >>>>> Subject: [Csnd] 
>mixing conundrum.. >>>>> >>>>> I have a 
>controlling instrument that randomly starts 
>instances of >>>>> other instruments. The 
>problem is that over time the number of >>>>> 
>concurrent instances builds up so much that 
>clipping inevitably >>>>> occurs. Therefore I 
>need to find out how many instances of an >>>>> 
>instrument are running so that I can scale the 
>overall levels >>>>> accordingly. I'm pretty 
>sure that there is an opcode for this but 
>I >>>>> can't seem to find it, anyone remember 
>what it's called? >>>>> >>>>> 
>Rory. >>>>> >>>>> >>>>> Send bugs reports to 
>this list. >>>>> To unsubscribe, send email 
>sympa@lists.bath.ac.uk with body 
>"unsubscribe >>>>> csound" >>>> >>>> 
>________________________________ >>>> Suspicious 
>message? There's an alert for that. Get your 
>Hotmail(R) account >>>> now. >>> >>> >>> Send 
>bugs reports to this list. >>> To unsubscribe, 
>send email sympa@lists.bath.ac.uk with body 
>"unsubscribe csound" >>> >> >> >> >> -- >> >> >> 
>Andrés >> >> >> Send bugs reports to this 
>list. >> To unsubscribe, send email 
>sympa@lists.bath.ac.uk with body "unsubscribe 
>csound" > > > Send bugs reports to this list. > 
>To unsubscribe, send email 
>sympa@lists.bath.ac.uk with body "unsubscribe 
>csound" Send bugs reports to this list. To 
>unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth 



Date2008-12-04 18:18
FromRichard Boulanger
Subject[Csnd] Re: mixing conundrum..
Victor,

This would be nice to add to the manual (maybe with a few comments)
Clear, useful, practical, helpful to all csounders! (especially MIDI  
and realtimers)

On Dec 4, 2008, at 1:08 PM, Victor Lazzarini wrote:

> 
> 
> 
> 
>
> sr= 44100
> ksmps = 64
> 0dbfs = 1
>
> instr 1
>
> kscal active  1
> kamp port   1/kscal, 0.01
> asig  oscili  kamp, p4, 1
> kenv linseg 0, 0.1,1,p3-0.2,1,0.1, 0
>
>         out asig*kenv
>
> endin
>
>
> 
> 
>
> f1 0 16384 10 1
>
>
> i1 0 10 440
> i1 1 3  220
> i1 2 5  350
> i1 4 3  700
>
>
> 
> 


Date2008-12-08 17:45
FromTobiah
Subject[Csnd] Re: mixing conundrum..
Rory Walsh wrote:
> I have a controlling instrument that randomly starts instances of
> other instruments. The problem is that over time the number of
> concurrent instances builds up so much that clipping inevitably
> occurs. 

Would it be possible to simply output floating point samples?
The 'play' (sox) command on my box groks them just fine, and
Audacity uses them internally by default anyway.  I found a
nice utility called 'normalize-audio' that makes quick work
of normalizing the audio.  In fact, it's so fast it makes
me wonder whether it just tweaks the header somewhere.  Is
there a provision for a multipier in a floating point header,
or am I just not used to the speed with which a modern processor
can crunch though floats?

Actually, that leads me to a question about floats.  In Audacity,
when I say I want to export 32-bit floating point, a greyed out
choice for 'encoding' becomes available.  Would someone elaborate
on this?

Thanks

Toby