Csound Csound-dev Csound-tekno Search About

[Csnd] Problem with example in book

Date2012-01-10 06:04
FromSigi Mueller
Subject[Csnd] Problem with example in book
AttachmentsCsoundIssue.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
i 1 + . 20000 33 33

e

</CsScore>

</CsoundSynthesizer>


---------------------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------------------

Error Message given in console:


orch compiler:

instr 1

error: illegal character  ^

1 syntax errors in orchestra. compilation invalid



Date2012-01-10 07:43
FromAndreas Bergsland
SubjectRe: [Csnd] Problem with example in book
AttachmentsScreen 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

> 
>
> 
>
> 
>
> 
>
> 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
>
> 
>
> 
>
> f 1 0 8192 10 1
>
> i 1 0 2 10000 33 33
>
> i 1 + . 15000 33 33
> i 1 + . 20000 33 33
>
> e
>
> 
>
> 
>


-- 
Andreas Bergsland,
postdoktor

Musikkteknologiseksjonen
Institutt for musikk
Olavskvartalet
NTNU
7491 Trondheim

Besøksadresse: Fjordgt.1 (3.etg.)
e-post: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Tlf: 7359 0096
Mob: 4566 3316


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"