}
catch( BackingStoreException e1 ) {
warnings.add( e1.toString() );
}
putDontOverwrite( childPrefs, KEY_AUDIORATE, new Param( 0, ParamSpace.FREQ | ParamSpace.HERTZ ).toString() );
putDontOverwrite( childPrefs, KEY_AUDIOBUSSES, new Param( 256, ParamSpace.NONE ).toString() );
putDontOverwrite( childPrefs, KEY_SCMEMSIZE, new Param( 8, ParamSpace.NONE ).toString() );
putDontOverwrite( childPrefs, KEY_SCBLOCKSIZE, new Param( 64, ParamSpace.NONE ).toString() );
putBooleanDontOverwrite( childPrefs, KEY_SCRENDEZVOUS, true );
// putBooleanDontOverwrite( childPrefs, KEY_AUTOBOOT, false );
// outputconfigs
value = "out1to2";
putDontOverwrite( childPrefs, KEY_OUTPUTCONFIG, value );
try {
if( !childPrefs.nodeExists( NODE_OUTPUTCONFIGS )) {
childPrefs2 = childPrefs.node( NODE_OUTPUTCONFIGS );
new RoutingConfig( value, "Out 1-2", new int[] { 0, 1 }, -90f ).toPrefs(
childPrefs2.node( value ));
value = "out1to8";
new RoutingConfig( value, "Out 1-8", new int[] { 0, 1, 2, 3, 4, 5, 6, 7 }, -45f ).toPrefs(
childPrefs2.node( value ));
// // ok dis wan is rather for demonstration purpose
// new RoutingConfig( value, 2, new int[] { 1, 0 }, -90f ).toPrefs(
// childPrefs2.node( "Reversed Stereo" ));
}
}
catch( BackingStoreException e1 ) {
warnings.add( e1.toString() );
}
// inputconfigs
try {
if( !childPrefs.nodeExists( NODE_INPUTCONFIGS )) {
childPrefs2 = childPrefs.node( NODE_INPUTCONFIGS );
value = "in1";
new RoutingConfig( value, "In 1", new int[] { 0 }, 0f ).toPrefs(
childPrefs2.node( value ));
value = "in1to2";
new RoutingConfig( value, "In 1-2", new int[] { 0, 1 }, 0f ).toPrefs(
childPrefs2.node( value ));
value = "in1to8";
new RoutingConfig( value, "In 1-8", new int[] { 0, 1, 2, 3, 4, 5, 6, 7 }, 0f ).toPrefs(
childPrefs2.node( value ));
// // ok dis wan is rather for demonstration purpose
// new RoutingConfig( value, 2, new int[] { 1, 0 }, -90f ).toPrefs(
// childPrefs2.node( "Reversed Stereo" ));
}
}
catch( BackingStoreException e1 ) {
warnings.add( e1.toString() );
}
// try {
// value = InetAddress.getLocalHost().getHostName() + ":57110";
// }
// catch( IOException e1 ) {
// System.err.println( e1.toString() );
// value = "127.0.0.1:57109"; // not 57110 which may interfere with a running copy of sclang
// }
// putDontOverwrite( childPrefs, KEY_SUPERCOLLIDEROSC, value );
putDontOverwrite( childPrefs, KEY_SCPROTOCOL, OSCChannel.TCP );
putDontOverwrite( childPrefs, KEY_SCPORT, new Param( 0, ParamSpace.NONE | ParamSpace.ABS ).toString() );
// sc app
if( childPrefs.get( KEY_SUPERCOLLIDERAPP, null ) == null ) {
f = findFile( isWindows ? "scsynth.exe" : "scsynth", new String[] {
fs + "Applications" + fs + "SuperCollider_f",