Csound Csound-dev Csound-tekno Search About

STKRhodey, STKFlute, gogobel ... on Android Studio

Date2017-08-02 15:50
FromAndrea Strappa
SubjectSTKRhodey, STKFlute, gogobel ... on Android Studio

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.


Date2017-08-02 16:39
FromRory Walsh
SubjectRe: STKRhodey, STKFlute, gogobel ... on Android Studio
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" <a_strappa@tin.it> 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 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

Date2017-08-02 17:40
FromJohn ff
SubjectRe: STKRhodey, STKFlute, gogobel ... on Android Studio
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 <rorywalsh@EAR.IE> 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" < a_strappa@tin.it> 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 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

Date2017-08-02 17:46
FromMichael Gogins
SubjectRe: STKRhodey, STKFlute, gogobel ... on Android Studio
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  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  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" < a_strappa@tin.it> 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 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

Date2017-08-03 09:40
FromAndrea Strappa
SubjectRe: STKRhodey, STKFlute, gogobel ... on Android Studio
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  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  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" < a_strappa@tin.it> 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 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

Date2017-08-25 09:34
FromAndrea Strappa
SubjectRe: STKRhodey, STKFlute, gogobel ... on Android Studio
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  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  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" < a_strappa@tin.it> 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 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