I am storing midi data in [coll] as lists of 4 numbers each. I want to perform some function on one of the numbers at every address. For example, I’d like to subtract 300 from the first number of every list. Is there an easy way of doing this?
Thanks in advance.
the dynamic way is to unpack on the way out and subtract from the appropriate stream
i’d use Lsub (from Lobjects package) or
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 221 291 158 9109513 like nsub – but also causes output;
#P message 153 271 68 9109513 nsub 1 3 800;
#P message 153 291 63 9109513 sub 1 3 800;
#P comment 203 252 398 9109513 get individual element from stored list (get
index 1 elem 2) – first elem is numbered 1;
#P message 153 251 46 9109513 nth 1 2;
#P comment 224 271 371 9109513 set individual element in stored list (set
index 1 elem 3 of index 1 to 800);
#P window clipboard copycount 6;
On Mon, May 12, 2008 at 4:03 PM, Jay Bodley
> I am storing midi data in [coll] as lists of 4 numbers each. I want to
> perform some function on one of the numbers at every address. For example,
> I’d like to subtract 300 from the first number of every list. Is there an
> easy way of doing this?
> Thanks in advance.
coll is easy to edit for text files (just double-click), but seq requires writing and reading files. is there any way to easily edit the content of seq?
i’m thinking in specific of recording my midi data into coll (in case i need to quickly edit times, notes, etc) then using seq to play it, but can’t figure out what to do.
C74 RSS Feed | © Copyright Cycling '74