Csound Csound-dev Csound-tekno Search About

[Csnd] Loading VST with Csound 6.10

Date2018-02-22 21:26
FromRuben Sverre Gjertsen
Subject[Csnd] Loading VST with Csound 6.10
Hello,

I’m trying to use VST plugins within my csd-files, but I’m failing in the very first step of loading a plugin. Following the example in the manual, ( 
I try to start with this after the header:

giupsampler  init 0
giupsampler      vstinit         "/Library/Audio/Plug-Ins/VST/TOAHarpexUp.vst", 1
                 vstinfo         giupsampler

Running the csd giupsampler is not identified as a variable, even though it should be.  If this doesn’t work, I’m stuck on what the «instance» parameter should be:

"instance - the number which identifies the plugin, to be passed to other vst4cs opcodes."

Should it be a number or a variable like in the example?
If I get it working, this plugin should convert WXYZ to 16 channel output within an instrument.

I would be happy for some help.

Best
Ruben



 /usr/local/bin/csound /0RubenCsound/NewDevelopment3728322412.csd -A -3 -3 
:: 0dBFS level = 32768.0
:: --Csound version 6.10 (double samples) Dec 21 2017 
:: [commit: 3bc82359c20c6c35cf0240b9fe8c8fb4ad29ddf4]
:: libsndfile-1.0.25
:: UnifiedCSD:  /0RubenCsound/NewDevelopment3728322412.csd
:: STARTING FILE
:: Creating options
:: Creating orchestra
:: closing tag
:: Creating score
:: rtaudio: PortAudio module enabled ... 
:: using callback interface
:: rtmidi: PortMIDI module enabled
:: 
:: error: syntax error, unexpected T_IDENT  (token "vstinit") from file /0RubenCsound/NewDevelopment3728322412.csd (1)
::  line 41:
:: >>>giupsampler      vstinit <<<
:: Unexpected untyped word giupsampler when expecting a variable
:: Parsing failed due to invalid input!
:: Stopping on parser failure[m
:: [mcannot compile orchestra[m
:: [mend of score.   overall amps:      0.0
::   overall samples out of range:        0
:: 1 errors in performance
:: Elapsed time at end of performance: real: 0.115s, CPU: 0.113s

Date2018-02-22 21:35
From"Jeanette C."
SubjectRe: [Csnd] Loading VST with Csound 6.10
Feb 22 2018, Ruben Sverre Gjertsen has written:
...
> I try to start with this after the header:
>
> giupsampler  init 0
> giupsampler      vstinit         "/Library/Audio/Plug-Ins/VST/TOAHarpexUp.vst", 1
...
If this is a verbatim copy from your CSD, then try to comment out the
first line. An i-rate variable, can only be assigned once at init time.
So, the init statement should assign to it, being the first to attack
giupsampler.

If that doesn't work, you might better share your whole CSD.

Best wishes,

Jeanette

--------
* website: http://juliencoder.de - for summer is a state of sound
* SoundCloud: https://soundcloud.com/jeanette_c
* GitHub: https://github.com/fsilvain

Don't worry, you're gonna be alright,
But Cinderella's got to go <3
(Britney Spears)

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-22 21:36
FromSteven Yi
SubjectRe: [Csnd] Loading VST with Csound 6.10
You have:

:: error: syntax error, unexpected T_IDENT  (token "vstinit") from
file /0RubenCsound/NewDevelopment3728322412.csd (1)

but that is saying Csound doesn't understand vstinit, which implies
you don't have the VST opcodes on your computer.

On Thu, Feb 22, 2018 at 4:26 PM, Ruben Sverre Gjertsen
 wrote:
> Hello,
>
> I’m trying to use VST plugins within my csd-files, but I’m failing in the
> very first step of loading a plugin. Following the example in the manual, (
> http://ecmc.rochester.edu/ecmc/docs/csound/csound-manual-5.14/vstinit.html
> )
> I try to start with this after the header:
>
> giupsampler  init 0
> giupsampler      vstinit
> "/Library/Audio/Plug-Ins/VST/TOAHarpexUp.vst", 1
>                  vstinfo         giupsampler
>
> Running the csd giupsampler is not identified as a variable, even though it
> should be.  If this doesn’t work, I’m stuck on what the «instance» parameter
> should be:
>
> "instance - the number which identifies the plugin, to be passed to other
> vst4cs opcodes."
>
> Should it be a number or a variable like in the example?
> If I get it working, this plugin should convert WXYZ to 16 channel output
> within an instrument.
>
> I would be happy for some help.
>
> Best
> Ruben
>
>
>
>  /usr/local/bin/csound /0RubenCsound/NewDevelopment3728322412.csd -A -3 -3
> :: 0dBFS level = 32768.0
> :: --Csound version 6.10 (double samples) Dec 21 2017
> :: [commit: 3bc82359c20c6c35cf0240b9fe8c8fb4ad29ddf4]
> :: libsndfile-1.0.25
> :: UnifiedCSD:  /0RubenCsound/NewDevelopment3728322412.csd
> :: STARTING FILE
> :: Creating options
> :: Creating orchestra
> :: closing tag
> :: Creating score
> :: rtaudio: PortAudio module enabled ...
> :: using callback interface
> :: rtmidi: PortMIDI module enabled
> ::
> :: error: syntax error, unexpected T_IDENT  (token "vstinit") from file
> /0RubenCsound/NewDevelopment3728322412.csd (1)
> ::  line 41:
> :: >>>giupsampler      vstinit <<<
> :: Unexpected untyped word giupsampler when expecting a variable
> :: Parsing failed due to invalid input!
> :: Stopping on parser failure [m
> :: [mcannot compile orchestra [m
> :: [mend of score.   overall amps:      0.0
> ::   overall samples out of range:        0
> :: 1 errors in performance
> :: Elapsed time at end of performance: real: 0.115s, CPU: 0.113s
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-22 21:39
FromVictor Lazzarini
SubjectRe: [Csnd] Loading VST with Csound 6.10
If this is MacOS, these opcodes are not packaged in the 6.10 installer.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 22 Feb 2018, at 21:36, Steven Yi  wrote:
> 
> You have:
> 
> :: error: syntax error, unexpected T_IDENT  (token "vstinit") from
> file /0RubenCsound/NewDevelopment3728322412.csd (1)
> 
> but that is saying Csound doesn't understand vstinit, which implies
> you don't have the VST opcodes on your computer.
> 
> On Thu, Feb 22, 2018 at 4:26 PM, Ruben Sverre Gjertsen
>  wrote:
>> Hello,
>> 
>> I’m trying to use VST plugins within my csd-files, but I’m failing in the
>> very first step of loading a plugin. Following the example in the manual, (
>> http://ecmc.rochester.edu/ecmc/docs/csound/csound-manual-5.14/vstinit.html
>> )
>> I try to start with this after the header:
>> 
>> giupsampler  init 0
>> giupsampler      vstinit
>> "/Library/Audio/Plug-Ins/VST/TOAHarpexUp.vst", 1
>>                 vstinfo         giupsampler
>> 
>> Running the csd giupsampler is not identified as a variable, even though it
>> should be.  If this doesn’t work, I’m stuck on what the «instance» parameter
>> should be:
>> 
>> "instance - the number which identifies the plugin, to be passed to other
>> vst4cs opcodes."
>> 
>> Should it be a number or a variable like in the example?
>> If I get it working, this plugin should convert WXYZ to 16 channel output
>> within an instrument.
>> 
>> I would be happy for some help.
>> 
>> Best
>> Ruben
>> 
>> 
>> 
>> /usr/local/bin/csound /0RubenCsound/NewDevelopment3728322412.csd -A -3 -3
>> :: 0dBFS level = 32768.0
>> :: --Csound version 6.10 (double samples) Dec 21 2017
>> :: [commit: 3bc82359c20c6c35cf0240b9fe8c8fb4ad29ddf4]
>> :: libsndfile-1.0.25
>> :: UnifiedCSD:  /0RubenCsound/NewDevelopment3728322412.csd
>> :: STARTING FILE
>> :: Creating options
>> :: Creating orchestra
>> :: closing tag
>> :: Creating score
>> :: rtaudio: PortAudio module enabled ...
>> :: using callback interface
>> :: rtmidi: PortMIDI module enabled
>> ::
>> :: error: syntax error, unexpected T_IDENT  (token "vstinit") from file
>> /0RubenCsound/NewDevelopment3728322412.csd (1)
>> ::  line 41:
>> :: >>>giupsampler      vstinit <<<
>> :: Unexpected untyped word giupsampler when expecting a variable
>> :: Parsing failed due to invalid input!
>> :: Stopping on parser failure [m
>> :: [mcannot compile orchestra [m
>> :: [mend of score.   overall amps:      0.0
>> ::   overall samples out of range:        0
>> :: 1 errors in performance
>> :: Elapsed time at end of performance: real: 0.115s, CPU: 0.113s
>> Csound mailing list Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>> https://github.com/csound/csound/issues Discussions of bugs and features can
>> be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-22 21:57
FromRuben Sverre Gjertsen
SubjectRe: [Csnd] Loading VST with Csound 6.10
Thank you,
If the source text is available somewhere, would it work including the VST opcodes in text format? I see a few examples doing that (below).
Ruben

; produces the 3 channels 1st order; input: asound, kazimuth
opcode	ambi2D_encode_1a, aaa, ak	
asnd,kaz	xin
kaz = $M_PI*kaz/180
a0	=	asnd
a11	=	cos(kaz)*asnd
a12	=	sin(kaz)*asnd
		xout		a0,a11,a12
endop





> 22. feb. 2018 kl. 22.39 skrev Victor Lazzarini :
> 
> If this is MacOS, these opcodes are not packaged in the 6.10 installer.
> 
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> 
>> On 22 Feb 2018, at 21:36, Steven Yi  wrote:
>> 
>> You have:
>> 
>> :: error: syntax error, unexpected T_IDENT  (token "vstinit") from
>> file /0RubenCsound/NewDevelopment3728322412.csd (1)
>> 
>> but that is saying Csound doesn't understand vstinit, which implies
>> you don't have the VST opcodes on your computer.
>> 
>> On Thu, Feb 22, 2018 at 4:26 PM, Ruben Sverre Gjertsen
>>  wrote:
>>> Hello,
>>> 
>>> I’m trying to use VST plugins within my csd-files, but I’m failing in the
>>> very first step of loading a plugin. Following the example in the manual, (
>>> http://ecmc.rochester.edu/ecmc/docs/csound/csound-manual-5.14/vstinit.html
>>> )
>>> I try to start with this after the header:
>>> 
>>> giupsampler  init 0
>>> giupsampler      vstinit
>>> "/Library/Audio/Plug-Ins/VST/TOAHarpexUp.vst", 1
>>>                vstinfo         giupsampler
>>> 
>>> Running the csd giupsampler is not identified as a variable, even though it
>>> should be.  If this doesn’t work, I’m stuck on what the «instance» parameter
>>> should be:
>>> 
>>> "instance - the number which identifies the plugin, to be passed to other
>>> vst4cs opcodes."
>>> 
>>> Should it be a number or a variable like in the example?
>>> If I get it working, this plugin should convert WXYZ to 16 channel output
>>> within an instrument.
>>> 
>>> I would be happy for some help.
>>> 
>>> Best
>>> Ruben
>>> 
>>> 
>>> 
>>> /usr/local/bin/csound /0RubenCsound/NewDevelopment3728322412.csd -A -3 -3
>>> :: 0dBFS level = 32768.0
>>> :: --Csound version 6.10 (double samples) Dec 21 2017
>>> :: [commit: 3bc82359c20c6c35cf0240b9fe8c8fb4ad29ddf4]
>>> :: libsndfile-1.0.25
>>> :: UnifiedCSD:  /0RubenCsound/NewDevelopment3728322412.csd
>>> :: STARTING FILE
>>> :: Creating options
>>> :: Creating orchestra
>>> :: closing tag
>>> :: Creating score
>>> :: rtaudio: PortAudio module enabled ...
>>> :: using callback interface
>>> :: rtmidi: PortMIDI module enabled
>>> ::
>>> :: error: syntax error, unexpected T_IDENT  (token "vstinit") from file
>>> /0RubenCsound/NewDevelopment3728322412.csd (1)
>>> ::  line 41:
>>> :: >>>giupsampler      vstinit <<<
>>> :: Unexpected untyped word giupsampler when expecting a variable
>>> :: Parsing failed due to invalid input!
>>> :: Stopping on parser failure [m
>>> :: [mcannot compile orchestra [m
>>> :: [mend of score.   overall amps:      0.0
>>> ::   overall samples out of range:        0
>>> :: 1 errors in performance
>>> :: Elapsed time at end of performance: real: 0.115s, CPU: 0.113s
>>> Csound mailing list Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>> be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-23 06:28
FromVictor Lazzarini
SubjectRe: [Csnd] Loading VST with Csound 6.10
Not quite sure what you mean? The source code needs to be compiled and there were problems, that is why they were not included.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 22 Feb 2018, at 21:58, Ruben Sverre Gjertsen  wrote:
> 
> Thank you,
> If the source text is available somewhere, would it work including the VST opcodes in text format? I see a few examples doing that (below).
> Ruben
> 
> ; produces the 3 channels 1st order; input: asound, kazimuth
> opcode    ambi2D_encode_1a, aaa, ak    
> asnd,kaz    xin
> kaz = $M_PI*kaz/180
> a0    =    asnd
> a11    =    cos(kaz)*asnd
> a12    =    sin(kaz)*asnd
>        xout        a0,a11,a12
> endop
> 
> 
> 
> 
> 
>> 22. feb. 2018 kl. 22.39 skrev Victor Lazzarini :
>> 
>> If this is MacOS, these opcodes are not packaged in the 6.10 installer.
>> 
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> 
>>> On 22 Feb 2018, at 21:36, Steven Yi  wrote:
>>> 
>>> You have:
>>> 
>>> :: error: syntax error, unexpected T_IDENT  (token "vstinit") from
>>> file /0RubenCsound/NewDevelopment3728322412.csd (1)
>>> 
>>> but that is saying Csound doesn't understand vstinit, which implies
>>> you don't have the VST opcodes on your computer.
>>> 
>>> On Thu, Feb 22, 2018 at 4:26 PM, Ruben Sverre Gjertsen
>>>  wrote:
>>>> Hello,
>>>> 
>>>> I’m trying to use VST plugins within my csd-files, but I’m failing in the
>>>> very first step of loading a plugin. Following the example in the manual, (
>>>> http://ecmc.rochester.edu/ecmc/docs/csound/csound-manual-5.14/vstinit.html
>>>> )
>>>> I try to start with this after the header:
>>>> 
>>>> giupsampler  init 0
>>>> giupsampler      vstinit
>>>> "/Library/Audio/Plug-Ins/VST/TOAHarpexUp.vst", 1
>>>>               vstinfo         giupsampler
>>>> 
>>>> Running the csd giupsampler is not identified as a variable, even though it
>>>> should be.  If this doesn’t work, I’m stuck on what the «instance» parameter
>>>> should be:
>>>> 
>>>> "instance - the number which identifies the plugin, to be passed to other
>>>> vst4cs opcodes."
>>>> 
>>>> Should it be a number or a variable like in the example?
>>>> If I get it working, this plugin should convert WXYZ to 16 channel output
>>>> within an instrument.
>>>> 
>>>> I would be happy for some help.
>>>> 
>>>> Best
>>>> Ruben
>>>> 
>>>> 
>>>> 
>>>> /usr/local/bin/csound /0RubenCsound/NewDevelopment3728322412.csd -A -3 -3
>>>> :: 0dBFS level = 32768.0
>>>> :: --Csound version 6.10 (double samples) Dec 21 2017
>>>> :: [commit: 3bc82359c20c6c35cf0240b9fe8c8fb4ad29ddf4]
>>>> :: libsndfile-1.0.25
>>>> :: UnifiedCSD:  /0RubenCsound/NewDevelopment3728322412.csd
>>>> :: STARTING FILE
>>>> :: Creating options
>>>> :: Creating orchestra
>>>> :: closing tag
>>>> :: Creating score
>>>> :: rtaudio: PortAudio module enabled ...
>>>> :: using callback interface
>>>> :: rtmidi: PortMIDI module enabled
>>>> ::
>>>> :: error: syntax error, unexpected T_IDENT  (token "vstinit") from file
>>>> /0RubenCsound/NewDevelopment3728322412.csd (1)
>>>> ::  line 41:
>>>> :: >>>giupsampler      vstinit <<<
>>>> :: Unexpected untyped word giupsampler when expecting a variable
>>>> :: Parsing failed due to invalid input!
>>>> :: Stopping on parser failure [m
>>>> :: [mcannot compile orchestra [m
>>>> :: [mend of score.   overall amps:      0.0
>>>> ::   overall samples out of range:        0
>>>> :: 1 errors in performance
>>>> :: Elapsed time at end of performance: real: 0.115s, CPU: 0.113s
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>> be posted here
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>      https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-23 08:28
FromTarmo Johannes
SubjectRe: [Csnd] Loading VST with Csound 6.10
Hi, Ruben!

VST opcodes build fine now on Linux with some small tweaks on VST headers. Might be that it is possible to make it work on OSX as well, see README

If you build yourself and can experiment with it and make it work, I believe many users would be happy.


Greetings,
tarmo


2018-02-23 8:28 GMT+02:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
Not quite sure what you mean? The source code needs to be compiled and there were problems, that is why they were not included.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 22 Feb 2018, at 21:58, Ruben Sverre Gjertsen <Ruben.gjertsen@UIB.NO> wrote:
>
> Thank you,
> If the source text is available somewhere, would it work including the VST opcodes in text format? I see a few examples doing that (below).
> Ruben
>
> ; produces the 3 channels 1st order; input: asound, kazimuth
> opcode    ambi2D_encode_1a, aaa, ak
> asnd,kaz    xin
> kaz = $M_PI*kaz/180
> a0    =    asnd
> a11    =    cos(kaz)*asnd
> a12    =    sin(kaz)*asnd
>        xout        a0,a11,a12
> endop
>
>
>
>
>
>> 22. feb. 2018 kl. 22.39 skrev Victor Lazzarini <Victor.Lazzarini@MU.IE>:
>>
>> If this is MacOS, these opcodes are not packaged in the 6.10 installer.
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>>> On 22 Feb 2018, at 21:36, Steven Yi <stevenyi@GMAIL.COM> wrote:
>>>
>>> You have:
>>>
>>> :: error: syntax error, unexpected T_IDENT  (token "vstinit") from
>>> file /0RubenCsound/NewDevelopment3728322412.csd (1)
>>>
>>> but that is saying Csound doesn't understand vstinit, which implies
>>> you don't have the VST opcodes on your computer.
>>>
>>> On Thu, Feb 22, 2018 at 4:26 PM, Ruben Sverre Gjertsen
>>> <Ruben.gjertsen@uib.no> wrote:
>>>> Hello,
>>>>
>>>> I’m trying to use VST plugins within my csd-files, but I’m failing in the
>>>> very first step of loading a plugin. Following the example in the manual, (
>>>> http://ecmc.rochester.edu/ecmc/docs/csound/csound-manual-5.14/vstinit.html
>>>> )
>>>> I try to start with this after the header:
>>>>
>>>> giupsampler  init 0
>>>> giupsampler      vstinit
>>>> "/Library/Audio/Plug-Ins/VST/TOAHarpexUp.vst", 1
>>>>               vstinfo         giupsampler
>>>>
>>>> Running the csd giupsampler is not identified as a variable, even though it
>>>> should be.  If this doesn’t work, I’m stuck on what the «instance» parameter
>>>> should be:
>>>>
>>>> "instance - the number which identifies the plugin, to be passed to other
>>>> vst4cs opcodes."
>>>>
>>>> Should it be a number or a variable like in the example?
>>>> If I get it working, this plugin should convert WXYZ to 16 channel output
>>>> within an instrument.
>>>>
>>>> I would be happy for some help.
>>>>
>>>> Best
>>>> Ruben
>>>>
>>>>
>>>>
>>>> /usr/local/bin/csound /0RubenCsound/NewDevelopment3728322412.csd -A -3 -3
>>>> :: 0dBFS level = 32768.0
>>>> :: --Csound version 6.10 (double samples) Dec 21 2017
>>>> :: [commit: 3bc82359c20c6c35cf0240b9fe8c8fb4ad29ddf4]
>>>> :: libsndfile-1.0.25
>>>> :: UnifiedCSD:  /0RubenCsound/NewDevelopment3728322412.csd
>>>> :: STARTING FILE
>>>> :: Creating options
>>>> :: Creating orchestra
>>>> :: closing tag
>>>> :: Creating score
>>>> :: rtaudio: PortAudio module enabled ...
>>>> :: using callback interface
>>>> :: rtmidi: PortMIDI module enabled
>>>> ::
>>>> :: error: syntax error, unexpected T_IDENT  (token "vstinit") from file
>>>> /0RubenCsound/NewDevelopment3728322412.csd (1)
>>>> ::  line 41:
>>>> :: >>>giupsampler      vstinit <<<
>>>> :: Unexpected untyped word giupsampler when expecting a variable
>>>> :: Parsing failed due to invalid input!
>>>> :: Stopping on parser failure [m
>>>> :: [mcannot compile orchestra [m
>>>> :: [mend of score.   overall amps:      0.0
>>>> ::   overall samples out of range:        0
>>>> :: 1 errors in performance
>>>> :: Elapsed time at end of performance: real: 0.115s, CPU: 0.113s
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>> be posted here
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>      https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2018-02-23 10:17
FromMichael Gogins
SubjectRe: [Csnd] Loading VST with Csound 6.10
On linux the vst4cs and CsoundVST binaries are available from the csound-extended GitHub repository. There is one archive but in the near future I will create several archives for different features. 

On Feb 23, 2018 05:28, "Tarmo Johannes" <trmjhnns@gmail.com> wrote:
Hi, Ruben!

VST opcodes build fine now on Linux with some small tweaks on VST headers. Might be that it is possible to make it work on OSX as well, see README

If you build yourself and can experiment with it and make it work, I believe many users would be happy.


Greetings,
tarmo


2018-02-23 8:28 GMT+02:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
Not quite sure what you mean? The source code needs to be compiled and there were problems, that is why they were not included.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 22 Feb 2018, at 21:58, Ruben Sverre Gjertsen <Ruben.gjertsen@UIB.NO> wrote:
>
> Thank you,
> If the source text is available somewhere, would it work including the VST opcodes in text format? I see a few examples doing that (below).
> Ruben
>
> ; produces the 3 channels 1st order; input: asound, kazimuth
> opcode    ambi2D_encode_1a, aaa, ak
> asnd,kaz    xin
> kaz = $M_PI*kaz/180
> a0    =    asnd
> a11    =    cos(kaz)*asnd
> a12    =    sin(kaz)*asnd
>        xout        a0,a11,a12
> endop
>
>
>
>
>
>> 22. feb. 2018 kl. 22.39 skrev Victor Lazzarini <Victor.Lazzarini@MU.IE>:
>>
>> If this is MacOS, these opcodes are not packaged in the 6.10 installer.
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>>> On 22 Feb 2018, at 21:36, Steven Yi <stevenyi@GMAIL.COM> wrote:
>>>
>>> You have:
>>>
>>> :: error: syntax error, unexpected T_IDENT  (token "vstinit") from
>>> file /0RubenCsound/NewDevelopment3728322412.csd (1)
>>>
>>> but that is saying Csound doesn't understand vstinit, which implies
>>> you don't have the VST opcodes on your computer.
>>>
>>> On Thu, Feb 22, 2018 at 4:26 PM, Ruben Sverre Gjertsen
>>> <Ruben.gjertsen@uib.no> wrote:
>>>> Hello,
>>>>
>>>> I’m trying to use VST plugins within my csd-files, but I’m failing in the
>>>> very first step of loading a plugin. Following the example in the manual, (
>>>> http://ecmc.rochester.edu/ecmc/docs/csound/csound-manual-5.14/vstinit.html
>>>> )
>>>> I try to start with this after the header:
>>>>
>>>> giupsampler  init 0
>>>> giupsampler      vstinit
>>>> "/Library/Audio/Plug-Ins/VST/TOAHarpexUp.vst", 1
>>>>               vstinfo         giupsampler
>>>>
>>>> Running the csd giupsampler is not identified as a variable, even though it
>>>> should be.  If this doesn’t work, I’m stuck on what the «instance» parameter
>>>> should be:
>>>>
>>>> "instance - the number which identifies the plugin, to be passed to other
>>>> vst4cs opcodes."
>>>>
>>>> Should it be a number or a variable like in the example?
>>>> If I get it working, this plugin should convert WXYZ to 16 channel output
>>>> within an instrument.
>>>>
>>>> I would be happy for some help.
>>>>
>>>> Best
>>>> Ruben
>>>>
>>>>
>>>>
>>>> /usr/local/bin/csound /0RubenCsound/NewDevelopment3728322412.csd -A -3 -3
>>>> :: 0dBFS level = 32768.0
>>>> :: --Csound version 6.10 (double samples) Dec 21 2017
>>>> :: [commit: 3bc82359c20c6c35cf0240b9fe8c8fb4ad29ddf4]
>>>> :: libsndfile-1.0.25
>>>> :: UnifiedCSD:  /0RubenCsound/NewDevelopment3728322412.csd
>>>> :: STARTING FILE
>>>> :: Creating options
>>>> :: Creating orchestra
>>>> :: closing tag
>>>> :: Creating score
>>>> :: rtaudio: PortAudio module enabled ...
>>>> :: using callback interface
>>>> :: rtmidi: PortMIDI module enabled
>>>> ::
>>>> :: error: syntax error, unexpected T_IDENT  (token "vstinit") from file
>>>> /0RubenCsound/NewDevelopment3728322412.csd (1)
>>>> ::  line 41:
>>>> :: >>>giupsampler      vstinit <<<
>>>> :: Unexpected untyped word giupsampler when expecting a variable
>>>> :: Parsing failed due to invalid input!
>>>> :: Stopping on parser failure [m
>>>> :: [mcannot compile orchestra [m
>>>> :: [mend of score.   overall amps:      0.0
>>>> ::   overall samples out of range:        0
>>>> :: 1 errors in performance
>>>> :: Elapsed time at end of performance: real: 0.115s, CPU: 0.113s
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>> be posted here
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>      https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2018-02-24 17:46
FromRuben Sverre Gjertsen
SubjectRe: [Csnd] Loading VST with Csound 6.10
Ok, they need to be compiled. I would have a learning curve compiling new csound versions.
Ruben


> 23. feb. 2018 kl. 07.28 skrev Victor Lazzarini :
> 
> Not quite sure what you mean? The source code needs to be compiled and there were problems, that is why they were not included.
> 
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> 
>> On 22 Feb 2018, at 21:58, Ruben Sverre Gjertsen  wrote:
>> 
>> Thank you,
>> If the source text is available somewhere, would it work including the VST opcodes in text format? I see a few examples doing that (below).
>> Ruben
>> 
>> ; produces the 3 channels 1st order; input: asound, kazimuth
>> opcode    ambi2D_encode_1a, aaa, ak    
>> asnd,kaz    xin
>> kaz = $M_PI*kaz/180
>> a0    =    asnd
>> a11    =    cos(kaz)*asnd
>> a12    =    sin(kaz)*asnd
>>       xout        a0,a11,a12
>> endop
>> 
>> 
>> 
>> 
>> 
>>> 22. feb. 2018 kl. 22.39 skrev Victor Lazzarini :
>>> 
>>> If this is MacOS, these opcodes are not packaged in the 6.10 installer.
>>> 
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>> 
>>>> On 22 Feb 2018, at 21:36, Steven Yi  wrote:
>>>> 
>>>> You have:
>>>> 
>>>> :: error: syntax error, unexpected T_IDENT  (token "vstinit") from
>>>> file /0RubenCsound/NewDevelopment3728322412.csd (1)
>>>> 
>>>> but that is saying Csound doesn't understand vstinit, which implies
>>>> you don't have the VST opcodes on your computer.
>>>> 
>>>> On Thu, Feb 22, 2018 at 4:26 PM, Ruben Sverre Gjertsen
>>>>  wrote:
>>>>> Hello,
>>>>> 
>>>>> I’m trying to use VST plugins within my csd-files, but I’m failing in the
>>>>> very first step of loading a plugin. Following the example in the manual, (
>>>>> http://ecmc.rochester.edu/ecmc/docs/csound/csound-manual-5.14/vstinit.html
>>>>> )
>>>>> I try to start with this after the header:
>>>>> 
>>>>> giupsampler  init 0
>>>>> giupsampler      vstinit
>>>>> "/Library/Audio/Plug-Ins/VST/TOAHarpexUp.vst", 1
>>>>>              vstinfo         giupsampler
>>>>> 
>>>>> Running the csd giupsampler is not identified as a variable, even though it
>>>>> should be.  If this doesn’t work, I’m stuck on what the «instance» parameter
>>>>> should be:
>>>>> 
>>>>> "instance - the number which identifies the plugin, to be passed to other
>>>>> vst4cs opcodes."
>>>>> 
>>>>> Should it be a number or a variable like in the example?
>>>>> If I get it working, this plugin should convert WXYZ to 16 channel output
>>>>> within an instrument.
>>>>> 
>>>>> I would be happy for some help.
>>>>> 
>>>>> Best
>>>>> Ruben
>>>>> 
>>>>> 
>>>>> 
>>>>> /usr/local/bin/csound /0RubenCsound/NewDevelopment3728322412.csd -A -3 -3
>>>>> :: 0dBFS level = 32768.0
>>>>> :: --Csound version 6.10 (double samples) Dec 21 2017
>>>>> :: [commit: 3bc82359c20c6c35cf0240b9fe8c8fb4ad29ddf4]
>>>>> :: libsndfile-1.0.25
>>>>> :: UnifiedCSD:  /0RubenCsound/NewDevelopment3728322412.csd
>>>>> :: STARTING FILE
>>>>> :: Creating options
>>>>> :: Creating orchestra
>>>>> :: closing tag
>>>>> :: Creating score
>>>>> :: rtaudio: PortAudio module enabled ...
>>>>> :: using callback interface
>>>>> :: rtmidi: PortMIDI module enabled
>>>>> ::
>>>>> :: error: syntax error, unexpected T_IDENT  (token "vstinit") from file
>>>>> /0RubenCsound/NewDevelopment3728322412.csd (1)
>>>>> ::  line 41:
>>>>> :: >>>giupsampler      vstinit <<<
>>>>> :: Unexpected untyped word giupsampler when expecting a variable
>>>>> :: Parsing failed due to invalid input!
>>>>> :: Stopping on parser failure [m
>>>>> :: [mcannot compile orchestra [m
>>>>> :: [mend of score.   overall amps:      0.0
>>>>> ::   overall samples out of range:        0
>>>>> :: 1 errors in performance
>>>>> :: Elapsed time at end of performance: real: 0.115s, CPU: 0.113s
>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>>> be posted here
>>>> 
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>     https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>      https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-02-24 17:50
FromRuben Sverre Gjertsen
SubjectRe: [Csnd] Loading VST with Csound 6.10
Hi Tarmo,

Looking at that source code, I also found these ambisonic functions, which could be exactly what I need:
I’m looking for something to convert 1st order to third order ambisonics and then do tranforms (roll, pitch, jaw). My first thought was to use external VST’s, but if it could be integrated in Csound, that would be the best. I haven’t yet been using source code and compiled Csound myself though.

Best
Ruben




23. feb. 2018 kl. 09.28 skrev Tarmo Johannes <trmjhnns@GMAIL.COM>:

Hi, Ruben!

VST opcodes build fine now on Linux with some small tweaks on VST headers. Might be that it is possible to make it work on OSX as well, see README

If you build yourself and can experiment with it and make it work, I believe many users would be happy.


Greetings,
tarmo


2018-02-23 8:28 GMT+02:00 Victor Lazzarini <Victor.Lazzarini@mu.ie>:
Not quite sure what you mean? The source code needs to be compiled and there were problems, that is why they were not included.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 22 Feb 2018, at 21:58, Ruben Sverre Gjertsen <Ruben.gjertsen@UIB.NO> wrote:
>
> Thank you,
> If the source text is available somewhere, would it work including the VST opcodes in text format? I see a few examples doing that (below).
> Ruben
>
> ; produces the 3 channels 1st order; input: asound, kazimuth
> opcode    ambi2D_encode_1a, aaa, ak
> asnd,kaz    xin
> kaz = $M_PI*kaz/180
> a0    =    asnd
> a11    =    cos(kaz)*asnd
> a12    =    sin(kaz)*asnd
>        xout        a0,a11,a12
> endop
>
>
>
>
>
>> 22. feb. 2018 kl. 22.39 skrev Victor Lazzarini <Victor.Lazzarini@MU.IE>:
>>
>> If this is MacOS, these opcodes are not packaged in the 6.10 installer.
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>>> On 22 Feb 2018, at 21:36, Steven Yi <stevenyi@GMAIL.COM> wrote:
>>>
>>> You have:
>>>
>>> :: error: syntax error, unexpected T_IDENT  (token "vstinit") from
>>> file /0RubenCsound/NewDevelopment3728322412.csd (1)
>>>
>>> but that is saying Csound doesn't understand vstinit, which implies
>>> you don't have the VST opcodes on your computer.
>>>
>>> On Thu, Feb 22, 2018 at 4:26 PM, Ruben Sverre Gjertsen
>>> <Ruben.gjertsen@uib.no> wrote:
>>>> Hello,
>>>>
>>>> I’m trying to use VST plugins within my csd-files, but I’m failing in the
>>>> very first step of loading a plugin. Following the example in the manual, (
>>>> http://ecmc.rochester.edu/ecmc/docs/csound/csound-manual-5.14/vstinit.html
>>>> )
>>>> I try to start with this after the header:
>>>>
>>>> giupsampler  init 0
>>>> giupsampler      vstinit
>>>> "/Library/Audio/Plug-Ins/VST/TOAHarpexUp.vst", 1
>>>>               vstinfo         giupsampler
>>>>
>>>> Running the csd giupsampler is not identified as a variable, even though it
>>>> should be.  If this doesn’t work, I’m stuck on what the «instance» parameter
>>>> should be:
>>>>
>>>> "instance - the number which identifies the plugin, to be passed to other
>>>> vst4cs opcodes."
>>>>
>>>> Should it be a number or a variable like in the example?
>>>> If I get it working, this plugin should convert WXYZ to 16 channel output
>>>> within an instrument.
>>>>
>>>> I would be happy for some help.
>>>>
>>>> Best
>>>> Ruben
>>>>
>>>>
>>>>
>>>> /usr/local/bin/csound /0RubenCsound/NewDevelopment3728322412.csd -A -3 -3
>>>> :: 0dBFS level = 32768.0
>>>> :: --Csound version 6.10 (double samples) Dec 21 2017
>>>> :: [commit: 3bc82359c20c6c35cf0240b9fe8c8fb4ad29ddf4]
>>>> :: libsndfile-1.0.25
>>>> :: UnifiedCSD:  /0RubenCsound/NewDevelopment3728322412.csd
>>>> :: STARTING FILE
>>>> :: Creating options
>>>> :: Creating orchestra
>>>> :: closing tag
>>>> :: Creating score
>>>> :: rtaudio: PortAudio module enabled ...
>>>> :: using callback interface
>>>> :: rtmidi: PortMIDI module enabled
>>>> ::
>>>> :: error: syntax error, unexpected T_IDENT  (token "vstinit") from file
>>>> /0RubenCsound/NewDevelopment3728322412.csd (1)
>>>> ::  line 41:
>>>> :: >>>giupsampler      vstinit <<<
>>>> :: Unexpected untyped word giupsampler when expecting a variable
>>>> :: Parsing failed due to invalid input!
>>>> :: Stopping on parser failure [m
>>>> :: [mcannot compile orchestra [m
>>>> :: [mend of score.   overall amps:      0.0
>>>> ::   overall samples out of range:        0
>>>> :: 1 errors in performance
>>>> :: Elapsed time at end of performance: real: 0.115s, CPU: 0.113s
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features can
>>>> be posted here
>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>      https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here