Re: Ardour as a midi timecode slave

robertlazarski <[email protected]> Sun, 25 Apr 2021 08:36:42 -1000
Newsgroups gmane.comp.audio.ardour.user
Message-ID <CABpPLBUE8GrwwYAsz5y9dgEDLCzx67Rt+9dg_eBf9rP1BCMEoA@mail.gmail.com>
--===============1056806982003790508==
Content-Type: multipart/alternative; boundary="000000000000619b3405c0d0502c"

--000000000000619b3405c0d0502c
Content-Type: text/plain; charset="UTF-8"

On Sat, Apr 24, 2021 at 1:44 PM Paul Davis <[email protected]>
wrote:

>
>
> On Sat, Apr 24, 2021 at 5:16 PM robertlazarski <[email protected]>
> wrote:
>
>>
>> Two questions:
>>
>> 1) Staying on topic, can I execute ardour stop / play commands with
>> system calls? Just curious what I can do.
>>
>
> "system calls" is normally a term that describes what a program does it
> when needs to get some sort of the service from the operating system.
>
> I do not think that you mean that. I think you mean  using a terminal
> window and typing commands there.
>
> So your actual question is probably "can I send commands to ardour, from
> the command line, somehow?" The answer to that question: you can, using
> OSC. It's all described in at manual.ardour.org under "Control Surfaces".
> You will need a tool to send OSC commands ... "oscsend" is a common one.
>
>
Yes indeed. This command worked great:  oscsend osc.udp://localhost:3819
/transport_play


>
>> 2) Via a jltctrigger system call I need to send midi start / stop with
>> midi clock to an external sequencer that doesn't support MTC or MMC (Genoqs
>> Octopus). Google isn't showing much that is recent. Can you recommend the
>> right tool for the job?
>>
>
> I don't think that there are any well known tools that will let you send
> an MIDI Song Position Pointer message (start and stop are not MIDI clock).
> THere are perhaps some low level tools that could write a few bytes to a
> MIDI port.You also do this in most scripting languages in a few lines.
>
> I hope you realize that sending start/stop will not provide
> synchronization between the sequencer and the LTC source: that would
> require continuous delivery of MIDI Clock messages, and they have
> absolutely nothing to do with LTC at all.
>
>
Thanks for the info. Some of my sequencers support SPP (Korg Oasys) and
some don't (Genoqs Octopus). They all require a continuous midi clock when
slaved in order to set the BPM.

My alternative to Linux and LTC is an expensive midi stomp pedal (Step
Audio Status + optional pedal is $400) that has a midi clock generator.
Yet's it not practical to get several of them for multiple devices.
Compared to my feet, anything would be a step up in timing tightness.

I already have an instrument switcher stomp pedal for my Oberkorn analog
sequencer as simply breaking the gate signal will suffice. I have midi
lighting plans. So I have outgrown pedals for performance control. I need
automation and already have LTC for my cameras.

Where Jack may be able to help me, is Bar:Beats:Ticks info (BBT). I found
jack_midi_clock that is a 700 line C project on github.

I am green on Linux audio. I don't have a midi interface yet so I am in the
proof of concept stage. I ran this command but nothing is happening -
jack_mclk_dump is in another shell. Connections look good in qjackctl.

/usr/local/bin/jack_midi_clock --bpm 120 jack_mclk_dump:mclk_in

I tried a few Linux sequencers: Rosegarden, after I enabled jack and midi
it only showed midi connections in the qjackctl alsa pane, not the midi
pane. So I couldn't connect jack_midi_clock to it. And seq24, I couldn't
get it to show anything in jack. I couldn't figure out how to sync
aplaymidi with midi clock.

Nevertheless, I am still encouraged by what jltctrigger and oscsend do as
the equivalent of that is what I was hoping to find in the nearly 40 year
history of LTC / midi hardware but never found it.

Thanks!
Robert

--000000000000619b3405c0d0502c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Sat, Apr 24, 2021 at 1:44 PM Paul =
Davis &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">p=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmai=
l_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,20=
4,204);padding-left:1ex"><div dir=3D"ltr"><div dir=3D"ltr"><div style=3D"fo=
nt-family:arial,helvetica,sans-serif"><br></div></div><br><div class=3D"gma=
il_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Apr 24, 2021 at 5:1=
6 PM robertlazarski &lt;<a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a>&gt; wrote:<br></div><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid=
 rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_qu=
ote"><div><div class=3D"gmail_quote"><br></div><div class=3D"gmail_quote"> =
Two questions: <br></div><div class=3D"gmail_quote"><br></div><div class=3D=
"gmail_quote">1) Staying on topic, can I execute ardour stop / play command=
s with system calls? Just curious what I can do. <br></div></div></div></di=
v></blockquote><div><br></div><div><div style=3D"font-family:arial,helvetic=
a,sans-serif">&quot;system calls&quot; is normally a term that describes wh=
at a program does it when needs to get some sort of the service from the op=
erating system.</div><div style=3D"font-family:arial,helvetica,sans-serif">=
<br></div><div style=3D"font-family:arial,helvetica,sans-serif">I do not th=
ink that you mean that. I think you mean=C2=A0 using a terminal window and =
typing commands there.<br></div><div style=3D"font-family:arial,helvetica,s=
ans-serif"><br></div><div style=3D"font-family:arial,helvetica,sans-serif">=
So your actual question is probably &quot;can I send commands to ardour, fr=
om the command line, somehow?&quot; The answer to that question: you can, u=
sing OSC. It&#39;s all described in at <a href=3D"http://manual.ardour.org"=
 target=3D"_blank">manual.ardour.org</a> under &quot;Control Surfaces&quot;=
. You will need a tool to send OSC commands ... &quot;oscsend&quot; is a co=
mmon one.</div></div><div><br></div></div></div></blockquote><div><br></div=
><div>Yes indeed. This command worked great:=C2=A0 oscsend osc.udp://localh=
ost:3819 /transport_play <br>=C2=A0 </div><blockquote class=3D"gmail_quote"=
 style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);p=
adding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_quote"><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid=
 rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div class=3D"gmail_qu=
ote"><div><div class=3D"gmail_quote"><br></div><div class=3D"gmail_quote">2=
) Via a jltctrigger system call I need to send midi start / stop with midi =
clock to an external sequencer that doesn&#39;t support MTC or MMC (Genoqs =
Octopus). Google isn&#39;t showing much that is recent. Can you recommend t=
he right tool for the job? <br></div></div></div></div></blockquote><div><b=
r></div><div><div style=3D"font-family:arial,helvetica,sans-serif">I don&#3=
9;t think that there are any well known tools that will let you send an MID=
I Song Position Pointer message (start and stop are not MIDI clock). THere =
are perhaps some low level tools that could write a few bytes to a MIDI por=
t.You also do this in most scripting languages in a few lines.<br></div><di=
v style=3D"font-family:arial,helvetica,sans-serif"><br></div><div style=3D"=
font-family:arial,helvetica,sans-serif"> I hope you realize that sending st=
art/stop will not provide synchronization between the sequencer and the LTC=
 source: that would require continuous delivery of MIDI Clock messages, and=
 they have absolutely nothing to do with LTC at all. <br></div><br></div></=
div></div></blockquote><div>=C2=A0</div><div>Thanks for the info. Some of m=
y sequencers support SPP (Korg Oasys) and some don&#39;t (Genoqs Octopus). =
They all require a continuous midi clock when slaved in order to set the BP=
M. <br></div><div><br></div><div>My alternative to Linux and LTC is an expe=
nsive midi stomp pedal (Step Audio Status + optional pedal is $400) that ha=
s a midi clock generator. Yet&#39;s it not practical to get several of them=
 for multiple devices. Compared to my feet, anything would be a step up in =
timing tightness. <br></div><div><br></div><div>I already have an instrumen=
t switcher stomp pedal for my Oberkorn analog sequencer as simply breaking =
the gate signal will suffice. I have midi lighting plans. So I have outgrow=
n pedals for performance control. I need automation and already have LTC fo=
r my cameras.=C2=A0</div><div><br></div><div>Where Jack may be able to help=
 me, is Bar:Beats:Ticks info (BBT). I found jack_midi_clock that is a 700 l=
ine C project on github. <br></div><div><br></div><div>I am green on Linux =
audio. I don&#39;t have a midi interface yet so I am in the proof of concep=
t stage. I ran this command but nothing is happening - jack_mclk_dump is in=
 another shell. Connections look good in qjackctl. <br></div><div><br></div=
><div>/usr/local/bin/jack_midi_clock --bpm 120 jack_mclk_dump:mclk_in</div>=
<div><br></div><div>I tried a few Linux sequencers: Rosegarden, after I ena=
bled jack and midi it only showed midi connections in the qjackctl alsa pan=
e, not the midi pane. So I couldn&#39;t connect jack_midi_clock to it. And =
seq24, I couldn&#39;t get it to show anything in jack. I couldn&#39;t figur=
e out how to sync aplaymidi with midi clock. <br></div></div><div class=3D"=
gmail_quote"><br></div><div class=3D"gmail_quote">Nevertheless, I am still =
encouraged by what jltctrigger and oscsend do as the equivalent of that is =
what I was hoping to find in the nearly 40 year history of LTC / midi hardw=
are but never found it. <br></div><div class=3D"gmail_quote"><br></div><div=
 class=3D"gmail_quote">Thanks! <br></div><div class=3D"gmail_quote">Robert<=
br></div><div class=3D"gmail_quote"><div><br></div></div></div>

--000000000000619b3405c0d0502c--

--===============1056806982003790508==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ardour-Users mailing list
[email protected]
To unsubscribe  or change your mailing preferences please visit:
http://lists.ardour.org/listinfo.cgi/ardour-users-ardour.org

--===============1056806982003790508==--