Re: [PD] data structures question ...

2017-05-20 Thread Dan Wilcox
I think y’all should make a data structure feature request list (if there isn’t 
one already).

> On May 20, 2017, at 5:42 PM, pd-list-requ...@lists.iem.at wrote:
> 
> From: Fede Camara Halac >
> Subject: Re: [PD] data structures question ...
> Date: May 20, 2017 at 5:42:49 PM MDT
> To: oliver >
> Cc: pd-l...@mail.iem.at 
> 
> 
> Hi oliver, thanks for sharing
> 
> I'm trying to wrap my head around this but it seems that arrays in structs 
> don't provide a "change" flag, making my suggestion null. 
> 
> I really cant think of a way to internally block mouse interaction in a gop 
> patch. You could plot a graph on a canvas with an external, and have the data 
> structure somewhere hidden, like in an actual array object. 
> 
> Hope this helps
> 
> Best,
> 
> fd
> 
> fdch.github.io/tv 

Dan Wilcox
@danomatika 
danomatika.com 
robotcowboy.com 



___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Help with a patch

2017-05-20 Thread Pagano, Patrick
Thanks Baptiste, figured it out a few days ago. I went with a set of spigots. 
please do add context elements for buttons that would be nice!


Patrick Pagano B.S, M.F.A

Assistant Professor in Residence

Digital Media & Design

Web & Interactive Technologies

University of Connecticut, Stamford

(352)-226-2016


From: baptiste chatel 
Sent: Saturday, May 20, 2017 5:33:52 AM
To: Pagano, Patrick
Cc: pd list
Subject: Re: [PD] Help with a patch

Hi

It should be easy, you just have to [route] the incoming notes to another 
destination when you are on a specific page. It's the exact same thing that we 
do when we [spigot] or [route] knobs. I was actually thinking of adding page 
context to all elements in my o-knob "library".

2017-05-18 8:33 GMT+02:00 Pagano, Patrick 
>:

He


I am hoping someone might be able to give me a solution for a roadblock i have 
run into regarding a patch

I am trying to port a 6 channel/16 step drum machine to the Organelle by 
Critter& Guitari

I would like to use the 24 momentary buttons which i can convert into toggles 
to program the on/offs for the

6 channels of 16 steps.


There are four knobs that can be addressed across multiple pages but the 
buttons/toggles do not behave that way. I would love to have them be on 6 
separate pages or honestly anything that anyone can suggest i will try

I appreciate any help

I am sure there is a solution but i am not seeing it right now so i am hopeful 
writing the challenge down and sharing it with the list might help me organize 
my thoughts or someone might have a suggestion


cheers~



Patrick Pagano B.S, M.F.A

Assistant Professor in Residence

Digital Media & Design

Web & Interactive Technologies

University of Connecticut, Stamford

(352)-226-2016

___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] patch with Loadbang loses data structure

2017-05-20 Thread João Pais




for that it works to draw first the black, then the white keys, then  
vis 0,vis 1.

It's not logical, but it seems to work.


also works for me. and it helps for filtering the right key events (see  
my solution).


Seems like a magic for me... Anyway I adopt Christof mixed with João  
solutions at this patch.


But arises some questions...

Once I need:
 1. change color of key while mouse click is on at these key


that's easy on its own, get the pointer from the output of [struct] when  
you click on it. use it to change the color with [set .. color].


 2. once mouse click is on, and mouse cursor move around the gop area,  
the keyboard will respond. Like a finger pressing and moving around a  
>real keyboard.

 3. the key are velocity sensitive around y axis at first click.


I'm thinking to map the gop are, create a system of coordinates to draw  
keyboard and using [cyclone/mousestate] and/or only  
[iemguts/>receivecanvas].


In this way maybe is better implement the João suggestion of  
parameterize the template and implement the keys with more points and  
implement >the control with a gop coordinate system.


you can't click and drag on data-s, so your other idea is better (and get  
the pointers to make the display look accordingly).
Once I did a sampler what I had an horizontal line of marks indicating  
places in a sample; also using [mousestate] to get the mouse actions  
(position in window + clicks) I could extrapolate where I was in the  
window, and what should sound.


Joao___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Help with a patch

2017-05-20 Thread martin brinkmann
i'm not quite sure if i understand the problem correctly, but

On 18/05/17 08:33, Pagano, Patrick wrote:

> There are four knobs that can be addressed across multiple pages but the 
> buttons/toggles do not behave that way. I would love to have them be on 6 
> separate pages or honestly anything that anyone can suggest i will try

i believe it should be possible to detect which 'page' the device is on,
and then route (prefix the page-nr to the setstepvaluewhatever message)
the button-presses accordingly?

___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] data structures question ...

2017-05-20 Thread oliver

thanks a lot for all suggestions ! helpful indeed !

i just realized that i didn't mention that i need "mouse blocking" for 
the [plot] element (or rather arrays), which i think is another problem 
on its own


Federico Camara Halac wrote:

Hi Oliver,

Something like [scalar] might be interesting here, since it doesn't
allow "editmode". This means that mouse interaction depends on routing
clicks from the [struct].  Also check the help file for scalar, it's
still on the makings but I sense it's going to be amazing.


you're right the help file for scalar is ... well, not really there ;-)

but your patch is a nice hint into the right direction !

@christof:

thanks for the "-x" tip. wasn't aware of it. unfortunately it doesn't 
work with [plot]




best

oliver

___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list