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. You can get the file with the help at this adress:
https://pdradio.iem.at/Members/megalegoland/note2RGB/
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. For the moment I have no clue on how to convert the note numbers coupled with velocity sent by a midi keyboard to a list in real time, and I have the feeling it could be a good starting solution.
Patco
___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
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.
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
IOhannes m zmölnig zmoelnig@iem.at
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.
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.
Megale's answer:
Done: You can get by now the files at this adress:
https://puredata.info/Members/megale/note2RGB/
I'd also suggest to wait a little while before downloading it, when all the modifications will be done for an entirely working object, I will use that subject to prevent the PD community.
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.
IOhannes m zmölnig zmoelnig@iem.at
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 ...
Megale's answer:
This is a great information, I am working on it right now, I will certainly have to create a special font for displaying microtones with adding or removing bars to the sharp, like I am usually doing when I write microtonal scores.
IOhannes m zmölnig zmoelnig@iem.at
i think what you are looking for is voice allocation, which can be done by [poly] (infamous but core pd since ever)
Megale's answer:
Okay, that is exactely the kind of object that I am looking for, but there are only three outputs, anyway, in list-abs I've found some abstractions that could help to allocate an high amount of voices. Have to make some tests...
Patco. _________________________________________________________
Long life to Pure Data Communauty...
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez le ici !
megale wrote:
oh: how do i configure my mail-reader in order to distinguish between what i've written and your answers? ...
IOhannes m zmölnig zmoelnig@iem.at
i think what you are looking for is voice allocation, which can be done by [poly] (infamous but core pd since ever)
Megale's answer:
Okay, that is exactely the kind of object that I am looking for, but there are only three outputs, anyway, in list-abs I've found some
the 3 outputs are: #1: voice you should send the rest to #2: pitch (1st incoming arg) #3: velocity (2nd incoming arg)
so you should be fine with this object for any number of voices (you specify at object-creation time)
i admit that the documentation is not that clear.
the trick is, to use [route 1 2 3 ... #n] to route the pitch/velocity pair to the voice-module of that id.
mfg,.ad.r IOhannes
Hi, I've rebuilt the note2rgb abs with using hsv2color and maxlibs/pitch, by this way, the objects number is highly reduced, awsome...
But, an error is caused by [pitch]:
error: maxlib_pitch: no method for 'ft1'
nothing else than a midi note number is entering into that object, weird...
(with PD-39.1 on winXP)
Also, I have to find a method to avoid an error message about font when the abs is opening. Apparently, text3d is checking the ttf file before the loadbang send it. These errors are not very important because they don't have any influence on the working process, it's just a message.
Patco.
ps: updated abs can be downloaded at this adress:
https://puredata.info/Members/megale/note2RGB/view
___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com
megale wrote:
Hi, I've rebuilt the note2rgb abs with using hsv2color and maxlibs/pitch, by this way, the objects number is highly reduced, awsome...
But, an error is caused by [pitch]:
error: maxlib_pitch: no method for 'ft1'
i do not now the [pitch]-object, but it seems you are sending a float-number to the 2nd inlet, and you shouldn't do that (there should be a documentation on the object's interface in its help-patch)
mfg.adr IOhannes
--- IOhannes m zmoelnig zmoelnig@iem.at wrote:
i do not now the [pitch]-object, but it seems you are sending a float-number to the 2nd inlet, and you shouldn't do that (there should be a documentation on the object's interface in its help-patch)
It's an absolutely correct information, and it gives more clues about error messages, thank you again.
The weird thing is that on documentation the second input of [pitch] is connected to velocity output of [notein], just disconnecting that second input resolves the problem greatly.
The font error during abs loading is simply resolved by renaming the font I am using with the name: "arial.ttf"
Patco.
___________________________________________________________________________ Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez cette version sur http://fr.messenger.yahoo.com