csound / manual

Csound Reference Manual (English)
Other
45 stars 29 forks source link

Invalid imput example #620

Closed LaosPac closed 2 years ago

jpffitch commented 2 years ago

Los lie you are missi a newline before the out word. The text if the orc etc seems missing lie Erin's.  Are you using a word processor rather than an editor?

⁣Get TypeApp for Android ​

On 16 Mar 2022, 17:17, at 17:17, LaosPac @.***> wrote:

-odac sr = 44100 ksmps = 32 nchnls = 2 0dbfs = 1 //wave form with harmonics 1, 11 and 22 giHarmonics ftgen 0, 0, 8192, 9, 1,.1,0, 11,.1,0, 22,1,0 instr 1 asig poscil .1, p4 out asig, asig endin instr 2 asig poscil .2, p4, giHarmonics out asig, asig endin i 1 0 2 1000 ;1000 Hz sine i 1 3 2 43100 ;43100 Hz sine sounds like 1000 Hz because of aliasing i 2 6 4 1990 ;1990 Hz with harmonics 1, 11 and 22 ;results in 1990*22=43780 Hz so aliased 320 Hz ;for the highest harmonic

This example from the manual gives this error message... why?

WARNING: could not open library '/Library/Frameworks/CsoundLib64.framework/Versions/6.0/Resources/Opcodes64/librtjack.dylib' (-1) rtaudio: PortAudio module enabled ... using blocking interface error: syntax error, unexpected T_OPCODE0, expecting NEWLINE or ',' (token "out") from file /private/var/folders/gy/gs9dgh857p19nby3qgvyzmgc0000gn/T/csound-tmpjiEuRuND.csd (1), line 13:

asig poscil .1, p4 out <<< Parsing failed due to invalid input! Stopping on parser failure cannot compile orchestra

thank you for help (this is for a whole school class)

we have Mac computers. Happens with Big Sur and Monterey . The guy with windows has not these problems

-- Reply to this email directly or view it on GitHub: https://github.com/csound/manual/issues/620 You are receiving this because you are subscribed to this thread.

Message ID: @.***>

LaosPac commented 2 years ago

we are using csound QT. just installed. Sorry for ignorance but we don't understand your answer. please could you give us a practical help to make it work for the class

vlazzarini commented 2 years ago

This is not a bug, we can't use the issue tracker for user errors. Please sign up to the Csound mailing list and ask questions there: https://csound.com/community.html I'm closing this otherwise we get sidetracked.

LaosPac commented 2 years ago

should I delete this chat?

LaosPac commented 2 years ago

thanks for fast replies btw

vlazzarini commented 2 years ago

no need to do anything here.

joachimheintz commented 2 years ago

have a llok at CsoundQt Configuration > Editor > Line Ending Mode

On 16/03/2022 18:38, LaosPac wrote:

we are using csound QT. just installed. Sorry for ignorance but we don't understand your answer. please could you give us a practical help to make it work for the class

— Reply to this email directly, view it on GitHub https://github.com/csound/manual/issues/620#issuecomment-1069388442, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQYHKW4EVMLOL2AALZQS7DVAIMBFANCNFSM5Q4RFVTQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>