COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Old 08-24-2005, 01:57 PM   #1
snapster
Human being with feelings
 
Join Date: Aug 2005
Posts: 6
Default Linux version? Jack?

I was wondering if there's any devel. going on for a linux version of the ninjam client? If not, I was wondering if the team needs help with this? I might be able to help.
I would totally suggest that the linux version be compatible with the JACK audio connection kit. This is really the way to go with linux audio these days...
snapster is offline   Reply With Quote
Old 08-29-2005, 04:40 PM   #2
plasticmetal
Human being with feelings
 
Join Date: Jul 2005
Posts: 17
Default mac on jack

I'm curious, if you built a Linux version using Jack, couldn't that be easily/possibly ported to Mac as well?

I like the Jack idea better than reWire...
plasticmetal is offline   Reply With Quote
Old 08-30-2005, 03:23 PM   #3
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 12,390
Default

Quote:
Originally Posted by snapster
I was wondering if there's any devel. going on for a linux version of the ninjam client? If not, I was wondering if the team needs help with this? I might be able to help.
I would totally suggest that the linux version be compatible with the JACK audio connection kit. This is really the way to go with linux audio these days...
The linux version is now available on ninjam.com.. it only can use ALSA at the moment, but the source is there so someone who wanted to make it use JACK should be able to do so trivially. I haven't installed JACKd yet so I can't go making it myself...
Justin is offline   Reply With Quote
Old 08-31-2005, 11:27 AM   #4
snapster
Human being with feelings
 
Join Date: Aug 2005
Posts: 6
Default sweet!

Quote:
Originally Posted by Justin
The linux version is now available on ninjam.com.. it only can use ALSA at the moment, but the source is there so someone who wanted to make it use JACK should be able to do so trivially. I haven't installed JACKd yet so I can't go making it myself...
Sweet! I can't wait to try it. I might try to JACK-ify the whole thing. Or even better, there's something I recently used called RtAudio, which apparently provides one API for JACK, ALSA, mac coreaudio, and windows audio. Combine that with a GUI done in a multiplatform thing like fltk or wxWindows, and then maybe you could get away with one set of sources! From the poking-around in the code I have done, it looks like you guys have done a really good job separating the interface, engine, and OGG stuff...

A nice thing about JACK is that it might eliminate the need for having multiple input sources; there are JACK tools like mixers that could do the mixing for you, and you could just route the mixer's output to Ninjam's input...

Last edited by snapster; 08-31-2005 at 11:30 AM.
snapster is offline   Reply With Quote
Old 09-04-2005, 02:40 AM   #5
lightman
Human being with feelings
 
Join Date: Aug 2005
Posts: 17
Default

hmm, rewire works with lots of apps though
lightman is offline   Reply With Quote
Old 09-04-2005, 08:49 PM   #6
snapster
Human being with feelings
 
Join Date: Aug 2005
Posts: 6
Default JACK version of ninjam!

So I was fiddling this weekend with adding RtAudio support to ninjam (see my post above about what RtAudio is), and I think I've gotten it to work. This means that there is a JACK version of ninjam now!
Note that it is extremely untested, so best of luck with it. It compiles on mac with rtaudio/coreaudio support, and on linux with rtaudio/jack support. I'm guessing it will be easy to get it to compile on mac with rtaudio/jack, or on linux with rtaudio/alsa, although the latter is useless since there is already an ALSA audio streamer.
Anyway, here it is:
http://s51.yousendit.com/d.aspx?id=1...G1ABUCFHP3F0HE
This is a limited download thingy, so if someone wants to host it more permanently, that would be cool.
snapster is offline   Reply With Quote
Old 09-05-2005, 06:56 PM   #7
snapster
Human being with feelings
 
Join Date: Aug 2005
Posts: 6
Default ninjam JACK

Ok, so I've managed to host my JACKified ninjam slightly more permanently:
http://pubu.no-ip.info/~choly/ninjam/ninjam_rtaudio.tgz
snapster is offline   Reply With Quote
Old 12-21-2005, 07:36 AM   #8
gzed
Human being with feelings
 
Join Date: Dec 2005
Posts: 6
Default

Hello,

I keep trying to connect to the host you listed but it is always offline...
gzed is offline   Reply With Quote
Old 12-21-2005, 07:40 AM   #9
gzed
Human being with feelings
 
Join Date: Dec 2005
Posts: 6
Default

ooops, forgot to mention... why don't you just attach the patch on your next message for us to download instead of putting it on obscure servers? There many Linux users that are willing to kill for jack support in Ninjam.

Cheers,

-Giuseppe
gzed is offline   Reply With Quote
Old 01-09-2006, 01:49 PM   #10
torbenh
Human being with feelings
 
Join Date: Jan 2006
Posts: 8
Default jackified ninjam...

hi...

i have written a native jack driver for ninjam...
i will post it soon, when i did some more debugging...

