| Author |
Message |
Dr. Spankenstein
Joined: Mar 03, 2007 Posts: 136 Location: Cambridge
Audio files: 1
|
Posted: Fri Feb 22, 2008 3:58 pm Post subject:
|
 |
|
| 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.
Thanks,
Rhys |
|
|
Back to top
|
|
 |
dewdrop_world

Joined: Aug 28, 2006 Posts: 858 Location: Guangzhou, China
Audio files: 4
|
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Wed Mar 12, 2008 9:37 pm Post subject:
|
 |
|
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
|
|
 |
Inventor
Stream Operator

Joined: Oct 13, 2007 Posts: 6221 Location: near Austin, Tx, USA
Audio files: 267
|
Posted: Thu Mar 13, 2008 9:31 pm Post subject:
|
 |
|
| 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
|
|
 |
|