| Not an extert in Android amongst other things) but that looks like it does
not ave the fluidsynth opcodes defined -- hence the syntax error.
==John ff
On Thu, 18 Aug 2016, Ayush wrote:
> Hi All,
> I have been trying csound on Android.
>
>
>
>
> ; Select audio/midi flags here according to platform
> --opcode-lib=./libshare_libfluidOpcodes.so
> -odac ;;;realtime audio out and realtime midi in
> ;-iadc ;;;uncomment -iadc if realtime audio input is needed too
> ; For Non-realtime ouput leave only the line below:
> ;-o fluidNote.wav -W ;;; for file output any platform
>
>
>
> sr = 44100
> ksmps = 32
> nchnls = 2
> 0dbfs = 1
>
> giengine fluidEngine
> ; soundfont path to manual/examples
> isfnum fluidLoad "./sf_GMbank.sf2", giengine, 1
> fluidProgramSelect giengine, 1, isfnum, 0, 0
>
> instr 1
>
> mididefault 60, p3
> midinoteonkey p4, p5
> ikey init p4
> ivel init p5
> fluidNote giengine, 1, ikey, ivel
>
> endin
>
> instr 99
>
> imvol init 7
> asigl, asigr fluidOut giengine
> outs asigl*imvol, asigr*imvol
>
> endin
>
>
>
>
>
>
>
> The above code works perfectly on Android lollipop or less.
>
> But it shows an error in Android marshmallow
>
>
> I am putting a log file
>
> 08-18 20:55:27.550 3279 28060 I GCoreUlr: Successfully inserted 1 locations
> 08-18 20:55:27.728 776 802 D WifiService: acquireWifiLockLocked:
> WifiLock{NlpWifiLock type=2 binder=android.os.BinderProxy@82d2fac}
> 08-18 20:55:28.650 776 2845 D WifiService: releaseWifiLockLocked:
> WifiLock{NlpWifiLock type=2 binder=android.os.BinderProxy@82d2fac}
> 08-18 20:55:33.694 776 27470 D NetlinkSocketObserver:
> NeighborEvent{elapsedMs=119112453, 192.168.2.1, [08863BECE639],
> RTM_NEWNEIGH, NUD_PROBE}
> 08-18 20:55:38.715 30247 30613 I AndroidCsound: setOpenSlCallbacks
> 08-18 20:55:38.716 30247 30613 I AndroidCsound: ==set callbacks
> 08-18 20:55:38.717 30247 30613 I AndroidCsound: ==callbacks set
> 08-18 20:55:38.717 30247 30613 I AndroidCsound: UnifiedCSD: ./template.csd
> 08-18 20:55:38.717 30247 30613 I AndroidCsound: STARTING FILE
> 08-18 20:55:38.717 30247 30613 I AndroidCsound: Creating options
> 08-18 20:55:38.717 30247 30613 I AndroidCsound: Creating orchestra
> 08-18 20:55:38.717 30247 30613 I AndroidCsound: Creating score
> 08-18 20:55:38.717 30247 30613 I AndroidCsound: Loading command-line
> libraries:
> 08-18 20:55:38.723 30247 30613 I AndroidCsound:
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: error: syntax error,
> unexpected T_IDENT (token "fluidEngine")
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: from file ./template.csd
> (1)
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: line 17:
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: >>>
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: g
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: i
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: e
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: n
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: g
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: i
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: n
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: e
> 08-18 20:55:38.723 30247 30613 I AndroidCsound:
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: f
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: l
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: u
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: i
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: d
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: E
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: n
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: g
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: i
> 08-18 20:55:38.723 30247 30613 I AndroidCsound: n
> 08-18 20:55:38.724 30247 30613 I AndroidCsound: e
> 08-18 20:55:38.724 30247 30613 I AndroidCsound: <<<
> 08-18 20:55:38.724 30247 30613 I AndroidCsound: Unexpected untyped word
> giengine when expecting a variable
> 08-18 20:55:38.724 30247 30613 I AndroidCsound: Parsing failed due to
> invalid input!
> 08-18 20:55:38.724 30247 30613 I AndroidCsound: Stopping on parser failure
> 08-18 20:55:38.724 30247 30613 I AndroidCsound:
> 08-18 20:55:38.724 30247 30613 I AndroidCsound: cannot compile orchestra
>
>
> This thing works fine on Android API < 23 (lollipop) but not on marshmallow.
> Can you please point out the error.
> Any help will be appreciated.
> Thanks.
>
>
> Btw I am using Qt to develop the android application
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Csound-on-Android-trouble-tp5751241.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
> 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 |