-
theepicproblem
You'll have to pardon me as I've just started working with PD but my question should be fairly easy to answer...
I'm working on a patch that will allow midi 'notes' (from a midi keyboard) to trigger rgb values. From my beginners perspective the easiest way to do this is to have the values from the lowest note to the highest note read a table/array of rgb values which are then sent to GEM so that each note always corresponds to the same rgb value. The nice thing about this is that I can set the table to read different arrays so that i can switch between different 'color schemes'.
Unfortunately i cannot figure out a way to arrange rgb values in a table that can then be routed to the message: which i have been using in previous patches to control the color of my GEM Objects. I can't seem to find anything that explains in detail or example the color objects and messages related to GEM.
Also for later patches that may involve multiple objects paired to polyphonic midi notes this seem like the wrong way to approach this patch.
Also, could i just create a trigger that send out a bang according to the numbers from my [notein] object -
theepicproblem
Thanks, this seems like it would work. However, i'd like to personally decide the rgb value that is associated with the midi note rather than giving it all up to pure mathematics. (...ehh how whould you multiply the fraction 225/127 on pure data anyways?)
also... what object do you use to input your rgb data? I have been using a color message straight into a [gemwin] which seems to take a three separate decimal values in range from 0 to 1