Architect: Does anyone have a * macro/script

Official support for: loomer.co.uk
User avatar
cturner
KVRian
568 posts since 7 Dec, 2009 from GWB

Post Mon Feb 25, 2019 6:21 am

Some improvements coming soon:

Image
Tranzistow Tutorials: http://vze26m98.net/tranzistow/
Xenakis in America: http://oneblockavenue.net

User avatar
cturner
KVRian
568 posts since 7 Dec, 2009 from GWB

Re: Architect: Does anyone have a * macro/script

Post Wed Feb 27, 2019 8:21 am

Here's an update to Wigout:

http://vze26m98.net/loomer/Wigout-19022 ... 190224.zip

Here's a link to my previous version for those who don't know what I'm talking about.

viewtopic.php?p=7322368#p7322368

Image

Here are the changes:

. I ripped out the code that made "slant" ciggles and twiggles. I found it just too hard to get the shapes I wanted with it included. If you want slanted segments, you can still set ploc to something like 0.0 or 1.0 and fix it there.

. I re-worked the wavetable view which now works like so: the view is set to 1024 elements, which is the maximum it can display. When a waveform is pre-computed, the first 1024 points are displayed in the table view. If your waveform is longer than 1024 points, you can use the <-Pg and Pg-> controls to page through the segment. Note that the numbers on the view's top don't update, but the "page" you're on is printed to console, so with a little arithmetic you can figure out exactly where you are. You can also now Clear the buffer, and don't have to look at little bits of crap when your waveform ends short of a 1024 point modulus.

. The Chandra Lua script should precompute on launch, but I've retained a Pre-compute signal to handle changes.

. I remove the [nth tick] stuff, so there's now a one-to-one correspondence between your points and the PPQN. Can't go any faster now!

So with the above you can comment out the sine curve code on line 118 to get this:

Image

and set the pamp segment definition to zero to get this:

Image

Enjoy!
Tranzistow Tutorials: http://vze26m98.net/tranzistow/
Xenakis in America: http://oneblockavenue.net

User avatar
tl
KVRian
575 posts since 8 May, 2002 from ... , germany

Re: Architect: Does anyone have a * macro/script

Post Sat Apr 13, 2019 6:31 am

AZZIN wrote:
Tue Jan 08, 2019 1:56 pm
Ok, cannot resist: here is a first output of a hopalong sonification experiment.
It is based on (x,y) tuples of an hopalong algorithm mapped on pitch and velocity on three voices,
with some probability outcomes on the note generation itself.

https://soundcloud.com/albertoz/archite ... ong-fields

Still basic stuff, but the results are surprisingly promising!
Indeed surprisingly promising... a fun thing.
There seems to be a bug with scale selection via panel. The actual used scale is one before the one you pick in the dropdown: pick composite-blues, blues will be used.

All in all this is a great compositional experiment. Thanks.

Regards,
tl.

User avatar
AZZIN
KVRist
99 posts since 25 Jul, 2004 from Italy

Re: Architect: Does anyone have a * macro/script

Post Sun Apr 14, 2019 9:53 pm

Hi tl, thanks for pointing it out... I'll check. Glad you have found it interesting..

EDIT: ok, the attached simple modifications ("+1" module and "add a comma" on the selected dropdown) will restore the scale functionality. Regards,
Alberto
You do not have the required permissions to view the files attached to this post.

User avatar
AZZIN
KVRist
99 posts since 25 Jul, 2004 from Italy

Re: Architect: Does anyone have a * macro/script

Post Mon Apr 22, 2019 2:11 pm

