[Ardour-Users] Web Audio API with Ardour (Johnny NC)

Johnny Wunder johnwunder at cox.net
Mon Jan 10 07:25:35 PST 2022


Just wanted to say thank you.  Took me a while but fix turned out to be 
really simple.  I am using Ubuntu Studio, Ardour and a browser with my 
javascript code.  The secret was sequencing the start up of the apps.  I 
had been recording with Ardour for a while and only recently wanted to 
tie in the the lightshow at the same time.  I'd always been bring Ardour 
up before starting Studio with jack,  When I want the light show 
concurrently I need to start studio and then the browser and Ardour so 
Jack s already running.  Doing it that way both get access to the 
soundstream.

Finally got there but would have never gotten there without all your help.

Thank you,

Johnny

On 12/29/21 4:05 PM, ardour-users-request at lists.ardour.org wrote:
> Send Ardour-Users mailing list submissions to
> 	ardour-users at lists.ardour.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.ardour.org/listinfo.cgi/ardour-users-ardour.org
> or, via email, send a message with subject or body 'help' to
> 	ardour-users-request at lists.ardour.org
>
> You can reach the person managing the list at
> 	ardour-users-owner at lists.ardour.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Ardour-Users digest..."
>
>
> Today's Topics:
>
>     1. Web Audio API with Ardour (Johnny NC)
>     2. Re: Web Audio API with Ardour (Gunter K?nigsmann)
>     3. Re: Web Audio API with Ardour (Chris Caudle)
>     4. Re: Web Audio API with Ardour (Paul Davis)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 29 Dec 2021 11:09:47 -0500
> From: Johnny NC <johnwunder at cox.net>
> To: ardour-users at lists.ardour.org
> Subject: [Ardour-Users] Web Audio API with Ardour
> Message-ID: <A630B893-DECF-464D-83CC-83345B23EC18 at cox.net>
> Content-Type: text/plain; charset=utf-8
>
> I have written a ?live? lightshow driven by the music I?m playing. I?d like to be able to record with Ardour and flow the music through to my web page https://johnnywunder.info/SmokingOnThePorch/liveTheMusic.html but with Ardour up it never flows. I?m using Ubuntu Studio with Jack with a Mackie Onyx USB Producer.
> I?m relatively new to Ardour either recording or the lightshow work fine separately. I?ve played with many setting but can?t see to get Ardour to stop exclusively grabbing the audio.
> Is it possible and if so what do I need to change?
> Thanks?Stay Well,
> Johnny
>
> A backwater kind of guy.
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 29 Dec 2021 18:29:59 +0100
> From: Gunter K?nigsmann <gunter at peterpall.de>
> To: ardour-users at lists.ardour.org, Johnny NC <johnwunder at cox.net>
> Subject: Re: [Ardour-Users] Web Audio API with Ardour
> Message-ID: <CD6FA33C-58F3-421C-B4D4-48AF50581186 at peterpall.de>
> Content-Type: text/plain; charset="utf-8"
>
> One way to archive what you want is to playback the Lightshow through a sound server like esound, pulseaudio or jack and let ardour use a backend that grabs a handle of this sound server instead of the real sound hardware...
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.ardour.org/pipermail/ardour-users-ardour.org/attachments/20211229/d7f1c14d/attachment-0001.html>
>
> ------------------------------
>
> Message: 3
> Date: Wed, 29 Dec 2021 11:51:52 -0600
> From: "Chris Caudle" <6807.chris at pop.powweb.com>
> To: ardour-users at lists.ardour.org
> Subject: Re: [Ardour-Users] Web Audio API with Ardour
> Message-ID:
> 	<787dd656827e22990ebdcbeef493e093.squirrel at email.powweb.com>
> Content-Type: text/plain;charset=iso-8859-1
>
> On Wed, December 29, 2021 10:09 am, Johnny NC wrote:
>> I have written a live lightshow driven by the music I'm playing.
>> I'd like to be able to record with Ardour and flow the music through to
>> my web page https://johnnywunder.info/SmokingOnThePorch/liveTheMusic.html
>> but with Ardour up it never flows. I'm using Ubuntu Studio with Jack
>> with a Mackie Onyx USB Producer.
>> I'm relatively new to Ardour either recording or the lightshow work fine
>> separately. I've played with many setting but can't see to get Ardour
>> to stop exclusively grabbing the audio.
>> Is it possible and if so what do I need to change?
> Are you actually using the JACK backend in Ardour, or the ALSA backend?
> If you are using the ALSA backend, Ardour will grab exclusive use of the
> audio hardware, there is no way around that, you will need to use jackd.
> Rather, you will need to use an audio server, the three currently suitable
> being jackd 1, which works well but it not really maintained these days,
> or jackd 2, latest version is 1.9.19, or Pipewire, which implements
> several audio and video APIs including JACK.
> Probably Ubuntu Studio has jackd 2, and that will be the best way for you
> to do what you need.
> You can start jackd from the command line, but often people use a GUI
> application like QJackControl or Catia to configure jackd.  I do not know
> which Ubuntu Studio provides, perhaps someone who uses Ubuntu regularly
> could help out with that.
>
> Using the JACK backend, then jackd has exclusive control of the audio
> hardware, and you need to setup connections from the audio source to both
> Ardour track input and the lightshow software input.  That is where using
> the GUI configuration tools are most convenient, you will need to draw
> connections from system_in ports (assuming you are playing music live) to
> both the lightshow  software inputs and the Ardour track inputs you want
> to use for recording.
>
> You did not mention which software you are using for the lightshow
> control. Hopefully it supports the JACK API already, otherwise you will
> have to bridge from jackd to whatever API the software supports.
> Presumably ALSA, but all the software I use is natively JACK aware, so I
> am not sure of the procedures to do that.  Someone on the list may be able
> to advise once you have given more details about the lightshow software
>


More information about the Ardour-Users mailing list