Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonathan Wilkes
purr-data
Commits
9dad6f40
Commit
9dad6f40
authored
4 years ago
by
Guillem Bartrina
Browse files
Options
Downloads
Patches
Plain Diff
add clone iterator, this will allow us to interact with the instances of the clone
parent
bdc1b00b
No related branches found
No related tags found
1 merge request
!521
add clone iterator, this will allow us to interact with the instances of the clone
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pd/src/g_canvas.h
+2
-0
2 additions, 0 deletions
pd/src/g_canvas.h
pd/src/g_clone.c
+10
-0
10 additions, 0 deletions
pd/src/g_clone.c
with
12 additions
and
0 deletions
pd/src/g_canvas.h
+
2
−
0
View file @
9dad6f40
...
@@ -237,6 +237,8 @@ struct _glist
...
@@ -237,6 +237,8 @@ struct _glist
#define gl_gobj gl_obj.te_g
#define gl_gobj gl_obj.te_g
#define gl_pd gl_gobj.g_pd
#define gl_pd gl_gobj.g_pd
typedef
void
(
*
t_canvas_iterator
)(
t_canvas
*
x
,
void
*
data
);
/*-------------------universal preset stuff---------------------*/
/*-------------------universal preset stuff---------------------*/
// for the universal preset_node ability (see g_editor.c doconnect/disconnect functions)
// for the universal preset_node ability (see g_editor.c doconnect/disconnect functions)
// this is where all the classes capable of being controlled via preset should be defined
// this is where all the classes capable of being controlled via preset should be defined
...
...
This diff is collapsed.
Click to expand it.
pd/src/g_clone.c
+
10
−
0
View file @
9dad6f40
...
@@ -65,6 +65,16 @@ typedef struct _clone
...
@@ -65,6 +65,16 @@ typedef struct _clone
int
x_suppressvoice
;
/* suppress voice number as $1 arg */
int
x_suppressvoice
;
/* suppress voice number as $1 arg */
}
t_clone
;
}
t_clone
;
/* the given 'it' function is executed over each of the underlying canvases
(they are passed as first parameter). 'data' is passed as second argument */
void
clone_iterate
(
t_pd
*
z
,
t_canvas_iterator
it
,
void
*
data
)
{
t_clone
*
x
=
(
t_clone
*
)
z
;
int
i
;
for
(
i
=
0
;
i
<
x
->
x_n
;
i
++
)
it
(
x
->
x_vec
[
i
].
c_gl
,
data
);
}
int
clone_match
(
t_pd
*
z
,
t_symbol
*
name
,
t_symbol
*
dir
)
int
clone_match
(
t_pd
*
z
,
t_symbol
*
name
,
t_symbol
*
dir
)
{
{
t_clone
*
x
=
(
t_clone
*
)
z
;
t_clone
*
x
=
(
t_clone
*
)
z
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment