Csound Csound-dev Csound-tekno Search About

[Csnd] Building csound on 64 bit machine.

Date2010-01-16 19:04
FromTobiah
Subject[Csnd] Building csound on 64 bit machine.
I'm trying to build csound on a Phenom II X4 under Ubuntu 9.10.  I'm
getting this error:

Error opening plugin directory '/usr/local/lib/csound/plugins64': No
such file or directory

I'm building like this:

scons Lib64=1 buildNewParser=1 buildPythonOpcodes=1 buildRelease=1
buildUtilities=1 install=1 useALSA=1 useDouble=1 Word64=1

If I take out the options with '64' in them, I get a complaint about
/usr/local/lib/csound/plugins
not being there.

Thanks,

Tobiah


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-01-16 19:17
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: Building csound on 64 bit machine.
> I'm trying to build csound on a Phenom II X4 under Ubuntu 9.10.  I'm
> getting this error:
>
> Error opening plugin directory '/usr/local/lib/csound/plugins64': No
> such file or directory
>
> I'm building like this:
>
> scons Lib64=1 buildNewParser=1 buildPythonOpcodes=1 buildRelease=1
> buildUtilities=1 install=1 useALSA=1 useDouble=1 Word64=1
>
> If I take out the options with '64' in them, I get a complaint about
> /usr/local/lib/csound/plugins
> not being there.
>
> Thanks,
>
> Tobiah
>

I regularly build on a Phenom II X4 on o\penSuSE 11.x
There is a disagreement in th euse of libraries between SuSE and Ubuntu. 
The uild flag Lib64 controls whetehr to look in lib or lib64

What oiptions are you using?



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-01-16 20:02
FromTobiah
Subject[Csnd] Re: Re: Building csound on 64 bit machine.
On Sat, Jan 16, 2010 at 11:17 AM,   wrote:
>> I'm trying to build csound on a Phenom II X4 under Ubuntu 9.10.  I'm
>> getting this error:
>>
>> Error opening plugin directory '/usr/local/lib/csound/plugins64': No
>> such file or directory
>>
>> I'm building like this:
>>
>> scons Lib64=1 buildNewParser=1 buildPythonOpcodes=1 buildRelease=1
>> buildUtilities=1 install=1 useALSA=1 useDouble=1 Word64=1
>>
>> If I take out the options with '64' in them, I get a complaint about
>> /usr/local/lib/csound/plugins
>> not being there.
>>
>> Thanks,
>>
>> Tobiah
>>
>
> I regularly build on a Phenom II X4 on o\penSuSE 11.x
> There is a disagreement in th euse of libraries between SuSE and Ubuntu.
> The uild flag Lib64 controls whetehr to look in lib or lib64
>
> What oiptions are you using?

My scons command is above from the previous post.  I also tried:

scons buildNewParser=1 buildPythonOpcodes=1 buildRelease=1
buildUtilities=1 install=1 useALSA=1

With a fresh source tree.  That's when I get:

'/usr/local/lib/csound/plugins': No such file or directory

At what stage is that directory supposed to be created?  I tried
running the d65.sh script
by hand.  It didn't complain, but I got the same results.

Thanks,

Tobiah


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-01-17 02:36
FromTobiah
Subject[Csnd] Re: Re: Building csound on 64 bit machine.
>>> Error opening plugin directory '/usr/local/lib/csound/plugins64': No
>>> such file or directory

I should have mentioned that csound seems to build ok without errors,
but displays the above error and exits when run.


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-01-17 10:14
FromVictor Lazzarini
Subject[Csnd] Re: Re: Re: Building csound on 64 bit machine.
That message is there because you have set buildRelease=1, so Csound  
now looks for a default OPCODEDIR64. If you want a different  
OPCODEDIR64, just set environment variable.
On 17 Jan 2010, at 02:36, Tobiah wrote:

>>>> Error opening plugin directory '/usr/local/lib/csound/plugins64':  
>>>> No
>>>> such file or directory
>
> I should have mentioned that csound seems to build ok without errors,
> but displays the above error and exits when run.
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"



Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-01-17 12:13
Fromcameron bobro
Subject[Csnd] Midi mapping problem
How to split keyboard regions (incoming MIDI note numbers) in Csound?
 
Nothing I've tried is working- if...turnoff, limiting noteNum, monkeying with assigning different midi channels, etc.
 
This is the first time after all these years that I've tried this, LOL, I've always divvied instruments up but I would like a Csound drum machine running off  a single sequencer piano roll.
 
Been checking examples as well as the manual (I have the book), no luck so far!


 
 


Date2010-01-17 12:51
FromIain McCurdy
Subject[Csnd] RE: Midi mapping problem
You can use conditional interrogation of the incoming midi note number like this:


;THREE CONTRASTING WAVEFORMS
giwave1    ftgen    0,0,4096,10,1,0,0.8,0,0.6,0,0.4,0,0.2
giwave2    ftgen    0,0,4096,10,0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1
giwave3    ftgen    0,0,4096,10,1

instr    1
;READ IN MIDI NOTE NUMBER
inum notnum
;READ IN MIDI NOTE CPS
icps cpsmidi
;ANTI CLICK ENVELOPE
aenv   linsegr 0,0.01,5000,0.01,0
;INTERROGATE NOTE NUMBER AND USE CONDITIONAL BRANCHING TO ESTABLISH KEYGROUPS
if inum<48 then  ;KEYGROUP 1
   asig   oscili   aenv, icps, giwave1
elseif  inum>=48&&inum<=60 then  ;KEYGROUP 2
   asig   oscili   aenv, icps, giwave2
elseif  inum>=60 then  ;KEYGROUP 3
   asig   oscili   aenv, icps, giwave3
endif
outs  asig, asig
endin



Hope this helps,
Iain


Date: Sun, 17 Jan 2010 04:13:08 -0800
From: misterbobro@yahoo.com
To: csound@lists.bath.ac.uk
Subject: [Csnd] Midi mapping problem

How to split keyboard regions (incoming MIDI note numbers) in Csound?
 
Nothing I've tried is working- if...turnoff, limiting noteNum, monkeying with assigning different midi channels, etc.
 
This is the first time after all these years that I've tried this, LOL, I've always divvied instruments up but I would like a Csound drum machine running off  a single sequencer piano roll.
 
Been checking examples as well as the manual (I have the book), no luck so far!


 
 



We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now

Date2010-01-18 08:04
Fromcameron bobro
Subject[Csnd] Re: Midi mapping problem
mailing list doing nutty things, repost

Thanks Ian- this is a workaround I figured out (well your's is more elegantly written), but I'd like to call different instruments in the same orchestra according to note number/note number region, and call them, or note call them before they are calculated, as they are quite heavy on the CPU.

Ideal would be (in crude pseudo code):
if (note number region X), then instr 1
if (note number region Y), then instr 2

Part of the reason for the desirability of this approach is
the power of having a library of instrument "presets" to
copy-paste.

-Cameron Bobro

--- On Sun, 1/17/10, cameron bobro <misterbobro@yahoo.com> wrote:

From: cameron bobro <misterbobro@yahoo.com>
Subject: [Csnd] Midi mapping problem
To: csound@lists.bath.ac.uk
Date: Sunday, January 17, 2010, 4:13 AM

How to split keyboard regions (incoming MIDI note numbers) in Csound?
 
Nothing I've tried is working- if...turnoff, limiting noteNum, monkeying with assigning different midi channels, etc.
 
This is the first time after all these years that I've tried this, LOL, I've always divvied instruments up but I would like a Csound drum machine running off  a single sequencer piano roll.
 
Been checking examples as well as the manual (I have the book), no luck so far!


 
 



Date2010-01-18 09:06
FromIain McCurdy
Subject[Csnd] RE: Re: Midi mapping problem
Would subinstr be what you are looking for? Here is the same example done that way:



;THREE CONTRASTING WAVEFORMS
giwave1    ftgen    0,0,4096,10,1,0,0.8,0,0.6,0,0.4,0,0.2
giwave2    ftgen    0,0,4096,10,0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1
giwave3    ftgen    0,0,4096,10,1

instr    1
;READ IN MIDI NOTE NUMBER
inum notnum
;READ IN MIDI NOTE CPS
icps cpsmidi
;ANTI CLICK ENVELOPE
aenv   linsegr 0,0.01,1,0.01,0
;INTERROGATE NOTE NUMBER AND USE CONDITIONAL BRANCHING TO ESTABLISH KEYGROUPS
if inum<48 then  ;KEYGROUP 1
   a1,a2 subinstr 2, icps
elseif  inum>=48&&inum<=60 then  ;KEYGROUP 2
   a1,a2 subinstr 3, icps
elseif  inum>=60 then  ;KEYGROUP 3
   a1,a2 subinstr 4, icps
endif
outs  a1*aenv, a2*aenv
endin

instr    2 ;KEYGROUP 1
   a1   oscili   5000, p4, giwave1
   outs a1,a1
endin

instr    3 ;KEYGROUP 2
   a1   oscili   5000, p4, giwave2
   outs a1,a1
endin

instr    4 ;KEYGROUP 3
   a1   oscili   5000, p4, giwave3
   outs a1,a1
endin




Bye,
Iain


Date: Mon, 18 Jan 2010 00:04:58 -0800
From: misterbobro@yahoo.com
To: csound@lists.bath.ac.uk
Subject: [Csnd] Re: Midi mapping problem

mailing list doing nutty things, repost

Thanks Ian- this is a workaround I figured out (well your's is more elegantly written), but I'd like to call different instruments in the same orchestra according to note number/note number region, and call them, or note call them before they are calculated, as they are quite heavy on the CPU.

Ideal would be (in crude pseudo code):
if (note number region X), then instr 1
if (note number region Y), then instr 2

Part of the reason for the desirability of this approach is
the power of having a library of instrument "presets" to
copy-paste.

-Cameron Bobro

--- On Sun, 1/17/10, cameron bobro <misterbobro@yahoo.com> wrote:

From: cameron bobro <misterbobro@yahoo.com>
Subject: [Csnd] Midi mapping problem
To: csound@lists.bath.ac.uk
Date: Sunday, January 17, 2010, 4:13 AM

How to split keyboard regions (incoming MIDI note numbers) in Csound?
 
Nothing I've tried is working- if...turnoff, limiting noteNum, monkeying with assigning different midi channels, etc.
 
This is the first time after all these years that I've tried this, LOL, I've always divvied instruments up but I would like a Csound drum machine running off  a single sequencer piano roll.
 
Been checking examples as well as the manual (I have the book), no luck so far!


 
 




Got a cool Hotmail story? Tell us now

Date2010-01-18 10:07
Fromcameron bobro
Subject[Csnd] Re: RE: Re: Midi mapping problem
That looks like exactly what I'm looking for, thanks! Strange, I've never noticed this before, but now that I check, it's been in Csound since 4.21.

--- On Mon, 1/18/10, Iain McCurdy <i_mccurdy@hotmail.com> wrote:

From: Iain McCurdy <i_mccurdy@hotmail.com>
Subject: [Csnd] RE: Re: Midi mapping problem
To: csound@lists.bath.ac.uk
Date: Monday, January 18, 2010, 1:06 AM

Would subinstr be what you are looking for? Here is the same example done that way:



;THREE CONTRASTING WAVEFORMS
giwave1    ftgen    0,0,4096,10,1,0,0.8,0,0.6,0,0.4,0,0.2
giwave2    ftgen    0,0,4096,10,0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1
giwave3    ftgen    0,0,4096,10,1

instr    1
;READ IN MIDI NOTE NUMBER
inum notnum
;READ IN MIDI NOTE CPS
icps cpsmidi
;ANTI CLICK ENVELOPE
aenv   linsegr 0,0.01,1,0.01,0
;INTERROGATE NOTE NUMBER AND USE CONDITIONAL BRANCHING TO ESTABLISH KEYGROUPS
if inum<48 then  ;KEYGROUP 1
   a1,a2 subinstr 2, icps
elseif  inum>=48&&inum<=60 then  ;KEYGROUP 2
   a1,a2 subinstr 3, icps
elseif  inum>=60 then  ;KEYGROUP 3
   a1,a2 subinstr 4, icps
endif
outs  a1*aenv, a2*aenv
endin

instr    2 ;KEYGROUP 1
   a1   oscili   5000, p4, giwave1
   outs a1,a1
endin

instr    3 ;KEYGROUP 2
   a1   oscili   5000, p4, giwave2
   outs a1,a1
endin

instr    4 ;KEYGROUP 3
   a1   oscili   5000, p4, giwave3
   outs a1,a1
endin




Bye,
Iain


Date: Mon, 18 Jan 2010 00:04:58 -0800
From: misterbobro@yahoo.com
To: csound@lists.bath.ac.uk
Subject: [Csnd] Re: Midi mapping problem

mailing list doing nutty things, repost

Thanks Ian- this is a workaround I figured out (well your's is more elegantly written), but I'd like to call different instruments in the same orchestra according to note number/note number region, and call them, or note call them before they are calculated, as they are quite heavy on the CPU.

Ideal would be (in crude pseudo code):
if (note number region X), then instr 1
if (note number region Y), then instr 2

Part of the reason for the desirability of this approach is
the power of having a library of instrument "presets" to
copy-paste.

-Cameron Bobro

--- On Sun, 1/17/10, cameron bobro <misterbobro@yahoo.com> wrote:

From: cameron bobro <misterbobro@yahoo.com>
Subject: [Csnd] Midi mapping problem
To: csound@lists.bath.ac.uk
Date: Sunday, January 17, 2010, 4:13 AM

How to split keyboard regions (incoming MIDI note numbers) in Csound?
 
Nothing I've tried is working- if...turnoff, limiting noteNum, monkeying with assigning different midi channels, etc.
 
This is the first time after all these years that I've tried this, LOL, I've always divvied instruments up but I would like a Csound drum machine running off  a single sequencer piano roll.
 
Been checking examples as well as the manual (I have the book), no luck so far!


 
 




Got a cool Hotmail story? Tell us now


Date2010-01-18 11:36
Fromcameron bobro
Subject[Csnd] Re: Re: RE: Re: Midi mapping problem
subinstr works perfectly, thanks for pointing it out Iain.

And it seems to be a most efficient method as far as CPU, even with the if statements. Because I basically work contrapuntally, establishing note number regions and linking them to sub-instruments in one orchestra, working on one MIDI channel and one sequencer track looks like it is going to be the slickest approach of all. (I can just transpose a region in cases where there is crossed voicing). At any rate it is the best drum machine approach.