[Csnd] STKRhodey, STKFlute, gogobel ... on Android Studio

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[Csnd] STKRhodey, STKFlute, gogobel ... on Android Studio

AndreaS

Hi list,

Can I use opcodes like STKRhodey in Android app? Android studio monitor gives this error:

08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound:  line 28:
                                                                            >>>
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: a
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: S
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: i
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: g
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound:    
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: S
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: T
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: K
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: R
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: h
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: o
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: d
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: e
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: y
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound:  <<<
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: Unexpected untyped word aSig when expecting a variable
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: Parsing failed due to invalid input!
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: Stopping on parser failure
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: cannot compile orchestra

The .csd file instead on Windows run usefully with STKRhodey.

If I substitute poscil with STKRhodey the file run on Android.

The instr is:

instr 1 ;simple electric piano
iGain = .1
iAmp veloc
iAmp = iAmp/127 ;convert velocity to 0dbfs
iNum notnum
iCps = cpsmidinn(iNum) ;notenum -> cps conversion
kEnv   madsr  .05, .1, iAmp, .2
kv1	madsr	.05, .1, 100, .2			;(FM) Modulator Index One
kv5    =  50             ;ADSR 2 and 4 target
;asig   STKRhodey ifrq, iamp,     [kmod, kv1[, kcross, kv2[, klfo, kv3[, klfodepth, kv4[, kadsr, kv5]]]]]
aSig  STKRhodey iCps, iAmp, 2,   kv1,  4,      10,   11,   100,  1,         3,    128,    kv5
;aSig poscil iAmp, iCps, 1 ;I have to substitute previous line!

aSig   = aSig * kEnv * iGain
out aSig
endin


Greetings

Andrea S.

Csound mailing list [hidden email] 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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] STKRhodey, STKFlute, gogobel ... on Android Studio

rorywalsh
You probably need to build and then include those plugin opcode libraries in your app. I could be wrong, but i don't think they ship with CsoundAndroid? And if they do, you may still need to specify the libraries using the --lib* command line flag.

* Not not be --lib, you'll need to check the manual, it's something like that though..

On 2 Aug 2017 4:51 p.m., "Andrea Strappa" <[hidden email]> wrote:

Hi list,

Can I use opcodes like STKRhodey in Android app? Android studio monitor gives this error:

08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound:  line 28:
                                                                            >>>
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: a
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: S
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: i
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: g
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound:    
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: S
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: T
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: K
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: R
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: h
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: o
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: d
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: e
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: y
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound:  <<<
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: Unexpected untyped word aSig when expecting a variable
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: Parsing failed due to invalid input!
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: Stopping on parser failure
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: cannot compile orchestra

The .csd file instead on Windows run usefully with STKRhodey.

If I substitute poscil with STKRhodey the file run on Android.

The instr is:

instr 1 ;simple electric piano
iGain = .1
iAmp veloc
iAmp = iAmp/127 ;convert velocity to 0dbfs
iNum notnum
iCps = cpsmidinn(iNum) ;notenum -> cps conversion
kEnv   madsr  .05, .1, iAmp, .2
kv1	madsr	.05, .1, 100, .2			;(FM) Modulator Index One
kv5    =  50             ;ADSR 2 and 4 target
;asig   STKRhodey ifrq, iamp,     [kmod, kv1[, kcross, kv2[, klfo, kv3[, klfodepth, kv4[, kadsr, kv5]]]]]
aSig  STKRhodey iCps, iAmp, 2,   kv1,  4,      10,   11,   100,  1,         3,    128,    kv5
;aSig poscil iAmp, iCps, 1 ;I have to substitute previous line!

aSig   = aSig * kEnv * iGain
out aSig
endin


Greetings

Andrea S.

Csound mailing list [hidden email] 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 [hidden email] 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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] STKRhodey, STKFlute, gogobel ... on Android Studio

jpff
Just to note the stk opcodes are also (mainly) available as eg wgflute, Rhode, .... O
Not sure if they are in Android version

Sent from TypeApp
On Aug 2, 2017, at 16:40, Rory Walsh <[hidden email]> wrote:
You probably need to build and then include those plugin opcode libraries in your app. I could be wrong, but i don't think they ship with CsoundAndroid? And if they do, you may still need to specify the libraries using the --lib* command line flag.

