Csound Csound-dev Csound-tekno Search About

Re: [Csnd] Re: ChimePad - now a Csound Android app

Date2012-10-02 17:43
From"Art Hunkins"
SubjectRe: [Csnd] Re: ChimePad - now a Csound Android app
Thanks, Victor.

Art Hunkins

----- Original Message ----- 
From: "Victor Lazzarini" 
To: 
Sent: Tuesday, October 02, 2012 12:35 PM
Subject: Re: [Csnd] Re: ChimePad - now a Csound Android app


I can't test it today as I do not have the device cable to do it in my 
office. I can try tomorrow.
On 2 Oct 2012, at 17:32, Art Hunkins wrote:

> Steven and/or Victor (et al.) -
>
> Could someone please test the new Pause feature, and assuming it works to 
> preserve current values, indicate how this should be coded in an Android 
> app?
>
> Art Hunkins
>
> ----- Original Message ----- From: "Victor Lazzarini" 
> 
> To: 
> Sent: Tuesday, October 02, 2012 6:47 AM
> Subject: Re: [Csnd] Re: ChimePad - now a Csound Android app
>
>
> They're in GIT, but not tested yet.
> On 2 Oct 2012, at 11:38, Steven Yi wrote:
>
>> Hi Art,
>>
>> I was going to say one could use the Csound API directly using
>> csoundObj.getCsound() to perhaps pause the app, but I realized that
>> wouldn't stop the render loop in CsoundObj.  I guess it's best to wait
>> for Victor's changes (Victor, I can apply the changes to iOS once
>> you're complete there).
>>
>> Thanks!
>> steven
>>
>> On Tue, Oct 2, 2012 at 11:18 AM, Victor Lazzarini
>>  wrote:
>>> We had not implemented a pause control in CsoundObj. I've added it and 
>>> will test to see if it does what it is supposed to do.
>>>
>>> Victor
>>> On 2 Oct 2012, at 02:40, Art Hunkins wrote:
>>>
>>>> Steven,
>>>>
>>>> Thanks for this info; my son came up with a sixth button as a result.
>>>>
>>>> And yes, we did implement -b512, which seems to take care of most of 
>>>> the glitching.
>>>>
>>>> One other questions:
>>>> How would you implement Pause (as an alternative to Stop) in Android 
>>>> Csound? Stop reverts to .csd defaults, whereas we'd like to continue 
>>>> with then-current settings. Is this what Pause allows?
>>>>
>>>> Art Hunkins
>>>>
>>>> ----- Original Message ----- From: "Steven Yi" 
>>>> To: 
>>>> Sent: Monday, September 24, 2012 12:20 PM
>>>> Subject: Re: [Csnd] Re: ChimePad - now a Csound Android app
>>>>
>>>>
>>>>> Hi Art,
>>>>>
>>>>> If you're using the CSDPlayer as a base for the app, there's these 
>>>>> lines:
>>>>>
>>>>> for(int i = 0; i < 5; i++){
>>>>>                                             channelName = "slider" + 
>>>>> (i+1);
>>>>>
>>>>> csound.addSlider(sliders.get(i),channelName, 0., 1.);
>>>>>                                             channelName = "butt" + 
>>>>> (i+1);
>>>>>
>>>>> csound.addButton(buttons.get(i),channelName, 1);
>>>>>                                     }
>>>>>
>>>>> Essentially, the main call is:
>>>>>
>>>>> csound.addButton(buttons.get(i),channelName, 1);
>>>>>
>>>>> where you could change that to:
>>>>>
>>>>> csound.addButton(referenceToButton,"button6", 1);
>>>>>
>>>>> BTW: Did you try -b512?
>>>>>
>>>>> All best,
>>>>> steven
>>>>>
>>>>>
>>>>> On Mon, Sep 24, 2012 at 6:15 PM, Art Hunkins  
>>>>> wrote:
>>>>>> My son Dave is now trying to do the Android portion of a simplified 
>>>>>> version
>>>>>> of ChimePad (a "ChimePadSimple").
>>>>>>
>>>>>> One option we are considering involves implementing *6* buttons. He 
>>>>>> is
>>>>>> wondering how to implement the 6th. His query follows. Can anyone 
>>>>>> help with
>>>>>> this? (I've been unable to find any examples with more than five 
>>>>>> buttons,
>>>>>> and suspect the Csound Android GUI implementation may be limited to 
>>>>>> five.)
>>>>>>
>>>>>> He writes:
>>>>>>
>>>>>> "Also not sure how to address six buttons when there are only five 
>>>>>> buttons
>>>>>> in the interface. As far as you know, what is the 'connection point' 
>>>>>> between
>>>>>> the button and the Csound object (I assume I need to create a sixth 
>>>>>> button
>>>>>> in the same manner as the others and name it "button6" or 
>>>>>> something)?"
>>>>>>
>>>>>>
>>>>>> Art Hunkins
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>>>> "unsubscribe
>>>>>> csound"
>>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>>> "unsubscribe csound"
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>> "unsubscribe csound"
>>>>
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
>>> csound"
>>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
>> csound"
>>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound"
>
> =
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
csound"

= 


Date2012-10-05 15:56
FromSteven Yi
SubjectRe: [Csnd] Re: ChimePad - now a Csound Android app
Hi Art,

Following up, Victor and I just tested the Pause functionality and it
is working here.  The change was in Java code, so if you want to try
it, you can just download the latest version of CsoundObj.java here:

