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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
brittney allen
purr-data
Commits
162fd02f
Commit
162fd02f
authored
8 years ago
by
Albert Gräf
Browse files
Options
Downloads
Patches
Plain Diff
Make sure that inmidi_clk() is called in the right place in the MIDI back-end. Fixes #255.
parent
d77d2175
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pd/src/s_midi.c
+11
-0
11 additions, 0 deletions
pd/src/s_midi.c
with
11 additions
and
0 deletions
pd/src/s_midi.c
+
11
−
0
View file @
162fd02f
...
@@ -291,6 +291,7 @@ typedef struct midiparser
...
@@ -291,6 +291,7 @@ typedef struct midiparser
/* functions in x_midi.c */
/* functions in x_midi.c */
void
inmidi_realtimein
(
int
portno
,
int
cmd
);
void
inmidi_realtimein
(
int
portno
,
int
cmd
);
void
inmidi_clk
(
double
timing
);
void
inmidi_byte
(
int
portno
,
int
byte
);
void
inmidi_byte
(
int
portno
,
int
byte
);
void
inmidi_sysex
(
int
portno
,
int
byte
);
void
inmidi_sysex
(
int
portno
,
int
byte
);
void
inmidi_noteon
(
int
portno
,
int
channel
,
int
pitch
,
int
velo
);
void
inmidi_noteon
(
int
portno
,
int
channel
,
int
pitch
,
int
velo
);
...
@@ -313,7 +314,17 @@ static void sys_dispatchnextmidiin( void)
...
@@ -313,7 +314,17 @@ static void sys_dispatchnextmidiin( void)
outlet_setstacklim
();
outlet_setstacklim
();
if
(
byte
>=
0xf8
)
if
(
byte
>=
0xf8
)
{
inmidi_realtimein
(
portno
,
byte
);
inmidi_realtimein
(
portno
,
byte
);
if
(
byte
==
0xf8
)
{
// AG: Not sure what the timebase for the right outlet is supposed
// to be. I'm using msecs right now, which is in line with the other
// tempo-related objects such as metro. Uncomment the .001 factor to
// get seconds instead.
double
timing
=
/*.001 * */
clock_gettimesince
(
sys_midiinittime
);
inmidi_clk
(
timing
);
}
}
else
else
{
{
inmidi_byte
(
portno
,
byte
);
inmidi_byte
(
portno
,
byte
);
...
...
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