Can you read? He did not say you need "stereo to mono". He said you cannot force Audacity to put stereo data into a mono track. He nows you claimed you want "a mono to stereo effect". And he formulated well what is the obstacle.Volta-X wrote:(continued from electric-x post. for simultaneous existing)
...he must have identical misunderstandings as you. that is one of them. i didn't need "stereo to mono". needed "mono to stereo". it's obvious.stevethefiddle wrote:"make-array" works within the Audacity implimentation of Nyquist, but as jan says, you cannot return stereo data to a mono track.
and... WE CAN MAKE MONO ARRAYS from stereo data with basic script;Code: Select all
(sum (mult 0.5 (aref s 0)) (mult 0.5 (aref s 1))) ##note: if "make-array" works, we'll get a single mono track. same bug happens in audacity's "stereo to mono" menu.
You should concentrate your attaintion to this point if you are indeed interrested in. If I we get sillent, it is mainly
because we do not believe you are interrested in that, and also because of ours insults.
You seem to have new knowledge about "S". On May 24, 2008, you pressented a script that started by dereferencing (=loosing) the value of s.Volta-X wrote:"S" WORKS AS VARIABLE AND ALSO COMMAND though you didn't seem to expect at all. its often used as dry sound in scripts. returns original sounds, even on nyquist prompt. and other than that i wrote, would go only if you created 2 arrays out of mono in theory.Code: Select all
s
Code: Select all
(setf s (make-array 2))
(vector s s)(Where did I copy from now ????)
Not clear what you want to say.Volta-X wrote: and other than that i wrote, would go only if you created 2 arrays out of mono in theory.
AREF is a function that returns n-th part of array of arbitrary length >=n, and it does do it in a special way,Volta-X wrote: "AREF" IS ONLY TO REFER AND GET A PART OF DATA FROM 2-LENGTH DATA. IT CREATES NOTHING NOR EFFECT NOTHING stereo-2-arrays date is a series of one list (i.e. data), not two list (in other word it's 2-length of A list). "aref" ONLY GETS a part of list. and we point a specific part of list with "(s 0or1)". then, noted plugin developers too use "VECTER" to recombine them.
YOU DIDN'T EXPECT THAT AT ALL THAT TOO?
so that it can be used to modify the content of the array. (Now this is a nice LISP excercise for me: how could that be implemented? Funny is the it is like you would speak about the implementation below. Possibly this way: the core of an array would be a list of symbols, that are variables. aref would return the n-th symbol. OK. OK? Does it work properly with local variables? Yes if the symbol names are globally unique, which is easy to implement. Is there something more to check? How does it work for (setf x (make-array 20)) (dotimes ((aref x 10) 5) (setf (aref x (aref x 10)) 3)) ? Xlisp does not accept that so I am about to do more than is usual. A nice excercise anyway.) Did I ever claim aref would create anything?
Stereo-sound is (in Audacity Nyquist) an array of two sounds. I do not know if it is "a series of one list (i.e. data)",Volta-X wrote: stereo-2-arrays date is a series of one list (i.e. data), not two list (in other word it's 2-length of A list). "aref" ONLY GETS a part of list. and we point a specific part of list with "(s 0or1)". then, noted plugin developers too use "VECTER" to recombine them.
you seem to speak now about the implementation of arrays. Morever, I have no idea what 'series' would be in XLISP nor in Audacity Nyquist. Aref is a function, it returns (not gets) something (part of an array) if an expression is evaluated whose CDR is Aref.
A nice typo. Trying to use S as a function (or perhaps 'command' in your terminology). I would never expect SVolta-X wrote: "(s 0or1)"
to be the first item in a list that is going to be evaluated.
As regards VECTOR, I learned that from you. Seems to me that makearrya+setf+aref is much more used in Nyquist internals, at least it was much easier to spot setf+aref since it ususally makes the expressions more compact. One can use any of them to obtain best readibility, convenience or efficiency.