* Not not be --lib, you'll need to check the manual, it's something like that though..

On 2 Aug 2017 4:51 p.m., "Andrea Strappa" < [hidden email]> wrote:

Hi list,

Can I use opcodes like STKRhodey in Android app? Android studio monitor gives this error:

08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound:  line 28:
                                                                            >>>
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: a
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: S
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: i
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: g
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound:    
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: S
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: T
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: K
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: R
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: h
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: o
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: d
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: e
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: y
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound:  <<<
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: Unexpected untyped word aSig when expecting a variable
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: Parsing failed due to invalid input!
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: Stopping on parser failure
08-02 16:04:13.013 1230-1341/com.strapparts.csound_android I/AndroidCsound: cannot compile orchestra

The .csd file instead on Windows run usefully with STKRhodey.

If I substitute poscil with STKRhodey the file run on Android.

The instr is:

instr 1 ;simple electric piano
iGain = .1
iAmp veloc
iAmp = iAmp/127 ;convert velocity to 0dbfs
iNum notnum
iCps = cpsmidinn(iNum) ;notenum -> cps conversion
kEnv   madsr  .05, .1, iAmp, .2
kv1 madsr .05, .1, 100, .2   ;(FM) Modulator Index One
kv5    =  50             ;ADSR 2 and 4 target
;asig   STKRhodey ifrq, iamp,     [kmod, kv1[, kcross, kv2[, klfo, kv3[, klfodepth, kv4[, kadsr, kv5]]]]]
aSig  STKRhodey iCps, iAmp, 2,   kv1,  4,      10,   11,   100,  1,         3,    128,    kv5
;aSig poscil iAmp, iCps, 1 ;I have to substitute previous line!

aSig   = aSig * kEnv * iGain
out aSig
endin


Greetings

Andrea S.

Csound mailing list [hidden email] 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 [hidden email] 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 [hidden email] 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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] STKRhodey, STKFlute, gogobel ... on Android Studio

Michael Gogins-2
The C++ STK opcodes are part of the current version of the Csound for
Android app on the Google Play app store here:

https://play.google.com/store/apps/details?id=com.csounds.Csound6&hl=en

If you are trying to build your own app you can adapt the Android
build file for the STK from here:

https://github.com/csound/csound/tree/develop/android/pluginlibs/stk-csound/jni

Regards,
Mike

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


On Wed, Aug 2, 2017 at 12:40 PM, John ff <[hidden email]> wrote:

> Just to note the stk opcodes are also (mainly) available as eg wgflute,
> Rhode, .... O
> Not sure if they are in Android version
>
> Sent from TypeApp
> On Aug 2, 2017, at 16:40, Rory Walsh <[hidden email]> wrote:
>>
>> You probably need to build and then include those plugin opcode libraries
>> in your app. I could be wrong, but i don't think they ship with
>> CsoundAndroid? And if they do, you may still need to specify the libraries
>> using the --lib* command line flag.
>>
>> * Not not be --lib, you'll need to check the manual, it's something like
>> that though..
>>
>> On 2 Aug 2017 4:51 p.m., "Andrea Strappa" < [hidden email]> wrote:
>>>
>>> Hi list,
>>>
>>> Can I use opcodes like STKRhodey in Android app? Android studio monitor
>>> gives this error:
>>>
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound:  line 28:
>>>
>>> >>>
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound: a
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound: S
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound: i
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound: g
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound:
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound: S
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound: T
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound: K
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound: R
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound: h
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound: o
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound: d
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound: e
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound: y
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound:  <<<
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound: Unexpected untyped word aSig when expecting a variable
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound: Parsing failed due to invalid input!
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound: Stopping on parser failure
>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>> I/AndroidCsound: cannot compile orchestra
>>>
>>> The .csd file instead on Windows run usefully with STKRhodey.
>>>
>>> If I substitute poscil with STKRhodey the file run on Android.
>>>
>>> The instr is:
>>>
>>> instr 1 ;simple electric piano
>>> iGain = .1
>>> iAmp veloc
>>> iAmp = iAmp/127 ;convert velocity to 0dbfs
>>> iNum notnum
>>> iCps = cpsmidinn(iNum) ;notenum -> cps conversion
>>> kEnv   madsr  .05, .1, iAmp, .2
>>> kv1 madsr .05, .1, 100, .2   ;(FM) Modulator Index One
>>> kv5    =  50             ;ADSR 2 and 4 target
>>> ;asig   STKRhodey ifrq, iamp,     [kmod, kv1[, kcross, kv2[, klfo, kv3[,
>>> klfodepth, kv4[, kadsr, kv5]]]]]
>>> aSig  STKRhodey iCps, iAmp, 2,   kv1,  4,      10,   11,   100,  1,
>>> 3,    128,    kv5
>>> ;aSig poscil iAmp, iCps, 1 ;I have to substitute previous line!
>>>
>>> aSig   = aSig * kEnv * iGain
>>> out aSig
>>> endin
>>>
>>>
>>> Greetings
>>>
>>> Andrea S.
>>>
>>> Csound mailing list [hidden email]
>>> 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 [hidden email]
>> 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 [hidden email]
> 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
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] STKRhodey, STKFlute, gogobel ... on Android Studio

AndreaS
I'll try to adapt thoose indications. Thank you!

Andrea S.


Il 02/08/2017 18:46, Michael Gogins ha scritto:

> The C++ STK opcodes are part of the current version of the Csound for
> Android app on the Google Play app store here:
>
> https://play.google.com/store/apps/details?id=com.csounds.Csound6&hl=en
>
> If you are trying to build your own app you can adapt the Android
> build file for the STK from here:
>
> https://github.com/csound/csound/tree/develop/android/pluginlibs/stk-csound/jni
>
> Regards,
> Mike
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Wed, Aug 2, 2017 at 12:40 PM, John ff <[hidden email]> wrote:
>> Just to note the stk opcodes are also (mainly) available as eg wgflute,
>> Rhode, .... O
>> Not sure if they are in Android version
>>
>> Sent from TypeApp
>> On Aug 2, 2017, at 16:40, Rory Walsh <[hidden email]> wrote:
>>> You probably need to build and then include those plugin opcode libraries
>>> in your app. I could be wrong, but i don't think they ship with
>>> CsoundAndroid? And if they do, you may still need to specify the libraries
>>> using the --lib* command line flag.
>>>
>>> * Not not be --lib, you'll need to check the manual, it's something like
>>> that though..
>>>
>>> On 2 Aug 2017 4:51 p.m., "Andrea Strappa" < [hidden email]> wrote:
>>>> Hi list,
>>>>
>>>> Can I use opcodes like STKRhodey in Android app? Android studio monitor
>>>> gives this error:
>>>>
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound:  line 28:
>>>>
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: a
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: S
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: i
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: g
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound:
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: S
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: T
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: K
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: R
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: h
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: o
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: d
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: e
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: y
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound:  <<<
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: Unexpected untyped word aSig when expecting a variable
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: Parsing failed due to invalid input!
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: Stopping on parser failure
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: cannot compile orchestra
>>>>
>>>> The .csd file instead on Windows run usefully with STKRhodey.
>>>>
>>>> If I substitute poscil with STKRhodey the file run on Android.
>>>>
>>>> The instr is:
>>>>
>>>> instr 1 ;simple electric piano
>>>> iGain = .1
>>>> iAmp veloc
>>>> iAmp = iAmp/127 ;convert velocity to 0dbfs
>>>> iNum notnum
>>>> iCps = cpsmidinn(iNum) ;notenum -> cps conversion
>>>> kEnv   madsr  .05, .1, iAmp, .2
>>>> kv1 madsr .05, .1, 100, .2   ;(FM) Modulator Index One
>>>> kv5    =  50             ;ADSR 2 and 4 target
>>>> ;asig   STKRhodey ifrq, iamp,     [kmod, kv1[, kcross, kv2[, klfo, kv3[,
>>>> klfodepth, kv4[, kadsr, kv5]]]]]
>>>> aSig  STKRhodey iCps, iAmp, 2,   kv1,  4,      10,   11,   100,  1,
>>>> 3,    128,    kv5
>>>> ;aSig poscil iAmp, iCps, 1 ;I have to substitute previous line!
>>>>
>>>> aSig   = aSig * kEnv * iGain
>>>> out aSig
>>>> endin
>>>>
>>>>
>>>> Greetings
>>>>
>>>> Andrea S.
>>>>
>>>> Csound mailing list [hidden email]
>>>> 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 [hidden email]
>>> 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 [hidden email]
>> 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
> [hidden email]
> 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
[hidden email]
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
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd] STKRhodey, STKFlute, gogobel ... on Android Studio

AndreaS
In reply to this post by Michael Gogins-2
Hi list,

thank you again for the answers, I studied the question but I still have
some doubts.

I saw that the libraries for the opcodes are in the folder 'pluginlibs'
in the Csound-android library.
How can I include them in my project on Android Studio?
Have I to import the folder as a module like I did to include the
CsoundAndroid library?

Greetings

Andrea


Il 02/08/2017 18:46, Michael Gogins ha scritto:

> The C++ STK opcodes are part of the current version of the Csound for
> Android app on the Google Play app store here:
>
> https://play.google.com/store/apps/details?id=com.csounds.Csound6&hl=en
>
> If you are trying to build your own app you can adapt the Android
> build file for the STK from here:
>
> https://github.com/csound/csound/tree/develop/android/pluginlibs/stk-csound/jni
>
> Regards,
> Mike
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Wed, Aug 2, 2017 at 12:40 PM, John ff <[hidden email]> wrote:
>> Just to note the stk opcodes are also (mainly) available as eg wgflute,
>> Rhode, .... O
>> Not sure if they are in Android version
>>
>> Sent from TypeApp
>> On Aug 2, 2017, at 16:40, Rory Walsh <[hidden email]> wrote:
>>> You probably need to build and then include those plugin opcode libraries
>>> in your app. I could be wrong, but i don't think they ship with
>>> CsoundAndroid? And if they do, you may still need to specify the libraries
>>> using the --lib* command line flag.
>>>
>>> * Not not be --lib, you'll need to check the manual, it's something like
>>> that though..
>>>
>>> On 2 Aug 2017 4:51 p.m., "Andrea Strappa" < [hidden email]> wrote:
>>>> Hi list,
>>>>
>>>> Can I use opcodes like STKRhodey in Android app? Android studio monitor
>>>> gives this error:
>>>>
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound:  line 28:
>>>>
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: a
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: S
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: i
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: g
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound:
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: S
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: T
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: K
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: R
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: h
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: o
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: d
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: e
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: y
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound:  <<<
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: Unexpected untyped word aSig when expecting a variable
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: Parsing failed due to invalid input!
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: Stopping on parser failure
>>>> 08-02 16:04:13.013 1230-1341/com.strapparts.csound_android
>>>> I/AndroidCsound: cannot compile orchestra
>>>>
>>>> The .csd file instead on Windows run usefully with STKRhodey.
>>>>
>>>> If I substitute poscil with STKRhodey the file run on Android.
>>>>
>>>> The instr is:
>>>>
>>>> instr 1 ;simple electric piano
>>>> iGain = .1
>>>> iAmp veloc
>>>> iAmp = iAmp/127 ;convert velocity to 0dbfs
>>>> iNum notnum
>>>> iCps = cpsmidinn(iNum) ;notenum -> cps conversion
>>>> kEnv   madsr  .05, .1, iAmp, .2
>>>> kv1 madsr .05, .1, 100, .2   ;(FM) Modulator Index One
>>>> kv5    =  50             ;ADSR 2 and 4 target
>>>> ;asig   STKRhodey ifrq, iamp,     [kmod, kv1[, kcross, kv2[, klfo, kv3[,
>>>> klfodepth, kv4[, kadsr, kv5]]]]]
>>>> aSig  STKRhodey iCps, iAmp, 2,   kv1,  4,      10,   11,   100,  1,
>>>> 3,    128,    kv5
>>>> ;aSig poscil iAmp, iCps, 1 ;I have to substitute previous line!
>>>>
>>>> aSig   = aSig * kEnv * iGain
>>>> out aSig
>>>> endin
>>>>
>>>>
>>>> Greetings
>>>>
>>>> Andrea S.
>>>>
>>>> Csound mailing list [hidden email]
>>>> 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 [hidden email]
>>> 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 [hidden email]
>> 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
> [hidden email]
> 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
[hidden email]
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