[sc-users] a talking post window for a blind SC3 user?

Jan Trutzschler sc3 at sampleAndhold.org
Thu Feb 1 09:13:56 PST 2007


Hi Julio,

it seems the problem is  that code dump is not called when there is  
an error. So here's a workaround:
- assign a keyDownAction to the Document
- clear the post window
- wait for half a second - this might need some tweaking
- speak the first bits of it
You can either assign it to the current Document or to all ...

//for the current doc
Document.current.keyDownAction = {|doc, char, mod, code, key|
	if(code == 3){
		Document.listener.string = "";
		{0.5.wait; Document.listener.string.copyRange(0,50).speak;}.fork 
(AppClock);
	};

};

  //for all docs ..
Document.globalKeyDownAction = {|doc, char, mod, code, key|
	if(code == 3){ //enter
		Document.listener.string = "";
		{0.5.wait; Document.listener.string.copyRange(0,50).speak;}.fork 
(AppClock);
	};

};

cu
Jan



On Jan 31, 2007, at 9:49 PM, julio d'escrivan wrote:

> Hi guys,
>
> Yes, Jan's code works a treat and will be quite helpful but it  
> doesn't report errors...  How can I get it to do this? at least if  
> it could say 'error' that would be good, as most of the error  
> description is too complicated for a beginner...
>
> Thanks,
>
> Julio.
>
>
>
>
>
> On 31 Jan 2007, at 16:37, Ryan Brown wrote:
>
>> There are also calls to post/postfl in C (for errors and such)  
>> that I don't think go through the SC interpreter at all.
>>
>> On Jan 30, 2007, at 11:44 PM, Jan Trutzschler wrote:
>>
>>> Hi Julio,
>>> this might need some further testing, but this simple line should  
>>> do it:
>>>
>>> thisProcess.interpreter.codeDump = {|cmdLine, result, function|
>>> 	result.asString.speak;
>>> };
>>>
>>> regards,
>>> Jan
>>>
>>>
>>> On Jan 31, 2007, at 7:05 AM, julio d'escrivan wrote:
>>>
>>>> Hi guys,
>>>>
>>>> I hope you are all doing well in the new year.
>>>>
>>>> One of my students from the sound design and synthesis class is  
>>>> blind. I have no previous experience of teaching blind students.  
>>>> What I am finding is that by using JitLib my student is not only  
>>>> quickly being able to modify the sounds without having to re- 
>>>> evaluate or re-type code but also doesn't have to type it in a  
>>>> visually meaningful way; Any order of code will do and he can  
>>>> keep re-using lines he already typed without having to copy and  
>>>> paste again, etc. And, slowly but surely, this is working . To  
>>>> further help him there is one thing I think I need to do to  
>>>> customize his SC3 (and I already did a search for this but apart  
>>>> from Chris F. asking something regarding the iPod for a blind  
>>>> user, could not find anything else): A talking post window: so  
>>>> that whenever code is evaluated in a certain window, the post  
>>>> window will not only print but also speak its response.  
>>>> Otherwise he has to tab around until he finds the post window  
>>>> then locate the last line and highlight it so it will be spoken  
>>>> by the mac... too time consuming. There must be a tweak I can do  
>>>> to get SC3 to talk its posts as it prints them to that window,  
>>>> right?
>>>>
>>>> What class do I need to modify for this to happen?
>>>>
>>>> As always, thanks for your help,
>>>>
>>>> Julio
>>>>
>>>> /––––––––––––––––––––/
>>>>
>>>> http://bitbongo.com/recent
>>>>
>>>> /––––––––––––––––––––/
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> sc-users mailing list
>>>> sc-users at create.ucsb.edu
>>>> http://www.create.ucsb.edu/mailman/listinfo/sc-users
>>>
>>>
>>> _______________________________________________
>>> sc-users mailing list
>>> sc-users at create.ucsb.edu
>>> http://www.create.ucsb.edu/mailman/listinfo/sc-users
>>>
>>
>>
>> _______________________________________________
>> sc-users mailing list
>> sc-users at create.ucsb.edu
>> http://www.create.ucsb.edu/mailman/listinfo/sc-users
>
> _______________________________________________
> sc-users mailing list
> sc-users at create.ucsb.edu
> http://www.create.ucsb.edu/mailman/listinfo/sc-users




More information about the sc-users mailing list