list starting from , only affecting certani steps

Official support for: loomer.co.uk
User avatar
gentleclockdivider
KVRAF
3217 posts since 22 Mar, 2009 from gent

Post Thu Aug 20, 2020 8:08 am

tuple like this (5 [ 50,70,80]) = change velocity starting from step 5
How to combine so it changes velocity for step 5,10,14 only ?
Itr ied the following (5,[60,60,60]),(10,[77,77,77]),(14,[55]) no luck
((5,[60,60,60]),(10,[77,77,77]),(14,[55]))
Last edited by gentleclockdivider on Thu Aug 20, 2020 8:14 am, edited 1 time in total.
Eyeball exchanging
Soul calibrating ..frequencies

User avatar
gentleclockdivider
KVRAF
3217 posts since 22 Mar, 2009 from gent

Post Thu Aug 20, 2020 8:13 am

I could use multiple distribution lists for ranndomness and pack tuples but that is not really elegant
What is the correct data to put into one data module ?
Image
Eyeball exchanging
Soul calibrating ..frequencies

colin@loomer
KVRAF
2175 posts since 25 Aug, 2003 from Bournemouth, UK

Post Thu Aug 20, 2020 8:23 am

You can use an array of (index, value) tuples. So, as in your example, to set step 5 to 50, 10 to 70, and 14 to 80, use:

[(5, 50), (10, 70), (14, 80)]
Architect, the modular MIDI toolkit, beta now available for macOS, Windows, and Linux.

User avatar
gentleclockdivider
KVRAF
3217 posts since 22 Mar, 2009 from gent

Post Thu Aug 20, 2020 8:33 am

THe problem is that I want the values to be random , provided by a distr.list
edit : will try template module ( for random variables provided by distr.)
Eyeball exchanging
Soul calibrating ..frequencies

colin@loomer
KVRAF
2175 posts since 25 Aug, 2003 from Bournemouth, UK

Post Thu Aug 20, 2020 8:36 am

Did you want both the step indices, and the pitch values to be random? I'll put together a little demo for you, first thing tomorrow.
Architect, the modular MIDI toolkit, beta now available for macOS, Windows, and Linux.

User avatar
gentleclockdivider
KVRAF
3217 posts since 22 Mar, 2009 from gent

Post Thu Aug 20, 2020 8:44 am

No luck , console changes except variable 4 ,which says undefined ( no syntax error )
But the monosequencer doesn't like the input data
mono step seq (3): unexpected type at 'velocity row': expected integer or array[integer] or tuple(integer,integer) or tuple(integer,array[integer]) or array[tuple(integer,integer)]
Image

Image

Edit undefine is solved ( had to start with $0 , still the sequencer does not like the data )
Eyeball exchanging
Soul calibrating ..frequencies

User avatar
gentleclockdivider
KVRAF
3217 posts since 22 Mar, 2009 from gent

Post Thu Aug 20, 2020 8:52 am

All good , problem solved !
the problem is that in the next weeks I will probably forget all of this :lol:
Eyeball exchanging
Soul calibrating ..frequencies

colin@loomer
KVRAF
2175 posts since 25 Aug, 2003 from Bournemouth, UK

Post Thu Aug 20, 2020 8:53 am

Good work!
Architect, the modular MIDI toolkit, beta now available for macOS, Windows, and Linux.

Return to “Loomer”