@ -18,15 +18,24 @@ FluidManipulationClient : UGen {
}
}
pr_sendMsg { | msg , args , action , parser |
pr_sendMsg { | msg , args , action , parser |
var c = Condition . new ( false ) ;
OSCFunc (
OSCFunc (
{ | msg |
{ | msg |
var result ;
forkIfNeeded {
/ / msg . postln ;
var result ;
result = FluidMessageResponse . collectArgs ( parser , msg . drop ( 3 ) ) ;
/ / msg . postln ;
if ( action . notNil ) { action . value ( result ) } { action . value } ;
result = FluidMessageResponse . collectArgs ( parser , msg . drop ( 3 ) ) ;
this . server . sync ;
c . test = true ;
c . signal ;
if ( action . notNil ) { action . value ( result ) } { action . value } ;
}
} , ' / ' + + msg ) . oneShot ;
} , ' / ' + + msg ) . oneShot ;
this . server . listSendMsg ( [ ' /u_cmd ' , this . synth . nodeID , this . synthIndex , msg ] . addAll ( args ) ) ;
this . server . listSendMsg ( [ ' /u_cmd ' , this . synth . nodeID , this . synthIndex , msg ] . addAll ( args ) ) ;
forkIfNeeded { c . wait } ;
}
}
}
}