|
Re: n_map "freq" -1: msg#00257audio.supercollider.devel
On Aug 25, 2004, at 11:38 AM, Julian Rohrhuber wrote: ok, I see now. a ParamSpec only keeps its own index, and I guess it would need some other methods to make a node iterate over its controls, finding whether a name exists for it. It would mean a different osc message. It would be very handy, but I don't know if it is reasonable. something like this: void Graph_MapNControl(Graph* inGraph, int32 inHash, int32 *inName, uint32 inNumChannels, uint32 inBus) { ParamSpecTable* table = GRAPH_PARAM_TABLE(inGraph); ParamSpec *spec = table->Get(inHash, inName); if (spec) { uint32 index; Graph_MapControl(inGraph, spec->mIndex, inBus); for (uint i=1; i<inNumChannels-1; ++i) { index = inBus + i; int32 j = table->IndexFor(inHash, index); *spec = table->mItems[j]; if(*spec->mName >= 0x80000000) return // stop at next named control Graph_MapControl(inGraph, spec->mIndex, inBus + i); }; } } (this code is not correct, because I don't know how to derive a key from a value in the HashTable) the command could be called n_mapnc (clip) maybe. But please tell me if it is a bad idea, I appreciate that the server should be kept simple. -- . |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: .aiff wrapping?: 00257, James McCartney |
|---|---|
| Next by Date: | Re: .aiff wrapping?: 00257, Lance Putnam |
| Previous by Thread: | Re: n_map "freq" -1i: 00257, Julian Rohrhuber |
| Next by Thread: | n_mapn out of range: 00257, Julian Rohrhuber |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |