[Csnd] opcode dir on linux
Date | 2010-11-11 07:38 |
From | Stefan Thomas |
Subject | [Csnd] opcode dir on linux |
Dear community, I have (I guess sucessfully) csound 5.1.2 from source on my unbuntu-puredyne machine. I can process some files without problems (e.g. the tutorial-files by Dr. Boulanger) but I others I can't. I think it hast to do with the opcode-dir. I have a folder opcodes on ~/bin/csound/opcodes. But how can I set this path? I think I should modify /etc/profiles but I don't know what I do have to write into this file. I also looked at custom.py but I didn't found there a direct hint concerning the opcode-variable. Thanks for Your patience Stefan |
Date | 2010-11-11 08:17 |
From | Rory Walsh |
Subject | [Csnd] Re: opcode dir on linux |
You can use 'export OPCODEDIR=~/bin/csound/opcodes'. Rory. On 11 November 2010 07:38, Stefan Thomas |
Date | 2010-11-11 08:34 |
From | Andres Cabrera |
Subject | [Csnd] Re: Re: opcode dir on linux |
You can add Rory's line to the end of /etc/profiles. Then log out and log back in again. Cheers, Andres On Thu, Nov 11, 2010 at 8:17 AM, Rory Walsh |
Date | 2010-11-11 10:08 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: opcode dir on linux |
> Dear community, > I have (I guess sucessfully) csound 5.1.2 from source on my > unbuntu-puredyne > machine. Wow! antique from 2006 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" |
Date | 2010-11-11 14:11 |
From | Stefan Thomas |
Subject | [Csnd] Re: Re: opcode dir on linux |
Dear community, unfortunately, I don't have a file /etc/profiles, I only have /etc/profile I'added at the end of /etc/profile export OPCODEDIR= ~/bin/Csound5.12.1/OpcodesBut after a reboot I couldn't start my x-server! Could the reason be, that I don't use the bash but the zhs? 2010/11/11 <jpff@cs.bath.ac.uk>
|
Date | 2010-11-11 14:14 |
From | Rory Walsh |
Subject | [Csnd] Re: Re: Re: opcode dir on linux |
that shouldn't affect anything really. Have you tried taking it out and rebooting to see if x-server starts ok again? And are you sure you didn't delete something else by accident? On 11 November 2010 14:11, Stefan Thomas |
Date | 2010-11-11 14:44 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: Re: Re: Re: opcode dir on linux |
The change Rory suggested was a bash /sh change. Personally I always use tcsh and the syntax and file is different for that change. Never come across zhs, but a small google suggests that the fil e to change is /etc/zhs and the syntax is export OPCODEDIR= ~/bin/Csound5.12.1/Opcodes but I would rather use export OPCODEDIR= /home/jpff/bin/Csound5.12.1/Opcodes as I distruct ~ in this contxt (just because on is paranoic does not mean they are not out to get you) ==John ff > > On 11 November 2010 14:11, Stefan Thomas > |
Date | 2010-11-11 15:31 |
From | Andres Cabrera |
Subject | [Csnd] Re: Re: Re: opcode dir on linux |
Hi, I don't think the line you added can break starting x, but as Rory said, try to take it out, to see if that was the problem. You can also set the environment variable in a terminal and then run Csound, but this will be only for that particular instance. Cheers, Andres On Thu, Nov 11, 2010 at 2:11 PM, Stefan Thomas |
Date | 2010-11-11 17:49 |
From | Stefan Thomas |
Subject | [Csnd] Re: Re: Re: Re: opcode dir on linux |
Dear community, I changed the files /etc/zsh/zshrc and ~.zshrc But now I've got after rebooting: /etc/zsh/zshrc:export:52: not valid in this context: /home/myname/bin/Csound5.12.1/OpcodesAnd when I type csound I get: time resolution is 0.500 ns Maybee I did something wrong with building csound? First I did(after unzipping) scons buildOSC=1 buildCsound5GUI=1 buildPythonOpcodes=1 useOSC=1 buildLoris=0 then I run sudo python install.py 2010/11/11 Andres Cabrera <mantaraya36@gmail.com> Hi, |
Date | 2010-11-11 17:53 |
From | Andres Cabrera |
Subject | [Csnd] Re: Re: Re: Re: Re: opcode dir on linux |
Hi, Maybe zsh uses a different command for export? Cheers, Andres On Thu, Nov 11, 2010 at 5:49 PM, Stefan Thomas |
Date | 2010-11-11 19:44 |
From | Stefan Thomas |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: opcode dir on linux |
Dear community, I think I've made a little success: I changed now to the bash as my main shell. I wrote in .bashrc and in /etc/bash.bashrc export OPCODEDIR=/home/myname/bin/Csound5.12.1/Opcodes But csound still does not revognize some of the opcodes. E.g. it doesn't know ftgen. I get the message error: no legal opcode, line 9:for the below quoted file: <CsoundSynthesizer> <CsOptions> </CsOptions> <CsInstruments> sr = 48000 kr = 480 ksmps = 100 nchnls = 2 giwave_sinus ftgen 0,0,8192,10, 1 massign 1, 101 instr 101 icps cpsmidi iamp ampmidi 10000 kenv linenr 1, 0.3, 0.1, 0.01 iwave = giwave_sinus asig oscil kenv*iamp, icps, iwave outs asig, asig endin </CsInstruments> <CsScore> f0 3600 i101 0 3600 </CsScore> </CsoundSynthesizer> 2010/11/11 Andres Cabrera <mantaraya36@gmail.com> Hi, |
Date | 2010-11-12 00:07 |
From | Rory Walsh |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: opcode dir on linux |
I don't think it's finding any of the opcodes, I think Csound just stops after finding the first one it doesn't recognise, i.e., ftgen. Usually when I build on Linux my opcodes are contained in the main Csound5 folder, in your case Csound5.12.1. Did you move them all into a folder called Opcodes? If not try export OPCODEDIR=/home/myname/bin/Csound5.12.1 Try that command from the terminal, then try running Csound to make sure it works before adding it to bash.bashrc Rory. On 11 November 2010 19:44, Stefan Thomas |
Date | 2010-11-12 01:49 |
From | Felipe Sateler |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: opcode dir on linux |
Also, if you built csound with double precision, the variable to set is OPCODE64DIR And zsh uses the same export syntax as bash. I agree with john that you should avoid the use of ~ in those files, though. On Thu, Nov 11, 2010 at 21:07, Rory Walsh |
Date | 2010-11-12 05:53 |
From | Stefan Thomas |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: opcode dir on linux |
I finally solved the problem. I had to add in the .zshrc export OPCODEDIR=/home/myname/bin/Csound5.12.1and not export OPCODEDIR=/home/myname/bin/Csound5.12.1/Opcodeswhat I did before. I apologize for my dullness! Thanks for Your help and patience, Stefan 2010/11/12 Felipe Sateler <fsateler@gmail.com> Also, if you built csound with double precision, the variable to set |