Using Minim (external Processing Library) with PraxisLive

44 views
Skip to first unread message

Duna

unread,
Nov 13, 2018, 3:20:54 PM11/13/18
to Praxis LIVE software discussion group

Hello,

I'm trying to use beat detection with Praxis Live. I'd like to take the output of another computer (running TidalCycles) and route that to the input of my computer (running PraxisLive).
This is for a college assignment, where we are asked to perform live coding with audio and visuals working together from different computers.

I was told that minim can be used for beat detection from TidalCycles into Processing, and was wondering if the same could be achieved as PraxisLive uses Processing language.

I can see that Praxis imports it's own libraries, but cannot find an option at all, even manual, to import external libraries. In this case, minim.

Is there any way I can use minim for beat detection for my situation? And if not, is there an alternative way for me to take the output of TidalCycles, apply some type of beat detection and use that to co-ordinate my visuals in PraxisLive?

I'd appreciate any help,

Thanks,

Glenn

Neil C Smith

unread,
Nov 13, 2018, 3:32:56 PM11/13/18
to Praxis LIVE software discussion group
Hi Glenn,

On Tue, 13 Nov 2018 at 20:20, Duna <glenn...@gmail.com> wrote:
> Hello,

Welcome!

> I'm trying to use beat detection with Praxis Live. I'd like to take the output of another computer (running TidalCycles) and route that to the input of my computer (running PraxisLive).
> This is for a college assignment, where we are asked to perform live coding with audio and visuals working together from different computers.

Have you thought about using the OSC input for this? You can control
parameters and even send code fragments over OSC from Tidal ...
theoretically, haven't actually tried this yet.

> I was told that minim can be used for beat detection from TidalCycles into Processing, and was wondering if the same could be achieved as PraxisLive uses Processing language.

You can have a look at adapting the Funky Origami or Live Coder
examples under the Audio section - both have a custom FFT component
controlling visuals. At the moment, there's no beat detection
component, but you might be able to make one from the FFT code.
You'll just have to replace the bulk of the audio nodes with an audio
input, and add a gain or mixer set to 0.00001 before the output if you
don't want feedback!

> I can see that Praxis imports it's own libraries, but cannot find an option at all, even manual, to import external libraries. In this case, minim.

You can use any Processing or Java libraries by right-clicking the
project node, choosing Properties, then Libraries. You'll need all
the necessary JAR files to hand. There isn't a Processing library
importer UI as yet.

Having said that, I don't know how well you'll get on with integrating
Minim, and I'm not much of a fan of it, or the general way of working
with audio in Processing. You'd be better using PraxisLIVE's own audio
support.

> Is there any way I can use minim for beat detection for my situation? And if not, is there an alternative way for me to take the output of TidalCycles, apply some type of beat detection and use that to co-ordinate my visuals in PraxisLive?

Think I covered it above. I'd definitely look at sending OSC first off.

Hope that helps. Let us know if you need anything more, or jump on
the Gitter chat. https://gitter.im/praxis-live/

Best wishes,

Neil

--
Neil C Smith
Artist & Technologist
www.neilcsmith.net

PraxisLIVE - hybrid visual live programming
for creatives, for programmers, for students, for tinkerers
www.praxislive.org

Matt Spendlove

unread,
Nov 14, 2018, 9:43:49 AM11/14/18
to praxi...@googlegroups.com
+1 on using OSC rather than beat detection. You’ll get much more accurate results & fined grained mappings to sounds/events from Tidal.

There’s an example of how to echo the Tidal -> Supercollider OSC messages to another location here:

https://github.com/yaxu/p5dirt/blob/master/send.tidal
--
You received this message because you are subscribed to the Google Groups "Praxis LIVE software discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to praxis-live...@googlegroups.com.
To post to this group, send an email to praxi...@googlegroups.com.
Visit this group at https://groups.google.com/group/praxis-live.
For more options, visit https://groups.google.com/d/optout.
--


Matt Spendlove
+44 (0)7976 609379

________________________________________________

Cenatus :: Waveform Transmissions :: 00101010

Jérôme

unread,
Nov 15, 2018, 7:40:21 AM11/15/18
to praxi...@googlegroups.com
"There isn't a Processing library
importer UI as yet"

Hi, 

You know Neil, I gave it a try first by doing one in a "standard" NetBeans env when I created the processing4netbeans plugin, but my real intention was to check how it was possible to create one for praxis-live, one day... So, if you want, we could try to work on integrating such one... As long as it fits your needs, you know its current features are limited... It could be a basis... To be improved...


Neil C Smith

unread,
Nov 15, 2018, 9:25:37 AM11/15/18
to Praxis LIVE software discussion group
On Thu, 15 Nov 2018 at 12:40, Jérôme <fuj...@gmail.com> wrote:
>
> You know Neil, I gave it a try first by doing one in a "standard" NetBeans env when I created the processing4netbeans plugin, but my real intention was to check how it was possible to create one for praxis-live, one day... So, if you want, we could try to work on integrating such one... As long as it fits your needs, you know its current features are limited... It could be a basis... To be improved...

You know Jérôme, I've already had a look at your processing4netbeans
plugin and how you did this! :-) Yes, I'm definitely interested in
pursuing a better UI for importing libraries, both from Processing and
ideally from Maven central repositories too. Probably buttons /
wizards in the project properties dialog. At minimum they just need
to copy all jars into the config/libs folder, but some basic tracking
of what's already in there for dependencies / duplication would be
good.

Definitely would love some help on designing and building that!
Perhaps open a GitHub issue about it that we can start discussing.

Duna

unread,
Nov 16, 2018, 11:17:33 AM11/16/18
to Praxis LIVE software discussion group
Thank you all for your replies,

This has helped me an infinite amount.

Glenn

Jérôme

unread,
Nov 17, 2018, 5:33:24 AM11/17/18
to praxi...@googlegroups.com
:'D

for sure, praxis-live has more evolved needs with regards to this kind of plugin. Version update, basic tracking, as you said... Also, I had different constraints due to the fact that it needed to tweak the default netbeans java project, I guess that in a netbeans platform app you master from scratch, what you'll be able to do is different and more flexible. Ok, I'll create a github entry for this... 

All the best,

J.


Reply all
Reply to author
Forward
0 new messages