Csound Csound-dev Csound-tekno Search About

[Csnd] Question about diskin command for Csound Android

Date2022-08-08 06:56
FromScott Daughtrey
Subject[Csnd] Question about diskin command for Csound Android
I’m trying to figure out how to get Csound to recognize wav files via the diskin command. A tutorial that uses a wav, which was included, won’t find it. It is in the same folder as the .csd file. I have tried copying it to the Root folder, no luck. I have tried modifying the csd to included the full path to the wav, no luck. I have tried modifying the Settings “Sample folder” option. Still no luck.

I’m using Csound 6.15 on Android 7.

Here is part of the file: //input parameters
Sound = “fox.wav”
iStart = p4 ;position in sec to read the sound
iSpeed = p5
iVolume = -3 ;dB
iPan = .5 ;0=left, 1=right
//perform
aSound = diskin:a(Sound,iSpeed,iStart,1)
aOut = linen:a(aSound,p3/2,p3,p3/2)

I just get error messages. I can output wav files with no problem using
-o/sdcard/name.wav

Thank you for reading.

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

Date2022-08-08 08:35
FromRory Walsh
SubjectRe: [Csnd] Question about diskin command for Csound Android
Are you referring to the csound Android app, or an app you are building yourself? If you are building the app yourself, you can grab the sample file on the app side (https://developer.android.com/training/data-storage) and then pass the sample data to a function table using one of the API table methods. This is what I usually do, then I don't need to bother getting the right file location. 

On Mon, 8 Aug 2022 at 08:06, Scott Daughtrey <stunes6556@gmail.com> wrote:
I’m trying to figure out how to get Csound to recognize wav files via the diskin command. A tutorial that uses a wav, which was included, won’t find it. It is in the same folder as the .csd file. I have tried copying it to the Root folder, no luck. I have tried modifying the csd to included the full path to the wav, no luck. I have tried modifying the Settings “Sample folder” option. Still no luck.

I’m using Csound 6.15 on Android 7.

Here is part of the file: //input parameters
Sound = “fox.wav”
iStart = p4 ;position in sec to read the sound
iSpeed = p5
iVolume = -3 ;dB
iPan = .5 ;0=left, 1=right
//perform
aSound = diskin:a(Sound,iSpeed,iStart,1)
aOut = linen:a(aSound,p3/2,p3,p3/2)

I just get error messages. I can output wav files with no problem using
-o/sdcard/name.wav

Thank you for reading.

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