Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: Re: #include issues--Working now

Date2010-10-18 00:32
FromChristopher Saunders
Subject[Csnd] Re: Re: Re: #include issues--Working now
Its working now, I've discovered that it only works when I define the full path of the file to be included
Ex.

#include "~local/~user/csound/H.inc"




---------------------------------------
Original E-mail
From: Christopher Saunders <csaunders@berklee.net>
Date: 10/17/2010 07:26 PM
To: csound@lists.bath.ac.uk
Subject: [Csnd] Re: Re: #include issues

Even in the <CsScore> section it doesn't work (I copy/pasted my example incorrectly into the email).


---------------------------------------
Original E-mail
From: andy fillebrown <andy.fillebrown@gmail.com>
Date: 10/17/2010 07:21 PM
To: csound@lists.bath.ac.uk
Subject: [Csnd] Re: #include issues

Try moving the #include into the section.

Cheers,
~ andy.f



On Sun, Oct 17, 2010 at 7:03 PM, Christopher Saunders
wrote:
> I was having some trouble with the #include opcode, it works fine when the
> file I'm including doesn't contain any macro definitions.  It suggests in
> the manual to define your most commonly used macros in a seperate text file
> and use  #include to get them into the score, however when I do such a
> thing, it says
>
> score error: Undefined macro: 'Ho'. What could I be doing wrong?
>
>
>
>
>

>
>
>
> sr=44100
>
> kr=4410
>
> ksmps=10
>
> nchnls=1
>
> 0dbfs=32767
>
> instr 1
>
> kcps = cpspch (p5)
>
> icps = cpspch (p5)
>
> kamp madsr .0002, .005 , p4 , .05
>
> ares buzz kamp, kcps, 40,1
>
> aout butterlp ares ,p5+7000
>
> out aout
>
> endin
>
> #include "Csound/H.inc"
>
> ;#define Ho #2#;
>
>

>
>
>
> i 1 0 $Ho.
>
> i 1 + .
>
> i 1 + .
>
> i 1 + .
>
> i 1 + .
>
> i 1 + .


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2010-10-18 07:34
FromRichard Boulanger
Subject[Csnd] Re: Re: Re: Re: #include issues--Working now
Excellent - and sorry for the mail to the all of you on the list suggesting that Chris check out a chapter in the book.
i thought he was asking as part of the class - and I love to get the students to did into The Csound Book
whenever I can.... 

Wishing you all the best...

I am off the China this week - to teach Csound and perform several realTime Csound Pieces - from wiiMotes,
P5 Gloves and my Radio Baton.

And so... I am rehearsing around the clock - and fired off that email... a little too quickly.

Dr. B.

PS, If you'd like to check out my new piece (minus the Csound processing... which is coming) here is a link and some of the
details:

Some Links related to the upcoming Beijing trip and a draft of my new piece that I am premiering there:

- a Scratch Mix (actually a "bounce") from my Logic Sequencer Composing and Production Software of the latest version of my new piece (Note that there will be a nice bit of Csound DSP transforming and coloring the Chinese Instruments -  added Live): 

"Beijing Dreams"

It is composed for the "Timi Ensemble" - which consists of the following Chinese and Western Instruments.

1 Dizi flute
1 Xiao flute
1 Pipa lute/guitar
1 Guzheng zither/koto
2 Violins
1 Cello (played by Philip Boulanger)
1 Radio Baton controlled Apple MacBook Pro laptop computer (played by Richard Boulanger)
(the radio baton is "playing" the Strings, the Upright Bass, and the Percussion Parts at the end)

Hopefully it's not to "Hollywood" for you all.  

The premiere is on October 27 in Beijing, at the Central Conservatory of Music,
 with a second performance in the Mako Theatre on October 28.


Here is a link to the website about the events in China:

Mako Concert


You might like checking out the "participants" page too


And... the "media" pages features some of my other music and books too - including the latest!

http://www.granierb.net/berklee/media.html  (about boulanger's books)

bout the Musicacoustica Festival:



On Oct 17, 2010, at 7:32 PM, Christopher Saunders wrote:

Its working now, I've discovered that it only works when I define the full path of the file to be included
Ex.

#include "~local/~user/csound/H.inc"




---------------------------------------
Original E-mail
From: Christopher Saunders <csaunders@berklee.net>
Date: 10/17/2010 07:26 PM
To: csound@lists.bath.ac.uk
Subject: [Csnd] Re: Re: #include issues

Even in the <CsScore> section it doesn't work (I copy/pasted my example incorrectly into the email).


---------------------------------------
Original E-mail
From: andy fillebrown <andy.fillebrown@gmail.com>
Date: 10/17/2010 07:21 PM
To: csound@lists.bath.ac.uk
Subject: [Csnd] Re: #include issues

Try moving the #include into the section.

Cheers,
~ andy.f



On Sun, Oct 17, 2010 at 7:03 PM, Christopher Saunders
wrote:
> I was having some trouble with the #include opcode, it works fine when the
> file I'm including doesn't contain any macro definitions.  It suggests in
> the manual to define your most commonly used macros in a seperate text file
> and use  #include to get them into the score, however when I do such a
> thing, it says
>
> score error: Undefined macro: 'Ho'. What could I be doing wrong?
>
>
>
>
>

>
>
>
> sr=44100
>
> kr=4410
>
> ksmps=10
>
> nchnls=1
>
> 0dbfs=32767
>
> instr 1
>
> kcps = cpspch (p5)
>
> icps = cpspch (p5)
>
> kamp madsr .0002, .005 , p4 , .05
>
> ares buzz kamp, kcps, 40,1
>
> aout butterlp ares ,p5+7000
>
> out aout
>
> endin
>
> #include "Csound/H.inc"
>
> ;#define Ho #2#;
>
>

