pierreguillot / Camomile

An audio plugin with Pure Data embedded that allows to load and to control patches
GNU General Public License v3.0
909 stars 65 forks source link

Canvas colors won't change #132

Closed insignificantother closed 4 years ago

insignificantother commented 6 years ago

Hey there,

I'm trying to create a simple keyboard display as part of the interface that lets users know the midi note they are pressing and what the range of the instrument is. Each note corresponds to a canvas that changes color temporarily when the corresponding key is pressed. It looks as if the canvases won't take messages in the plugin environment.

Also thanks for you wonderful work here.

ezequielabregu commented 6 years ago

Hi. Maybe... you have to use [gui redraw( message when some key is pressed. @insignificantother

pierreguillot commented 6 years ago

So? Does sending the message [gui redraw( to camomile solve the problem? See this the documentation about dynamic patching

pierreguillot commented 6 years ago

Closed due to inactivity, feel free to reopen the issue if necessary.

J-Ginkgo commented 5 years ago

Hi @pierreguillot do I have to do anything additional to reopen the issue?

It definately works with the [gui redraw( message. But only on the plugins canvas. If you want to do it in an abstraction and make the canvas visible on the parent it doesnt work.

insignificantother commented 5 years ago

I was trying to do something similar to what you're trying to do with the keyboard. I just ended up placing the canvases on the main patch and just using a subpatch or abstraction for the routing. I can send you the patch so you can look at it if you want.

J-Ginkgo commented 5 years ago

Yes thats the solution I came up with as well. So no need for the patch, thank you :) I just thought I should write it here because maybe it should be possible and it's a bug. Even though it's fine to work around.

pierreguillot commented 5 years ago

So the problem is specific to subpatches and abstractions. I will keep you informed when I'll solve this (I have to pause the dev for a while). Thanks

pierreguillot commented 4 years ago

I working on it, this will be related to this issue https://github.com/pierreguillot/Camomile/issues/128 so I close this one.