http://csound.git.sourceforge.net/git/gitweb.cgi?p=csound/csound5.git;a=blob_plain;f=android/CsoundAndroid/src/com/csounds/CsoundObj.java;hb=HEAD

It adds a togglePause(), pause(), and play() methods.

Thanks!
steven

On Tue, Oct 2, 2012 at 5:43 PM, Art Hunkins  wrote:
> Thanks, Victor.
>
>
> Art Hunkins
>
> ----- Original Message ----- From: "Victor Lazzarini"
> 
> To: 
> Sent: Tuesday, October 02, 2012 12:35 PM
>
> Subject: Re: [Csnd] Re: ChimePad - now a Csound Android app
>
>
> I can't test it today as I do not have the device cable to do it in my
> office. I can try tomorrow.
> On 2 Oct 2012, at 17:32, Art Hunkins wrote:
>
>> Steven and/or Victor (et al.) -
>>
>> Could someone please test the new Pause feature, and assuming it works to
>> preserve current values, indicate how this should be coded in an Android
>> app?
>>
>> Art Hunkins
>>
>> ----- Original Message ----- From: "Victor Lazzarini"
>> 
>> To: 
>> Sent: Tuesday, October 02, 2012 6:47 AM
>> Subject: Re: [Csnd] Re: ChimePad - now a Csound Android app
>>
>>
>> They're in GIT, but not tested yet.
>> On 2 Oct 2012, at 11:38, Steven Yi wrote:
>>
>>> Hi Art,
>>>
>>> I was going to say one could use the Csound API directly using
>>> csoundObj.getCsound() to perhaps pause the app, but I realized that
>>> wouldn't stop the render loop in CsoundObj.  I guess it's best to wait
>>> for Victor's changes (Victor, I can apply the changes to iOS once
>>> you're complete there).
>>>
>>> Thanks!
>>> steven
>>>
>>> On Tue, Oct 2, 2012 at 11:18 AM, Victor Lazzarini
>>>  wrote:
>>>>
>>>> We had not implemented a pause control in CsoundObj. I've added it and
>>>> will test to see if it does what it is supposed to do.
>>>>
>>>> Victor
>>>> On 2 Oct 2012, at 02:40, Art Hunkins wrote:
>>>>
>>>>> Steven,
>>>>>
>>>>> Thanks for this info; my son came up with a sixth button as a result.
>>>>>
>>>>> And yes, we did implement -b512, which seems to take care of most of
>>>>> the glitching.
>>>>>
>>>>> One other questions:
>>>>> How would you implement Pause (as an alternative to Stop) in Android
>>>>> Csound? Stop reverts to .csd defaults, whereas we'd like to continue with
>>>>> then-current settings. Is this what Pause allows?
>>>>>
>>>>> Art Hunkins
>>>>>
>>>>> ----- Original Message ----- From: "Steven Yi" 
>>>>> To: 
>>>>> Sent: Monday, September 24, 2012 12:20 PM
>>>>> Subject: Re: [Csnd] Re: ChimePad - now a Csound Android app
>>>>>
>>>>>
>>>>>> Hi Art,
>>>>>>
>>>>>> If you're using the CSDPlayer as a base for the app, there's these
>>>>>> lines:
>>>>>>
>>>>>> for(int i = 0; i < 5; i++){
>>>>>>                                             channelName = "slider" +
>>>>>> (i+1);
>>>>>>
>>>>>> csound.addSlider(sliders.get(i),channelName, 0., 1.);
>>>>>>                                             channelName = "butt" +
>>>>>> (i+1);
>>>>>>
>>>>>> csound.addButton(buttons.get(i),channelName, 1);
>>>>>>                                     }
>>>>>>
>>>>>> Essentially, the main call is:
>>>>>>
>>>>>> csound.addButton(buttons.get(i),channelName, 1);
>>>>>>
>>>>>> where you could change that to:
>>>>>>
>>>>>> csound.addButton(referenceToButton,"button6", 1);
>>>>>>
>>>>>> BTW: Did you try -b512?
>>>>>>
>>>>>> All best,
>>>>>> steven
>>>>>>
>>>>>>
>>>>>> On Mon, Sep 24, 2012 at 6:15 PM, Art Hunkins 
>>>>>> wrote:
>>>>>>>
>>>>>>> My son Dave is now trying to do the Android portion of a simplified
>>>>>>> version
>>>>>>> of ChimePad (a "ChimePadSimple").
>>>>>>>
>>>>>>> One option we are considering involves implementing *6* buttons. He
>>>>>>> is
>>>>>>> wondering how to implement the 6th. His query follows. Can anyone
>>>>>>> help with
>>>>>>> this? (I've been unable to find any examples with more than five
>>>>>>> buttons,
>>>>>>> and suspect the Csound Android GUI implementation may be limited to
>>>>>>> five.)
>>>>>>>
>>>>>>> He writes:
>>>>>>>
>>>>>>> "Also not sure how to address six buttons when there are only five
>>>>>>> buttons
>>>>>>> in the interface. As far as you know, what is the 'connection point'
>>>>>>> between
>>>>>>> the button and the Csound object (I assume I need to create a sixth
>>>>>>> button
>>>>>>> in the same manner as the others and name it "button6" or
>>>>>>> something)?"
>>>>>>>
>>>>>>>
>>>>>>> Art Hunkins
>>>>>>>
>>>>>>>
>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>>> "unsubscribe
>>>>>>> csound"
>>>>>>>
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>>> "unsubscribe csound"
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>>> "unsubscribe csound"
>>>>>
>>>>
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>> =
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
> =
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>