[PD] MIDI to RGB

IOhannes m zmölnig zmoelnig at iem.at
Wed Nov 16 09:08:23 CET 2005


hi some remarks.

megale wrote:
>  I am working on an object that is converting MIDI note numbers to RGB colors, the object works
> quite well, even if I think there would be other methods with less objects but with more
> complicated math or with script files. 

i would suggest using something like [hsv2rgb] and feeding the 
note-value (scaled to 0..1 and probably pre-processed with a [% 12] to 
the color-angle (hue))
and you could map velocity to (e.g.) value (luminance)

this way you can also colorize microtones and/or change the scale and/or ...


>  You can get the file with the help at this adress:

very minor: while 4 files is not that much to download, it would be very 
nice to have a bundle (tgz/zip) where you can get all files with 1 click.


> 
> https://pdradio.iem.at/Members/megalegoland/note2RGB/

minor: why are you using pdradio? of course you are free to do so, but 
once we find the time, we will hopefully migrate it to puredata.info; 
the more user-data there is at that time, the more complicated it will get.
so please everyone, use puredata.info instead of pdradio.iem.at for 
sharing anything but streamed music.

> 
>  Now I am attempting to make an object that is able to output a chord or a cluster of MIDI note
> numbers to several colorized objects (in the example an object is an outline text with the name of
> the note), and I've done it without success, because I've pain to find a logic that allows the
> displaying of these different objects in gem with avoiding them to have the same color.
>  I've just downloaded yet the list-abs, and will try to find something in it that could solve the
> filtering problem.

i think what you are looking for is voice allocation, which can be done 
by [poly] (infamous but core pd since ever)

mfg.a.dr
IOhannes







More information about the Pd-list mailing list