Csound Csound-dev Csound-tekno Search About

Re: [Csnd] CSound Android questions

Date2014-01-14 17:33
From"Art Hunkins"
SubjectRe: [Csnd] CSound Android questions
Mike, or anyone -

I note that Csound6.apk for 6.02 is 3.4MB.

Previous versions of Csound6.apk (for 6.00, 6.00.1 and 6.01) are all 9.9MB.

How is the latest version less complete, and does this make it any less of a 
comprehensive development system?

Art Hunkins

----- Original Message ----- 
From: "Jacques Leplat" 
To: 
Sent: Tuesday, January 14, 2014 10:44 AM
Subject: [Csnd] CSound Android questions


Hello,

I have been grappling with the latest Android release (Csound6.apk and 
Csound-android-6.02.0.zip).

I think the apk is different to the CSD Player project in the zip.

The alwayson opcode is not recognised in the apk file, but is recognised in 
the zip release of the Android Csound SDK.

I am also having problems using alwayson on Android.  On the mac release  of 
CSound, the csd (see below) produces sound, but on Android it is silent. If 
I uncomment the line “i2 0 1”, sound is produced. So it looks to me like 
alwayson behaves differently on Android and Mac.

In terms of correct CSound syntax, do I not know if an alwayson instrument 
has to have a score event sent to it for the duration of the score. Does it?

All the best,

Jacques



-odac


sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1

;-- Definitions for instrument [1] id [1009] outInstr
alwayson "outInstr"
gaoutL init 0
gaoutR init 0
gkPan init 50
gkVolume init 80
gklevelL init 0
gklevelR init 0

;-- Definitions for instrument [1] id [1007] pulse
gkPan1 init 50
gkVolume1 init 80


;-- Instrument [1] id [1007] pulse
instr 1
ifreq = cpspch(p5)
iamp = p4
idur = p3
iwave = 2001
idetune = 0.3
kenv linseg 0, .01, iamp, idur-.1, iamp*.8, .05, 0
aoutL oscili kenv, ifreq - idetune, iwave
aoutR oscili kenv, ifreq + idetune, iwave
kfactorL = 1
kfactorR = 1
gaoutL = gaoutL + aoutL * kfactorL
gaoutR = gaoutR + aoutR * kfactorR

endin

;-- Output Instrument
instr outInstr
kfactorL = 0.5
kfactorR = 0.5
gaoutL = gaoutL * kfactorL
gaoutR = gaoutR * kfactorR
outs gaoutL,gaoutR
gaoutL = 0
gaoutR = 0

endin



;-- Functions for instrument [1] id [1007] pulse
f 2001 0 513 10 .8 .9 .95 .96 1 .91 .8 .75 .6 .42 .5 .4 .33 .28 .2 .15

;inst start dur amplitude noteNumber; midiNote
;i2 0 1
i1 0 0.152 0.62 9.04 ;76 v:80
i1 0 0.505 0.62 7.00 ;48 v:80
i1 0 0.505 0.62 7.04 ;52 v:80
i1 0.145 0.128 0.55 9.00 ;72 v:70
i1 0.267 0.126 0.55 9.07 ;79 v:70
i1 0.386 0.126 0.55 9.04 ;76 v:70
i1 0.505 0.129 0.55 10.00 ;84 v:70
i1 0.627 0.129 0.55 9.07 ;79 v:70
e 1







Send bugs reports to the Sourceforge bug trackers
csound6:
            https://sourceforge.net/p/csound/tickets/
csound5:
            https://sourceforge.net/p/csound/bugs/
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
csound"


=