Hi guys
Does anyone here know anything about C Sound? I have an exam on Thursday and this is one of the questions. Any ideas? Im only starting out. Any
Q1. Identify 3 syntax errors from the following Csound code:
// Orchestra File
sr = 44100
kr = 440
ksmps = 100
nchnls = 2
instr 2
asig oscili p4, p6, 1
asig2 ocsili 10000, 880, 1
asig3 = asig1+ asig2
outs asig3, asig3
endin
// Score File
f1 0 1024 10 1
i1 0 5 5000 440
e ________
Question about C Sound....
-
- mnml newbie
- Posts: 85
- Joined: Wed Jun 21, 2006 2:45 pm
- Location: Dublin, Ireland
- Contact:
-
- mnml newbie
- Posts: 85
- Joined: Wed Jun 21, 2006 2:45 pm
- Location: Dublin, Ireland
- Contact:
Re: Question about C Sound....
will kinsella wrote:Hi guys
Does anyone here know anything about C Sound? I have an exam on Thursday and this is one of the questions. Any ideas? Im only starting out. Any
Q1. Identify 3 syntax errors from the following Csound code:
// Orchestra File
sr = 44100
kr = 440
ksmps = 100
nchnls = 2
instr 2
asig oscili p4, p6, 1
asig2 ocsili 10000, 880, 1
asig3 = asig1+ asig2
outs asig3, asig3
endin
// Score File
f1 0 1024 10 1
i1 0 5 5000 440
e ________
OK here is what I think the problem is:
1. sr/ksmps = kr however kr is listed as 440. It should be 441
2. We have the definition of instrument 2 (instr 2) and instrument one (i1) is playing in the score file
3. The definition outlines a 6th instrument parameter (p6) but in the definition there aren't 6 parameters, only i1, 0, 5, 5000, 440
So hopefully this is right
Have a nice weekend
OMG!
Do you also have C64-exams?
Do you also have C64-exams?
http://www.myspace.com/djjackrock
http://www.jackrock.dk
http://soundcloud.com/jack-rock
---
Out now:
Cleymore - "Reel Dance EP (inc. Jack Rock rmx)" - Sui Generiz 09
Jack Rock - "Rendez Vous EP" - Archipel 065
Jack Rock - "Filter Games" - ArtiFarti 007
http://www.jackrock.dk
http://soundcloud.com/jack-rock
---
Out now:
Cleymore - "Reel Dance EP (inc. Jack Rock rmx)" - Sui Generiz 09
Jack Rock - "Rendez Vous EP" - Archipel 065
Jack Rock - "Filter Games" - ArtiFarti 007
-
- mnml newbie
- Posts: 85
- Joined: Wed Jun 21, 2006 2:45 pm
- Location: Dublin, Ireland
- Contact: