\s_newargs ?

View: New views
4 Messages — Rating Filter:   Alert me  

\s_newargs ?

by Wouter Snoei-2 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Hi,

maybe it's just a temporary developer thing, but I was wondering why  
Synth.new in the latest svn (7834) uses \s_newargs instead of \s_new.

cheers,
Wouter

_______________________________________________
sc-users mailing list

info (subscribe and unsubscribe): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Re: \s_newargs ?

by Josh Parmenter :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Do you notice any problems? I think that change is permanent (though I  
could be wrong).

Best,

Josh

On Oct 10, 2008, at 3:42 AM, Wouter Snoei wrote:

> Hi,
>
> maybe it's just a temporary developer thing, but I was wondering why  
> Synth.new in the latest svn (7834) uses \s_newargs instead of \s_new.
>
> cheers,
> Wouter
>
> _______________________________________________
> sc-users mailing list
>
> info (subscribe and unsubscribe): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
> archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

******************************************
/* Joshua D. Parmenter
http://www.realizedsound.net/josh/

“Every composer – at all times and in all cases – gives his own  
interpretation of how modern society is structured: whether actively  
or passively, consciously or unconsciously, he makes choices in this  
regard. He may be conservative or he may subject himself to continual  
renewal; or he may strive for a revolutionary, historical or social  
palingenesis." - Luigi Nono
*/


_______________________________________________
sc-users mailing list

info (subscribe and unsubscribe): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Re: \s_newargs ?

by Wouter Snoei-2 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

Hi Josh,

no, no problems noticed (just stumbled across it accidentally). But I  
was just wondering what the difference is with the regular "/s_new"  
and when or if it should be used in other occasions (like message-
style coding)? And will there be a description of it in Server-Command-
Reference.html?

cheers & thanks,
Wouter


Op 10 okt 2008, om 19:06 heeft Josh Parmenter het volgende geschreven:

> Do you notice any problems? I think that change is permanent (though  
> I could be wrong).
>
> Best,
>
> Josh
>
> On Oct 10, 2008, at 3:42 AM, Wouter Snoei wrote:
>
>> Hi,
>>
>> maybe it's just a temporary developer thing, but I was wondering  
>> why Synth.new in the latest svn (7834) uses \s_newargs instead of  
>> \s_new.
>>
>> cheers,
>> Wouter
>>
>> _______________________________________________
>> sc-users mailing list
>>
>> info (subscribe and unsubscribe): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
>> archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
>> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
>
> ******************************************
> /* Joshua D. Parmenter
> http://www.realizedsound.net/josh/
>
> “Every composer – at all times and in all cases – gives his own  
> interpretation of how modern society is structured: whether actively  
> or passively, consciously or unconsciously, he makes choices in this  
> regard. He may be conservative or he may subject himself to  
> continual renewal; or he may strive for a revolutionary, historical  
> or social palingenesis." - Luigi Nono
> */
>
>
> _______________________________________________
> sc-users mailing list
>
> info (subscribe and unsubscribe): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
> archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/


_______________________________________________
sc-users mailing list

info (subscribe and unsubscribe): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Re: \s_newargs ?

by sh0099 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

sorry i where lazy ... i will make an update of the helpfiles next week.
s_newargs is like n_setn able to transfer argument arrays like this:

/s_newargs create a new synth

string - synth definition name

int - synth ID

int - add action (0,1,2, 3 or 4 see below)

int - add target ID

[

int or string - a control index or name

int - number of sequential controls to change (M)

[

float - a control value

] * M

] * N


for example:

(
SynthDef.new(\argtest,{arg f=#[1,2,3,4];
    Out.ar(0,Mix.ar(SinOsc.ar(f,0,0.1)));
}).send(s);

)

Synth.new(\argtest,[\f,[440,450,600,700]])
or equivalent:
s.sendMsg("/s_newargs", "argtest", 1001, 1, 0, f, 4, 440, 450, 600, 700)

Wouter Snoei schrieb:

> Hi Josh,
>
> no, no problems noticed (just stumbled across it accidentally). But I
> was just wondering what the difference is with the regular "/s_new"
> and when or if it should be used in other occasions (like
> message-style coding)? And will there be a description of it in
> Server-Command-Reference.html?
>
> cheers & thanks,
> Wouter
>
>
> Op 10 okt 2008, om 19:06 heeft Josh Parmenter het volgende geschreven:
>
>> Do you notice any problems? I think that change is permanent (though
>> I could be wrong).
>>
>> Best,
>>
>> Josh
>>
>> On Oct 10, 2008, at 3:42 AM, Wouter Snoei wrote:
>>
>>> Hi,
>>>
>>> maybe it's just a temporary developer thing, but I was wondering why
>>> Synth.new in the latest svn (7834) uses \s_newargs instead of \s_new.
>>>
>>> cheers,
>>> Wouter
>>>
>>> _______________________________________________
>>> sc-users mailing list
>>>
>>> info (subscribe and unsubscribe):
>>> http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
>>> archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
>>> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
>>
>> ******************************************
>> /* Joshua D. Parmenter
>> http://www.realizedsound.net/josh/
>>
>> “Every composer – at all times and in all cases – gives his own
>> interpretation of how modern society is structured: whether actively
>> or passively, consciously or unconsciously, he makes choices in this
>> regard. He may be conservative or he may subject himself to continual
>> renewal; or he may strive for a revolutionary, historical or social
>> palingenesis." - Luigi Nono
>> */
>>
>>
>> _______________________________________________
>> sc-users mailing list
>>
>> info (subscribe and unsubscribe):
>> http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
>> archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
>> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
>
>
> _______________________________________________
> sc-users mailing list
>
> info (subscribe and unsubscribe):
> http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
> archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
>


_______________________________________________
sc-users mailing list

info (subscribe and unsubscribe): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
LightInTheBox - Buy quality products at wholesale price!