is there a way to get the current bpm etc from somwhere near the driver code ?
it would be nice to sync th jack_transport to the ninjam transport...
torbenh is offline   Reply With Quote
Old 01-09-2006, 02:54 PM   #11
torbenh
Human being with feelings
 
Join Date: Jan 2006
Posts: 8
Default ok... i put it online now...

its here:
http://galan.sf.net/ninjam-with-jack.tar.bz2

it generates some xruns with -p 128
but it should work nicely with -p 1024

have fun... i will raise the number of ioports soon...
torbenh is offline   Reply With Quote
Old 01-10-2006, 08:04 AM   #12
gzed
Human being with feelings
 
Join Date: Dec 2005
Posts: 6
Default

Many thanks!
gzed is offline   Reply With Quote
Old 01-10-2006, 10:30 PM   #13
jnc
Human being with feelings
 
Join Date: Jan 2006
Posts: 3
Default

Quote:
Originally Posted by torbenh
its here:
http://galan.sf.net/ninjam-with-jack.tar.bz2

it generates some xruns with -p 128
but it should work nicely with -p 1024

have fun... i will raise the number of ioports soon...
I run an athlon64 proc, and the following patch makes torbenh's tarball compile for me: http://cuodan.net/~jnc/patches/ninja...recision.patch

It changes the Makefile slightly, and corrects bitrot by casting to (int). I don't know if ninjam works yet, haven't tried it.
jnc is offline   Reply With Quote
Old 01-12-2006, 12:46 PM   #14
torbenh
Human being with feelings
 
Join Date: Jan 2006
Posts: 8
Default are we gonna fork ?

hello...

i am quite astonished, that there seems to be no feedback from the developers.
how shall we proceed with this ?

i really dont like to do a fork, because:

a) forks are bad.
b) i dont want to get into maintenance nightmares.

some of the internal structures of the client need to be changed to make it
satisfy RT requirements of the jack_process callback.

also with jack there is NO limitation on the input and output port numbers.
while 4 input ports are working here nicely, mixing the session to several
output ports for doing the final mix in ardour needs some changes also.

i request comments on these issues...
torbenh is offline   Reply With Quote
Old 01-13-2006, 09:31 PM   #15
dinoc
Human being with feelings
 
Join Date: Jan 2006
Posts: 22
Default

All I can say is THANK YOU so much Torben
I read your post in the lad mailing list today (Friday 13th) about your jackified version of ninjam for linux.
I tried it connecting it directly to the physical soundcard ports and then also with Ardour.
It worked great!
Oh, I also did some simple live drumming with Hydrogen
I used 256, 512 and 1024 frames as periodsizes to start jackd. I didn't check for xruns, but I didn't get any crackles or noises or other audible signs of xruns.
It's really cool to be able to add effects to live or virtual instruments in Ardour and then send the output to ninjam.
And well, having 1 or 2 outputs for each ninjam track and be able to mix it in Ardour would be
just awesome.
Thank you again and good jamming!
Alex
dinoc is offline   Reply With Quote
Old 01-14-2006, 01:01 AM   #16
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 12,390
Default

Quote:
Originally Posted by torbenh
hello...

i am quite astonished, that there seems to be no feedback from the developers.
how shall we proceed with this ?

i really dont like to do a fork, because:

a) forks are bad.
b) i dont want to get into maintenance nightmares.

some of the internal structures of the client need to be changed to make it
satisfy RT requirements of the jack_process callback.

also with jack there is NO limitation on the input and output port numbers.
while 4 input ports are working here nicely, mixing the session to several
output ports for doing the final mix in ardour needs some changes also.

i request comments on these issues...
Sorry, I haven't meant to be non-responsive, I've just been busy with other things (mostly REAPER)..

(edit):

Actually I've looked through the above posted files, and will be updating the linux distribution accordingly. Correct me if I'm wrong, but basically the only changes are:

audiostream_jack.*
cursesclient.cpp calling create_audioStreamer_JACK()
(and the amd64 patch).

right? I'll try to get that merged very soon.

-Justin

Last edited by Justin; 01-14-2006 at 01:09 AM.
Justin is offline   Reply With Quote
Old 01-18-2006, 06:15 PM   #17
torbenh
Human being with feelings
 
Join Date: Jan 2006
Posts: 8
Default jack-version...

hi justin...

sorry i missed you that day... i did not recognize it was you...

i am on my way building a patch with the current status...
i have now rudimentary jack-sync working...

i also increased the number of input and output ports to 4.
this is currently almost useless.
because it looks like njclient.cpp only supports mixing to stereo out.

is my assumption correct ?
if so, then it has to be changed.
if i understand this correct, then njclient.cpp is shared among all implementations
torbenh is offline   Reply With Quote
Old 01-18-2006, 07:10 PM   #18
torbenh
Human being with feelings
 
Join Date: Jan 2006
Posts: 8
Default new jack patch...

hi...

and here it is:

http://galan.sf.net/ninjam-0.01+jack.diff

the already patched archive is here:

