Csound Csound-dev Csound-tekno Search About

Score Macros problem

Date2017-06-21 21:41
FromEd Costello
SubjectScore Macros problem
Hi,

I tried compiling this:

<CsoundSynthesizer>
<CsInstruments>
sr = 44100
ksmps = 256
nchnls = 2
0dbfs = 1

instr 1

a1 vco2 0.4, 440

endin

</CsInstruments>
<CsScore>
i1 0 $DURATION
e
</CsScore>
</CsoundSynthesizer>

With the following command:

csound  --smacro:DURATION=2 test.csd

I get the following error:

Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
sorting score ...
Macro definition for smacro:DURATION=2
Macro definition for smacro:DURATION=2
****Looking for DURATION
Undefined macro: '$DURATION’
end of score.                  
overall amps:  0.00000  0.00000

I was wondering if I am using score macros correctly?
Thanks
Ed

Date2017-06-22 13:39
Fromjpff
SubjectRe: Score Macros problem
I can reproduce thi; invesigaing


On Wed, 21 Jun 2017, Ed Costello wrote:

> Hi,
> 
> I tried compiling this:
>       
> 
> sr = 44100
> ksmps = 256
> nchnls = 2
> 0dbfs = 1
> 
> instr 1
> 
> a1 vco2 0.4, 440
> 
> endin
> 
> 
> 
> i1 0 $DURATION
> e
> 
> 
> 
> 
> With the following command:
>
>       csound  --smacro:DURATION=2 test.csd
> 
> 
> I get the following error:
>
>       Elapsed time at end of orchestra compile: real: 0.002s, CPU:
>       0.002s
> sorting score ...
> Macro definition for smacro:DURATION=2
> Macro definition for smacro:DURATION=2
> ****Looking for DURATION
> Undefined macro: '$DURATION’
> end of score.                  
> overall amps:  0.00000  0.00000
> 
> 
> I was wondering if I am using score macros correctly?
> Thanks
> Ed
> 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-06-22 14:29
Fromjpff
SubjectRe: Score Macros problem
Fixed loally her - excet exta tracing I do t ow from whene it cmes.  Wil 
commit to git soon


On Wed, 21 Jun 2017, Ed Costello wrote:

> Hi,
> 
> I tried compiling this:
>       
> 
> sr = 44100
> ksmps = 256
> nchnls = 2
> 0dbfs = 1
> 
> instr 1
> 
> a1 vco2 0.4, 440
> 
> endin
> 
> 
> 
> i1 0 $DURATION
> e
> 
> 
> 
> 
> With the following command:
>
>       csound  --smacro:DURATION=2 test.csd
> 
> 
> I get the following error:
>
>       Elapsed time at end of orchestra compile: real: 0.002s, CPU:
>       0.002s
> sorting score ...
> Macro definition for smacro:DURATION=2
> Macro definition for smacro:DURATION=2
> ****Looking for DURATION
> Undefined macro: '$DURATION’
> end of score.                  
> overall amps:  0.00000  0.00000
> 
> 
> I was wondering if I am using score macros correctly?
> Thanks
> Ed
> 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-06-22 17:48
FromEd Costello
SubjectRe: Score Macros problem
Thats great, thanks
Ed

> On 22 Jun 2017, at 14:29, jpff  wrote:
> 
> Fixed loally her - excet exta tracing I do t ow from whene it cmes.  Wil commit to git soon
> 
> 
> On Wed, 21 Jun 2017, Ed Costello wrote:
> 
>> Hi,
>> I tried compiling this:
>>      
>> 
>> sr = 44100
>> ksmps = 256
>> nchnls = 2
>> 0dbfs = 1
>> instr 1
>> a1 vco2 0.4, 440
>> endin
>> 
>> 
>> i1 0 $DURATION
>> e
>> 
>> 
>> With the following command:
>> 
>>      csound  --smacro:DURATION=2 test.csd
>> I get the following error:
>> 
>>      Elapsed time at end of orchestra compile: real: 0.002s, CPU:
>>      0.002s
>> sorting score ...
>> Macro definition for smacro:DURATION=2
>> Macro definition for smacro:DURATION=2
>> ****Looking for DURATION
>> Undefined macro: '$DURATION’
>> end of score.                  
>> overall amps:  0.00000  0.00000
>> I was wondering if I am using score macros correctly?
>> Thanks
>> Ed
>> 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