Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Rishabh Gupta
purr-data
Commits
162fd02f
Commit
162fd02f
authored
Feb 13, 2017
by
Albert Gräf
Browse files
Make sure that inmidi_clk() is called in the right place in the MIDI back-end. Fixes #255.
parent
d77d2175
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/s_midi.c
View file @
162fd02f
...
...
@@ -291,6 +291,7 @@ typedef struct midiparser
/* functions in x_midi.c */
void
inmidi_realtimein
(
int
portno
,
int
cmd
);
void
inmidi_clk
(
double
timing
);
void
inmidi_byte
(
int
portno
,
int
byte
);
void
inmidi_sysex
(
int
portno
,
int
byte
);
void
inmidi_noteon
(
int
portno
,
int
channel
,
int
pitch
,
int
velo
);
...
...
@@ -313,7 +314,17 @@ static void sys_dispatchnextmidiin( void)
outlet_setstacklim
();
if
(
byte
>=
0xf8
)
{
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
{
inmidi_byte
(
portno
,
byte
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment