Csound Csound-dev Csound-tekno Search About

[Csnd] specify opcode output type

Date2013-12-06 07:58
FromTarmo Johannes
Subject[Csnd] specify opcode output type

Hi,

 

I cannot find info, if I want to use adsr in an expression in a rate like:

 

a1 oscili adsr(0.05,0.1,0.4,p3*0.75)*0.1,cpsmidinn(p4),-1

 

how do I do that?

 

a1 oscili adsr.a(0.05,0.1,0.4,p3*0.75)*0.1,cpsmidinn(p4),-1

 

gives an error

 

error: syntax error, unexpected T_OPCODEB, expecting NEWLINE or ',' (token "a") line 12:

>>>a1 oscili adsr.a <<<

 

thanks!

 

tarmo


Date2013-12-06 08:33
FromRory Walsh
SubjectRe: [Csnd] specify opcode output type

adsr:k() I think?

sent from a mobile device...

On 6 Dec 2013 07:56, "Tarmo Johannes" <tarmo.johannes@otsakool.edu.ee> wrote:

Hi,

 

I cannot find info, if I want to use adsr in an expression in a rate like:

 

a1 oscili adsr(0.05,0.1,0.4,p3*0.75)*0.1,cpsmidinn(p4),-1

 

how do I do that?

 

a1 oscili adsr.a(0.05,0.1,0.4,p3*0.75)*0.1,cpsmidinn(p4),-1

 

gives an error

 

error: syntax error, unexpected T_OPCODEB, expecting NEWLINE or ',' (token "a") line 12:

>>>a1 oscili adsr.a <<<

 

thanks!

 

tarmo


Date2013-12-06 08:38
FromTarmo Johannes
SubjectRe: [Csnd] specify opcode output type

That was, it, <opcode>':'<type>, thanks!

 

tarmo

 

On Friday 06 December 2013 08:33:31 Rory Walsh wrote:

adsr:k() I think?

sent from a mobile device...

On 6 Dec 2013 07:56, "Tarmo Johannes" <tarmo.johannes@otsakool.edu.ee> wrote:

Hi,

 

I cannot find info, if I want to use adsr in an expression in a rate like:

 

a1 oscili adsr(0.05,0.1,0.4,p3*0.75)*0.1,cpsmidinn(p4),-1

 

how do I do that?

 

a1 oscili adsr.a(0.05,0.1,0.4,p3*0.75)*0.1,cpsmidinn(p4),-1

 

gives an error

 

error: syntax error, unexpected T_OPCODEB, expecting NEWLINE or ',' (token "a") line 12:

>>>a1 oscili adsr.a <<<

 

thanks!

 

tarmo




Date2013-12-06 08:51
FromDavid Worrall
SubjectRe: [Csnd] drone.py

or a1 oscili adsr.a(0.05,0.1,0.4,p3*0.75)*0.1,cpsmidinn(p4),-1
On 05.12.2013, at 22:19, Michael Gogins <michael.gogins@gmail.com> wrote:

Hi,

 

I cannot find info, if I want to use adsr in an expression in a rate like:

 

a1 oscili adsr(0.05,0.1,0.4,p3*0.75)*0.1,cpsmidinn(p4),-1

 

how do I do that?

 

a1 oscili adsr.a(0.05,0.1,0.4,p3*0.75)*0.1,cpsmidinn(p4),-1

a1 oscili adsr.a(0.05,0.1,0.4,(p3*0.75)*0.1,cpsmidinn(p4),-1
perhaps?
 

 
gives an error

 

error: syntax error, unexpected T_OPCODEB, expecting NEWLINE or ',' (token "a") line 12:
>>>a1 oscili adsr.a <<<

 

thanks!

 

tarmo

______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de 





Date2013-12-06 08:52
FromDavid Worrall
SubjectRe: [Csnd] drone.py
forget my suggestion - i need to find my glasses!

D.


On 06.12.2013, at 09:51, David Worrall <david.worrall@iis.fraunhofer.de> wrote:


or a1 oscili adsr.a(0.05,0.1,0.4,p3*0.75)*0.1,cpsmidinn(p4),-1
On 05.12.2013, at 22:19, Michael Gogins <michael.gogins@gmail.com> wrote:

Hi,

 

I cannot find info, if I want to use adsr in an expression in a rate like:

 

a1 oscili adsr(0.05,0.1,0.4,p3*0.75)*0.1,cpsmidinn(p4),-1

 

how do I do that?

 

a1 oscili adsr.a(0.05,0.1,0.4,p3*0.75)*0.1,cpsmidinn(p4),-1

a1 oscili adsr.a(0.05,0.1,0.4,(p3*0.75)*0.1,cpsmidinn(p4),-1
perhaps?
 

 
gives an error

 

error: syntax error, unexpected T_OPCODEB, expecting NEWLINE or ',' (token "a") line 12:
>>>a1 oscili adsr.a <<<

 

thanks!

 

tarmo

______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de 





______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de 





Date2013-12-09 20:48
FromMichael Gogins
SubjectRe: [Csnd] drone.py
I have fixed, in the develop branch, the errors that were causing Menno problems with the examples/python/Lindenmayer.py script.

This is not a good piece of music, but it does now work. I had to make several changes to both CsoundAC.csd and to the Lindenmayer.py script itself.  I also made a change to frontends/CsoundAC/MusicModel.cpp but I am not sure it is required.

The changes were to put in comments in Lindenmayer.py with instructions on where and how to run it, to take an f 0 statement no longer required out of CsoundAC.csd, and to #ifdef out VST opcodes that may not exist on the user's computer.

I will try to make this piece produce better music as well, in the coming days.

Regards,
Mike


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Fri, Dec 6, 2013 at 3:52 AM, David Worrall <david.worrall@iis.fraunhofer.de> wrote:
forget my suggestion - i need to find my glasses!

D.


On 06.12.2013, at 09:51, David Worrall <david.worrall@iis.fraunhofer.de> wrote:


or a1 oscili adsr.a(0.05,0.1,0.4,p3*0.75)*0.1,cpsmidinn(p4),-1
On 05.12.2013, at 22:19, Michael Gogins <michael.gogins@gmail.com> wrote:

Hi,

 

I cannot find info, if I want to use adsr in an expression in a rate like:

 

a1 oscili adsr(0.05,0.1,0.4,p3*0.75)*0.1,cpsmidinn(p4),-1

 

how do I do that?

 

a1 oscili adsr.a(0.05,0.1,0.4,p3*0.75)*0.1,cpsmidinn(p4),-1

a1 oscili adsr.a(0.05,0.1,0.4,(p3*0.75)*0.1,cpsmidinn(p4),-1
perhaps?
 

 
gives an error

 

error: syntax error, unexpected T_OPCODEB, expecting NEWLINE or ',' (token "a") line 12:
>>>a1 oscili adsr.a <<<

 

thanks!

 

tarmo

______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de 





______________________________________
Prof. Dr. David Worrall
Emerging Audio Research (EAR)
Audio Department
International Audio Laboratories Erlangen
Fraunhofer-Institut für Integrierte Schaltungen IIS
Am Wolfsmantel 33
91058 Erlangen
Telefon  +49 (0) 91 31 / 7 76-62 44
Fax      +49 (0) 91 31 / 7 76-20 99
E-Mail: david.worrall@iis.fraunhofer.de
Internet: www.iis.fraunhofer.de