http://galan.sf.net/ninjam-with-jack-0.02.tar.bz2
torbenh is offline   Reply With Quote
Old 01-20-2006, 07:08 PM   #19
misterC
Human being with feelings
 
Join Date: Jan 2006
Posts: 41
Default

torben, can't thank you enough.

I see you every now and then in the ardour irc channel, but just had to say thanks for making the jack version happen.

I ninjam just about every night now, and can't stop.

It's addictive!
misterC is offline   Reply With Quote
Old 01-22-2006, 10:45 PM   #20
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 12,390
Default

Got it all, I will update the tarball on ninjam.com with the basic JACK support and 64 bit compilation support shortly.

As far as rearchitecting to support lots of outputs for JACK, if you give me some time I'll add that. Just gotta figure some things out for it.

-Justin
Justin is offline   Reply With Quote
Old 01-23-2006, 12:35 PM   #21
torbenh
Human being with feelings
 
Join Date: Jan 2006
Posts: 8
Default support for more outputs...

my first thought is overloading the pan value...
like 2 means output to channel 2 and 3...
-1..1 pans between channel 0 and 1 as usual...

but this seems to be a little hacky...
if you got a better idea, then tell me...
torbenh is offline   Reply With Quote
Old 01-23-2006, 07:27 PM   #22
jnc
Human being with feelings
 
Join Date: Jan 2006
Posts: 3
Default Updated patches for jack 0.0.2 ninjam

Hi. I've updated my ("amd64") patchset against ninjam-with-jack 0.0.2, use at own risk, etc. It's for use with an amd64 debian host and the GNU GCC 4.x compiler series.

On the matter of JACK input/output ports, I might see the usefulness of bypassing the ninjam mixer, or providing ninjam mixer inserts using JACK ports. It's kind of overkill if you ask me though. That is, unless you are supporting 5.1 sound channels and then it becomes more immersive

-Eric
jnc is offline   Reply With Quote
Old 01-28-2006, 04:16 PM   #23
torbenh
Human being with feelings
 
Join Date: Jan 2006
Posts: 8
Default on my way...

hi..

in the next release i will include your patches. promise

i you understand what is wrong with the transport sync, then please tell me.
it syncs ok for some minutes... but then loses the sync...

i think i am annoying quite a lot people with my out of sync drummachine
torbenh is offline   Reply With Quote
Old 02-04-2006, 05:46 AM   #24
dinoc
Human being with feelings
 
Join Date: Jan 2006
Posts: 22
Default

Hey, any news on the jackied ninjam version?
Is it still part of the plan to have jack output ports for each ninjam channel?
Or is it too difficult to implement right now?
Cheers
Keep on jamming
Alex
dinoc is offline   Reply With Quote
Old 08-17-2006, 08:29 AM   #25
fivestringfretless
Human being with feelings
 
Join Date: Aug 2006
Posts: 9
Default

Quote:
Originally Posted by lightman
hmm, rewire works with lots of apps though
So make a jack <-> rewire thingy
fivestringfretless is offline   Reply With Quote
Old 08-17-2006, 10:30 AM   #26
FingerSoup
Human being with feelings
 
Join Date: Feb 2006
Posts: 65
Default

Quote:
Originally Posted by fivestringfretless
So make a jack <-> rewire thingy
That would be difficult, seeing Rewire is Windows, and JACK is Linux, and the 2 aren't compatible...
FingerSoup is offline   Reply With Quote
Old 08-23-2006, 07:05 AM   #27
Newbie Brad
Human being with feelings
 
Join Date: Mar 2006
Location: Nashville, TN
Posts: 128
Default

Quote:
Originally Posted by FingerSoup
That would be difficult, seeing Rewire is Windows, and JACK is Linux, and the 2 aren't compatible...
I am a newb to Jack. I have been corresponding with Stephane Letz and he was nice enough to share this with me

http://www.grame.fr/~letz/jackdmp.html

It's work in progress, I don't think he'll mind, you can see if it runs Jack for Windows in a form that works for you.
Newbie Brad is offline   Reply With Quote
Old 11-14-2006, 09:44 AM   #28
tgehrig
Human being with feelings
 
Join Date: Nov 2006
Posts: 24
Default

Hi,
is there any news or progress on the jack support in ninjam? I have some trouble with jack transport when starting jackd with qjackctl. But when I start jackd by hand it seems to work!?

MfG
Tobias
tgehrig is offline   Reply With Quote
Old 08-21-2007, 10:44 AM   #29
pljones
Human being with feelings
 
pljones's Avatar
 
Join Date: Aug 2007
Location: London, UK
Posts: 597
Default

Quote:
Originally Posted by jnc View Post
Hi. I've updated my ("amd64") patchset against ninjam-with-jack 0.0.2
Thanks Justin, torbenh and Eric. It works great with Ubuntu Gutsy.
__________________
Quote:
Originally Posted by Tony Williams
...Playing fast around the drums is one thing. But to play with people for others, to listen to, that's something else. That's a whole other world.

Last edited by pljones; 08-21-2007 at 02:50 PM.
pljones is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:44 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.