Csound Csound-dev Csound-tekno Search About

[Csnd] Why cant GEN01 open a wav in Csound for Android?

Date2018-10-31 16:36
Fromcybilsopsin
Subject[Csnd] Why cant GEN01 open a wav in Csound for Android?
Just switched from iphone to android, and i couldnt be more excited to use
the Csound app!

Its been working fine with all manner of synthesis methods, but ive run up
against a problem when i try to load a soundfile using GEN01.

The error im getting says:
soundin cannot open burroughs.wav: No Error.
ftable 999: failed to open file burroughs.wav 

burroughs.wav is the name of the file im trying to use. I placed it in the
same directory as the csd file. 999 is the ftable number i chose for it.

There do not appear to be any other bugs in the code, since the instrument
is initializing (but returning an invalid ftable error since gen01 couldnt
construct the table).

Is this a limitation of running csound on android? Do i need to somehow
change the settings on my phone to give csound access?

Here is the full code. Its an attempt to do granular synthesis on a long
recording of a lecture by William S Burroughs.





-odac



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

instr 999
ifn=p4
icps=p5
ifmd=p6
iphs=p7
ipmd=p8
igdur=p9 ;in secs
iprd=p10 ;in secs
ares grain3 icps, iphs, ifmd, ipmd, igdur, 1/iprd, 8*igdur/iprd, ifn, 2, 0,
0, 0, 40
aref oscil 4, 220, -1
aout balance ares, aref
outs aout, aout
endin




f2 0 [16384*8] 20 1 1 ;hamming window
f999 0 0 1 "burroughs.wav" 0 0 1

i999 0 7 999 .00001 0 .5 0 1 .25
i999 8 7 999 .00003 0 .5 .1 1.2 .333
i999 16 7 999 .00005 .00002 .6 .001 .23 .1






-----
***cybilopsin***
"We are all guilty of crime, the great crime of not living life to the full." - Henry Miller
--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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-10-31 16:42
FromMichael Gogins
SubjectRe: [Csnd] Why cant GEN01 open a wav in Csound for Android?
You probably need to specify the full filepath, or else set the directories in the settings. In either case it's not always obvious what the paths are, use an android file explorer to find out.

Regards, 
Mike

On Wed, Oct 31, 2018, 12:36 cybilsopsin <cybilopsin@gmail.com wrote:
Just switched from iphone to android, and i couldnt be more excited to use
the Csound app!

Its been working fine with all manner of synthesis methods, but ive run up
against a problem when i try to load a soundfile using GEN01.

The error im getting says:
soundin cannot open burroughs.wav: No Error.
ftable 999: failed to open file burroughs.wav

burroughs.wav is the name of the file im trying to use. I placed it in the
same directory as the csd file. 999 is the ftable number i chose for it.

There do not appear to be any other bugs in the code, since the instrument
is initializing (but returning an invalid ftable error since gen01 couldnt
construct the table).

Is this a limitation of running csound on android? Do i need to somehow
change the settings on my phone to give csound access?

Here is the full code. Its an attempt to do granular synthesis on a long
recording of a lecture by William S Burroughs.

<CsoundSynthesizer>
<CsLicense>
</CsLicense>
<CsOptions>
-odac
</CsOptions>
<CsInstruments>

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

instr 999
ifn=p4
icps=p5
ifmd=p6
iphs=p7
ipmd=p8
igdur=p9 ;in secs
iprd=p10 ;in secs
ares grain3 icps, iphs, ifmd, ipmd, igdur, 1/iprd, 8*igdur/iprd, ifn, 2, 0,
0, 0, 40
aref oscil 4, 220, -1
aout balance ares, aref
outs aout, aout
endin

</CsInstruments>
<CsScore>

f2 0 [16384*8] 20 1 1 ;hamming window
f999 0 0 1 "burroughs.wav" 0 0 1

i999 0 7 999 .00001 0 .5 0 1 .25
i999 8 7 999 .00003 0 .5 .1 1.2 .333
i999 16 7 999 .00005 .00002 .6 .001 .23 .1

</CsScore>
</CsoundSynthesizer>



-----
***cybilopsin***
"We are all guilty of crime, the great crime of not living life to the full." - Henry Miller
--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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-10-31 17:13
Fromcybilsopsin
SubjectRe: [Csnd] Why cant GEN01 open a wav in Csound for Android?
Ok, i found the path name. Actually the My Files app was no help, but i just
used the "open" button on the csound app. It shows absolute path names.

Now gen01 is opening the file, reading its sample rate and all that, but
right after i get this message:

memory allocate failure for [long number here]
inactive allocs returned to freespace
end of score

So i assume this means the soundfile im loading (over an hour in length) is
too long to fit in the memory?



-----
***cybilopsin***
"We are all guilty of crime, the great crime of not living life to the full." - Henry Miller
--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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-10-31 20:10
Fromjoachim heintz
SubjectRe: [Csnd] Why cant GEN01 open a wav in Csound for Android?
why do you want to load one hour sound file into a function table?



On 31/10/18 18:13, cybilsopsin wrote:
> Ok, i found the path name. Actually the My Files app was no help, but i just
> used the "open" button on the csound app. It shows absolute path names.
>
> Now gen01 is opening the file, reading its sample rate and all that, but
> right after i get this message:
>
> memory allocate failure for [long number here]
> inactive allocs returned to freespace
> end of score
>
> So i assume this means the soundfile im loading (over an hour in length) is
> too long to fit in the memory?
>
>
>
> -----
> ***cybilopsin***
> "We are all guilty of crime, the great crime of not living life to the full." - Henry Miller
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>
> 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