logo       

Re: n_map "freq" -1: msg#00230

audio.supercollider.devel

Subject: Re: n_map "freq" -1

On Aug 25, 2004, at 3:59 AM, Julian Rohrhuber wrote:

in a way that it unmaps all channels of a control if the control name
is a string.


A string only has one control and then follow several unnamed controls. It is possible to have unnamed indexed only controls. Names just indicate a single entry.

I hope I have the right understanding:

controls: "freq" 1 2 3 4 "amp" "decay" 5 6 .....
mapping1: 0..........3
mapping2: 0................5

mapping1: n_mapn "freq" 3
mapping2: n_mapn "freq" 5

if I set consecutive controls by giving a name and then a number, my only intention could reasonably be to set the consecutive _unnamed_ controls.
Setting other named controls that follow after these is not really what a message like /n_mapn "freq" 0 5 expresses.

Using numbers I can see that this is a desired behaviour.



as the server has the information about which control index has a name (doesn't it?) the server should handle the logical range of named mapping.

by the way: sending -1 as a numControl could then simply set all consecutive controls until the next named control. This would solve the problem I pointed out in the other mail as well.

I see that there is cases where unnamed controls are added after a named control, but then the responsibility falls back to the user - this case is easily avoided by naming all controls.
--








.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise