Csound Csound-dev Csound-tekno Search About

[Csnd] Global variables

Date2017-12-12 23:11
FromGpp
Subject[Csnd] Global variables
Hi, 

I am wondering what's wrong with the following orchestra:

        sr	=	44100
	kr	=	4410
	ksmps	=	10
	nchnls	=	1



gi16_40 ftgen 40, 0, 1024, 16, 0, 1024, -10, 1
gasignal init 0

instr 1
asig poscil3 1, 440, 40 
gasignal = gasignal + asig
endin

instr 2
ares butterbp gasignal, 600,100  
outs ares * 2, ares * 2
endin





i2 0 60   

e



Thank you



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-12-12 23:17
FromSteven Yi
SubjectRe: [Csnd] Global variables
A few things:

1. Beginning of file is missing:




2. There is no i1 note to start the sound generating instrument
3. There is no clearing of gasignal in instr 2



On Tue, Dec 12, 2017 at 6:11 PM, Gpp  wrote:
> Hi,
>
> I am wondering what's wrong with the following orchestra:
>
>         sr      =       44100
>         kr      =       4410
>         ksmps   =       10
>         nchnls  =       1
>
>
>
> gi16_40 ftgen 40, 0, 1024, 16, 0, 1024, -10, 1
> gasignal init 0
>
> instr 1
> asig poscil3 1, 440, 40
> gasignal = gasignal + asig
> endin
>
> instr 2
> ares butterbp gasignal, 600,100
> outs ares * 2, ares * 2
> endin
>
> 
> 
>
>
> i2 0 60
>
> e
> 
> 
>
> Thank you
>
>
>
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-12-12 23:31
Fromjpff
SubjectRe: [Csnd] Global variables
ad as it stads istr 1 is no alled so gasigal remains zero


On Tue, 12 Dec 2017, Steven Yi wrote:

> A few things:
>
> 1. Beginning of file is missing:
>
> 
> 
>
> 2. There is no i1 note to start the sound generating instrument
> 3. There is no clearing of gasignal in instr 2
>
>
>
> On Tue, Dec 12, 2017 at 6:11 PM, Gpp  wrote:
>> Hi,
>>
>> I am wondering what's wrong with the following orchestra:
>>
>>         sr      =       44100
>>         kr      =       4410
>>         ksmps   =       10
>>         nchnls  =       1
>>
>>
>>
>> gi16_40 ftgen 40, 0, 1024, 16, 0, 1024, -10, 1
>> gasignal init 0
>>
>> instr 1
>> asig poscil3 1, 440, 40
>> gasignal = gasignal + asig
>> endin
>>
>> instr 2
>> ares butterbp gasignal, 600,100
>> outs ares * 2, ares * 2
>> endin
>>
>> 
>> 
>>
>>
>> i2 0 60
>>
>> e
>> 
>> 
>>
>> Thank you
>>
>>
>>
>> --
>> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-12-13 08:48
FromAnders Genell
SubjectRe: [Csnd] Global variables
and you use stereo output but have only declared one channel by nchnls=1

Regards,
Anders

> 13 dec. 2017 kl. 00:31 skrev jpff :
> 
> ad as it stads istr 1 is no alled so gasigal remains zero
> 
> 
>> On Tue, 12 Dec 2017, Steven Yi wrote:
>> 
>> A few things:
>> 
>> 1. Beginning of file is missing:
>> 
>> 
>> 
>> 
>> 2. There is no i1 note to start the sound generating instrument
>> 3. There is no clearing of gasignal in instr 2
>> 
>> 
>> 
>>> On Tue, Dec 12, 2017 at 6:11 PM, Gpp  wrote:
>>> Hi,
>>> 
>>> I am wondering what's wrong with the following orchestra:
>>> 
>>>        sr      =       44100
>>>        kr      =       4410
>>>        ksmps   =       10
>>>        nchnls  =       1
>>> 
>>> 
>>> 
>>> gi16_40 ftgen 40, 0, 1024, 16, 0, 1024, -10, 1
>>> gasignal init 0
>>> 
>>> instr 1
>>> asig poscil3 1, 440, 40
>>> gasignal = gasignal + asig
>>> endin
>>> 
>>> instr 2
>>> ares butterbp gasignal, 600,100
>>> outs ares * 2, ares * 2
>>> endin
>>> 
>>> 
>>> 
>>> 
>>> 
>>> i2 0 60
>>> 
>>> e
>>> 
>>> 
>>> 
>>> Thank you
>>> 
>>> 
>>> 
>>> --
>>> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-12-14 15:27
FromGpp
SubjectRe: [Csnd] Global variables
Everything works fine now, thank you a lot.



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-12-15 15:15
FromGpp
SubjectRe: [Csnd] Global variables
Everything works fine now, thank you a lot to all of you.



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here