Hello, attached to this post there is a port of the Musinum algorithm (https://reglos.de/musinum/) developed by L. Kindermann, implemented in Architect.
This is an interesting algorithm, both from a musical as well as a mathematical point of view. Starting from a counter "i" a "number" is produced (from a "start" number and a "step"); the number is the converted in a different "base" and the single digits of the new number are summed up. For example, (from the Musinum site):

Code: Select all

     decimal  binary  sum of
     number   number  digits    Tone    2nd     4th   
	1       1       1       c               
	2       10      1       c       c       
	3       11      2       d       .       
	4       100     1       c       c       c
	5       101     2       d       .       .
	6       110     2       d       d       .
	7       111     3       e       .       . 
	8       1000    1       c       c       c 
	9       1001    2       d       .       .
	10      1010    2       d       d       .
	11      1011    3       e       .       .
	12      1100    2       d       d       d
Please note the colums 2nd and 4th: here we have a "self-similarity" effect, which is a very interesting property of the output series.
The architect implementation implements the following (Matlab/Octave) code (with some limitations):

Code: Select all

% example initialization
N = 1000;
start = 0;
step =1;
base = 2;

% main loop
for i = 1:N

  num = start + i*step;

  D = dec2base(num,base);
  L = length(D);
  
  temp = 0;
  for j = 1:L
    temp = temp + str2num(D(j));  
  end

  out(i) = temp;

end
Now, if you have Matlab/Octave on your computer try the following:
% in case of base 2
out(1:20)
out(2:2:40)
out(4:4:80)

% in case of base 3
out(1:20)
out(3:3:90)
out(9:9:180)

and you have identical sequences, i.e. self-similar.

The Architect implementation is centered on a macro ("musi_num") which has the following inlets:

- input: an incremental/decremental number triggered by a Metronome, for example set to 1/8
- step: (>=1), as in above code
- start: starting integer (>=0), as in above code
- base: numerical base in which the number is converted
- max range: maximum midi note range on which the algorithm is bounded (def. 66)
- min range: minimum midi note range on which the algorithm is bounded (def. 46)

The main output is a number (left outlet) that can be easily converted into a midi note, while an experimental output* (right outlet) provides a number between [0-1] that is translated to midi velocity by means of a-linmap macro. These two ouput can then be passed through some midi processing (execution probability, force to scale etc.). Attached there is a simple implementation with 1 Midi channel in output.

Experiment with the different parameters, esp. "step" and "base", but also with increasing and decreasing input numbers ("UP", "DOWN") to get interesting sequences. To this aim, a simple graphical interface is provided, which allows the selection of the main parameters as well as scale, min/max midi velocity and channel probability. The default output is Midi OUT, so you have to attach a midi instrument outside Architect or switch the output to Track<N> (internal to Architect).

Suggestions, feedback, error reports are welcome.

Have fun,

Alberto

*this idea is taken by the Musinum implementation in Pure Data by M. Brinkmann.

EDIT: here is a piano piece generated with two instances of the algorithm.

https://soundcloud.com/albertoz/praelude-for-a-robot
You do not have the required permissions to view the files attached to this post.

gminorcoles
KVRer
23 posts since 22 Feb, 2019

Re: Architect: Does anyone have a * macro/script

Post Wed May 15, 2019 11:43 pm

Alberto that is a great algorithm. Listening to the SoundCloud I thought it would be nice to alter the outgoing stream of notes so that a certain rhythm is imposed? I have just finished reading the long architect beta thread after learning about architect. Are there macros for rythmic styling ?

User avatar
AZZIN
KVRist
99 posts since 25 Jul, 2004 from Italy

Re: Architect: Does anyone have a * macro/script

Post Thu May 16, 2019 11:34 am

gminorcoles wrote:
Wed May 15, 2019 11:43 pm
Alberto that is a great algorithm. Listening to the SoundCloud I thought it would be nice to alter the outgoing stream of notes so that a certain rhythm is imposed? I have just finished reading the long architect beta thread after learning about architect. Are there macros for rythmic styling ?
Hi gminorcoles, welcome onboard! Yes, the algorithms I worked out up to now are mostly "pitch-related". An interesting "rhythm generator" is something I'm looking for as well. There is an Euclidean rhythm generator on the first page of this thread but I'm also waiting for the library of examples that will come out from the v1.0 of this beast.

gminorcoles
KVRer
23 posts since 22 Feb, 2019

Re: Architect: Does anyone have a * macro/script

Post Fri May 17, 2019 2:52 am

I feel like a clave template transformer would be cool. You start with a set of predefined rythmic phrases which can be parametrically varied, and then set a schedule for superimposing them onto the piece.

jcgam
KVRist
58 posts since 5 Jan, 2019

Re: Architect: Does anyone have a * macro/script

Post Wed May 22, 2019 4:26 pm

AZZIN wrote:
Mon Apr 22, 2019 2:11 pm

Suggestions, feedback, error reports are welcome.

Have fun,

Alberto

*this idea is taken by the Musinum implementation in Pure Data by M. Brinkmann.

EDIT: here is a piano piece generated with two instances of the algorithm.

https://soundcloud.com/albertoz/praelude-for-a-robot
This is very interesting! I enjoyed the sample. Thanks for sharing!

Return to “Loomer”