[Csnd] Problem with example in book
Date | 2012-01-10 06:04 |
From | Sigi Mueller |
Subject | [Csnd] Problem with example in book |
Attachments | CsoundIssue.png |
Hey Csound-listers,
First time sending an email in as I found an issue I haven't been able to resolve.
I have been going through the Csound book and was working with John ffitch's gaussian blur and came upon some syntax errors in the orchestra. Upon going through the code and process of elimination I found that the two lines it was having issues with were a2 and a3. The console says there is an illegal character of ^ which I do not see anywhere. Does anyone have some insight as to why I may be having this issue? I have included the Csound code below as well as a screenshot so you can 'see what I see' I am using QuteCsound version 0.6.1 on OSX 10.6.8, using Csound version 5.15 Thanks to everyone for all your help and contributions to the Csound community! -Sigi
--------------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------- <CsoundSynthesizer> <CsOptions> </CsOptions> <CsInstruments> sr = 44100 ksmps = 128 nchnls = 2 instr 1 k1 gauss p5 k2 gauss p6 a1 oscili p4/2, 333, 1 ;a2 oscili p4/2, 333+k1, 1 a3 oscili p4/2, 333+k2, 1 outs a1, a1+a3 endin </CsInstruments> <CsScore> f 1 0 8192 10 1 i 1 0 2 10000 33 33 i 1 + . 15000 33 33 e </CsScore> </CsoundSynthesizer>
--------------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------- Error Message given in console:
orch compiler: instr 1 error: illegal character ^ 1 syntax errors in orchestra. compilation invalid |
Date | 2012-01-10 07:43 |
From | Andreas Bergsland |
Subject | Re: [Csnd] Problem with example in book |
Attachments | Screen shot 2012-01-10 at 8.40.19 AM.png |
Hi Sigi, I copied and pasted your .csd into WinXound, and for some reason a couple of hidden characters turned up. When they are removed, everything runs fine :) Best, Andreas Bergsland > |