>
>
>
> i 1 0 $Ho.
>
> i 1 + .
>
> i 1 + .
>
> i 1 + .
>
> i 1 + .
>
> i 1 + .


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2010-10-18 14:34
FromMichael Rhoades
Subject[Csnd] Re: Re: Re: Re: Re: #include issues--Working now
  This all looks fantastic Rick. Congrats!!

Good Luck.

Michael

On 10/18/10 2:34 AM, Richard Boulanger wrote:
> Excellent - and sorry for the mail to the all of you on the list 
> suggesting that Chris check out a chapter in the book.
> i thought he was asking as part of the class - and I love to get the 
> students to did into The Csound Book
> whenever I can....
>
> Wishing you all the best...
>
> I am off the China this week - to teach Csound and perform several 
> realTime Csound Pieces - from wiiMotes,
> P5 Gloves and my Radio Baton.
>
> And so... I am rehearsing around the clock - and fired off that 
> email... a little too quickly.
>
> Dr. B.
>
> PS, If you'd like to check out my new piece (minus the Csound 
> processing... which is coming) here is a link and some of the
> details:
>
> Some Links related to the upcoming Beijing trip and a draft of my new 
> piece that I am premiering there:
>
> - a Scratch Mix (actually a "bounce") from my Logic Sequencer 
> Composing and Production Software of the latest version of my new 
> piece (Note that there will be a nice bit of Csound DSP transforming 
> and coloring the Chinese Instruments -  added Live):
>
> "Beijing Dreams"
>
> It is composed for the "Timi Ensemble" - which consists of the 
> following Chinese and Western Instruments.
>
> 1 Dizi flute
> 1 Xiao flute
> 1 Pipa lute/guitar
> 1 Guzheng zither/koto
> 2 Violins
> 1 Cello (played by Philip Boulanger)
> 1 Radio Baton controlled Apple MacBook Pro laptop computer (played by 
> Richard Boulanger)
> (the radio baton is "playing" the Strings, the Upright Bass, and the 
> Percussion Parts at the end)
>
> Hopefully it's not to "Hollywood" for you all.
>
> The premiere is on October 27 in Beijing, at the Central Conservatory 
> of Music,
>  with a second performance in the Mako Theatre on October 28.
>
> http://csounds.com/1_Beijing Dreams.mp3 
> 
>
> Here is a link to the website about the events in China:
>
> Mako Concert
>
> http://www.granierb.net/berklee
>
> You might like checking out the "participants" page too
>
> http://www.granierb.net/berklee/participants.html (about r boulanger)
> http://www.granierb.net/berklee/p_8.html (about p boulanger)
> http://www.granierb.net/berklee/p_2.html (on leonard)
> http://www.granierb.net/berklee/p_3.html (on croes)
>
> And... the "media" pages features some of my other music and books too 
> - including the latest!
>
> http://www.granierb.net/berklee/media.html  (about boulanger's books)
> http://www.granierb.net/berklee/media_m1.html  (about boulanger's music)
> http://www.granierb.net/berklee/media_m2.html (about neil's music)
>
> bout the Musicacoustica Festival:
>
> http://en.ccom.edu.cn/pae/bma/index.shtml
>
>
> On Oct 17, 2010, at 7:32 PM, Christopher Saunders wrote:
>
>> Its working now, I've discovered that it only works when I define the 
>> full path of the file to be included
>> Ex.
>>
>> #include "~local/~user/csound/H.inc"
>>
>>
>>
>>
>> ---------------------------------------
>> Original E-mail
>> From: Christopher Saunders > >
>> Date: 10/17/2010 07:26 PM
>> To: csound@lists.bath.ac.uk 
>> Subject: [Csnd] Re: Re: #include issues
>>
>> Even in the  section it doesn't work (I copy/pasted my 
>> example incorrectly into the email).
>>
>>
>> ---------------------------------------
>> Original E-mail
>> From: andy fillebrown > >
>> Date: 10/17/2010 07:21 PM
>> To: csound@lists.bath.ac.uk 
>> Subject: [Csnd] Re: #include issues
>>
>> Try moving the #include into the section.
>>
>> Cheers,
>> ~ andy.f
>>
>>
>>
>> On Sun, Oct 17, 2010 at 7:03 PM, Christopher Saunders
>> wrote:
>> > I was having some trouble with the #include opcode, it works fine 
>> when the
>> > file I'm including doesn't contain any macro definitions.  It 
>> suggests in
>> > the manual to define your most commonly used macros in a seperate 
>> text file
>> > and use  #include to get them into the score, however when I do such a
>> > thing, it says
>> >
>> > score error: Undefined macro: 'Ho'. What could I be doing wrong?
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > sr=44100
>> >
>> > kr=4410
>> >
>> > ksmps=10
>> >
>> > nchnls=1
>> >
>> > 0dbfs=32767
>> >
>> > instr 1
>> >
>> > kcps = cpspch (p5)
>> >
>> > icps = cpspch (p5)
>> >
>> > kamp madsr .0002, .005 , p4 , .05
>> >
>> > ares buzz kamp, kcps, 40,1
>> >
>> > aout butterlp ares ,p5+7000
>> >
>> > out aout
>> >
>> > endin
>> >
>> > #include "Csound/H.inc"
>> >
>> > ;#define Ho #2#;
>> >
>> >
>> >
>> >
>> >
>> > i 1 0 $Ho.
>> >
>> > i 1 + .
>> >
>> > i 1 + .
>> >
>> > i 1 + .
>> >
>> > i 1 + .
>> >
>> > i 1 + .
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599 
>> 
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk 
>>  with body "unsubscribe csound"
>>
>>
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"