electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
go to the radio page Live at electro-music.com radio 1 Please visit the chat
  host / artist show at your time
today> Twyndyllyngs Chez Mosc
 Forum index » DIY Hardware and Software » ChucK programming language
Writing User Interface...
Post new topic   Reply to topic Moderators: Kassen
Page 2 of 2 [29 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Goto page: Previous 1, 2
Author Message
Dr. Spankenstein



Joined: Mar 03, 2007
Posts: 136
Location: Cambridge
Audio files: 1

PostPosted: Fri Feb 22, 2008 3:58 pm    Post subject: Reply with quote  Mark this post and the followings unread

Code:

Std.system( "chuck --kill");


Doesn't work on the mac version of OSX the same way it does in windows. In windows this exits ChucK and returns you to the command prompt, whereas in OSX, it exits all shreds but you still have to press ctrl+c to exit and then that doesn't work?

Code:


ConsoleInput MenuInput;                  

StringTokenizer MenuToken;                     
MenuInput.prompt( "Enter a number" ) => now;

while(MenuInput.more())

{

   MenuToken.set(MenuInput.getLine());

   Std.atof(MenuToken.next()) => float MenuInput;
   <<<MenuInput>>>;

}



Works O.K. by itself

As does...

Code:

KBHit CutterMenu;

<<<"Press a key on the keyboard","">>>;
CutterMenu => now;

appendChar(CutterMenu.getchar());
fun void appendChar(int Char)

{
   <<<"You Pressed Key",Char>>>;
   me.exit();
}


Put them together though and you've got a recipe for disaster...

Code:


KBHit CutterMenu;                  
ConsoleInput MenuInput;                  

StringTokenizer MenuToken;                     
MenuInput.prompt( "Enter a number" ) => now;

while(MenuInput.more())

{

   MenuToken.set(MenuInput.getLine());

   Std.atof(MenuToken.next()) => float MenuInput;
   <<<MenuInput>>>;

}

<<<"Press a key on the keyboard","">>>;
CutterMenu => now;

appendChar(CutterMenu.getchar());
fun void appendChar(int Char)

{
   <<<"You Pressed Key",Char>>>;
   me.exit();
}



This is just some of my experiences with ChucK on OSX. I'll await the onslaught of comments pertaining to my bad coding and just hope that these are genuine bugs and not just my general ChucKing ignorance. Smile

Thanks,

Rhys
Back to top
View user's profile Send private message
dewdrop_world



Joined: Aug 28, 2006
Posts: 858
Location: Guangzhou, China
Audio files: 4

PostPosted: Wed Mar 12, 2008 10:11 am    Post subject: Reply with quote  Mark this post and the followings unread

You know, I just thought of this... it would take some work on the chuck side to build up the class interface, but SwingOSC is a really nifty, crossplatform, language-independent GUI server. It was originally built for SuperCollider but its programming interface is all OSC, so I think there is no technical reason why chuck could not interact with it.

I posted some SwingOSC screenshots on the mac once upon a time, and I also took a screenshot on my windows machine the other day (attached).

It's an option...
James


sc-win2.gif
 Description:
SwingOSC running against SuperCollider on Win2k
 Filesize:  142.76 KB
 Viewed:  442 Time(s)
This image has been reduced to fit the page. Click on it to enlarge.

sc-win2.gif



_________________
ddw online: http://www.dewdrop-world.net
sc3 online: http://supercollider.sourceforge.net
Back to top
View user's profile Send private message Visit poster's website AIM Address
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Wed Mar 12, 2008 9:37 pm    Post subject: Reply with quote  Mark this post and the followings unread

Yeah, I hear good stuff about SwingOsc. Makes good sense as a choice.


Quote:
Doesn't work on the mac version of OSX the same way it does in windows. In windows this exits ChucK and returns you to the command prompt, whereas in OSX, it exits all shreds but you still have to press ctrl+c to exit and then that doesn't work?


Bug, I think. That whole approach could use some loving care. Std.system() isn't the most innocent of calls....

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 267

PostPosted: Thu Mar 13, 2008 9:31 pm    Post subject: Reply with quote  Mark this post and the followings unread

Wow, Dewdrop, I don't know how you do all that; it's beyond me. Thanks for bringing everyone's attention to this option. I am surprised at how well-integrated all this music software is with things like OSC. Though for the moment, I'm grandfathered into MAUI for my current work.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 2 of 2 [29 Posts]
View unread posts
View new posts in the last week
Goto page: Previous 1, 2
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use