« Return to Thread: controlling sclang from an external application (OSX)

controlling sclang from an external application (OSX)

by Lars_on_Nabble :: Rate this Message:

Reply to Author | View in Thread

I set up a Cocoa application to control sclang via pipes, i.e. I start sclang
in a separate task from within the Cocoa application and then connect the two
tasks. After I found out that the key "0x1b" makes sclang to start interpreting
the pipe buffer as a sclang program everything works fine.

But what does not work is the "cmd-." behavior, i.e. the convenient way to stop
all synthesis from within the SuperCollider.app on OSX (I think on other
platforms it is a different key combination). When I send for example

Pbind.new.play;

I cannot stop playing (apart from killing the sclang
application). I currently work around this by using e.g.

e = Pbind.new.play;
e.stop;

but that is not very nice.

So, does anyone know the way how to implement the "cmd-." behavior? I guess it
is just another key or command that you just have to know :-)

Any help is greatly appreciated. Thanks
Lars


_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-dev/
search: http://www.listarc.bham.ac.uk/lists/sc-dev/search/

 « Return to Thread: controlling sclang from an external application (OSX)