Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER for Linux

Reply
 
Thread Tools Display Modes
Old 08-22-2018, 03:06 PM   #81
Jack Winter
Human being with feelings
 
Jack Winter's Avatar
 
Join Date: Aug 2007
Location: Luxembourg/Spain
Posts: 1,922
Default

Quote:
Originally Posted by Glennbo View Post
Whoa, running alsa-info.sh produced a 3,755 line document. You didn't want me to post all of that here did you?
Nah, you could gist/pastebin it or so, and I'll download it and take a look. One problem is that I don't have enough information about your audio system, and if I have to ask you loads of questions we'll never get anywhere

Quote:
I do know how it goes being determined to make stuff work though. My day gig before I retired at 60 was in IT and programming, and I was always the one who got the job of making difficult stuff work because I'd become consumed with it, thinking about it during dinner and while trying to go to sleep, but I'd always end up making it happen.
Yeah, well I think it's the only way to get things done If you give up then everything is lost..

I also worked a bit with software development, and then I had my own business as a system integrator. But finally I burnt out and didn't want to see another computer again. Nowadays I do something completely different to earn my daily bread, and playing with computers is just for fun. I like it better like that
__________________
Reaper for Linux Documentation (WIP). Software: Archlinux/KDE, Fabfilter FX, Komplete 8, Nebula, Schwa/Stillwell, T-racks Max/Amplitube/SVX, etc. Gear: i7-2600k/4700HQ/16GB, RME Multiface/Babyface, Behringer X32, Genelec 8040, etc. :)
Jack Winter is offline   Reply With Quote
Old 08-22-2018, 03:46 PM   #82
Jack Winter
Human being with feelings
 
Jack Winter's Avatar
 
Join Date: Aug 2007
Location: Luxembourg/Spain
Posts: 1,922
Default

Actually doesn't alsa-info ask you about uploading it, there is no personal info in it, and you get a link back that you can post.

And please give the output of `aplay -v --dump-hw-params -fdat -d1 -Dhw:M2496 /dev/zero` too.
__________________
Reaper for Linux Documentation (WIP). Software: Archlinux/KDE, Fabfilter FX, Komplete 8, Nebula, Schwa/Stillwell, T-racks Max/Amplitube/SVX, etc. Gear: i7-2600k/4700HQ/16GB, RME Multiface/Babyface, Behringer X32, Genelec 8040, etc. :)
Jack Winter is offline   Reply With Quote
Old 08-22-2018, 05:28 PM   #83
Glennbo
Human being with feelings
 
Glennbo's Avatar
 
Join Date: Mar 2008
Location: Planet Earth
Posts: 9,013
Default

Quote:
Originally Posted by Jack Winter View Post
Actually doesn't alsa-info ask you about uploading it, there is no personal info in it, and you get a link back that you can post.

And please give the output of `aplay -v --dump-hw-params -fdat -d1 -Dhw:M2496 /dev/zero` too.
It does ask to upload it, but I never trust that there isn't some info I don't want out there in the wild, and reading through 3750 lines to make sure an ip or machine identifying info ain't in there is too time consuming.

Does you email at alchemy.lu still work? I'd be cool with sending the 9.3kb zip file directly to you.

Running the aplay command comes back with this error.

aplay: main:788: audio open error: Device or resource busy
__________________
Glennbo
Hear My Music - Click Me!!!
--
Glennbo is offline   Reply With Quote
Old 08-22-2018, 06:12 PM   #84
Jack Winter
Human being with feelings
 
Jack Winter's Avatar
 
Join Date: Aug 2007
Location: Luxembourg/Spain
Posts: 1,922
Default

Yes send it to my email. Did you have JACK running while trying the command?
__________________
Reaper for Linux Documentation (WIP). Software: Archlinux/KDE, Fabfilter FX, Komplete 8, Nebula, Schwa/Stillwell, T-racks Max/Amplitube/SVX, etc. Gear: i7-2600k/4700HQ/16GB, RME Multiface/Babyface, Behringer X32, Genelec 8040, etc. :)
Jack Winter is offline   Reply With Quote
Old 08-22-2018, 06:26 PM   #85
Glennbo
Human being with feelings
 
Glennbo's Avatar
 
Join Date: Mar 2008
Location: Planet Earth
Posts: 9,013
Default

Quote:
Originally Posted by Jack Winter View Post
Yes send it to my email. Did you have JACK running while trying the command?
Done! No I had nothing running at the time. It's probably Pulse Audio, but I don't want to take that down because I have other things working real well that use it.

I have a dedicated Xubuntu Linux machine running MythTV that records and streams live HDTV using eight ethernet HDHomerun tuners connected to an 85 mile HDTV antenna that's up in my attic. It's free DVR in every room of the house, and on my dual boot DAW, it plays using Kodi as the client, and works real well with an infrared remote controller. I use the remote to run REAPER from my drums as well.
__________________
Glennbo
Hear My Music - Click Me!!!
--
Glennbo is offline   Reply With Quote
Old 08-22-2018, 06:53 PM   #86
Jack Winter
Human being with feelings
 
Jack Winter's Avatar
 
Join Date: Aug 2007
Location: Luxembourg/Spain
Posts: 1,922
Default

Quote:
Originally Posted by Glennbo View Post
Done! No I had nothing running at the time. It's probably Pulse Audio, but I don't want to take that down because I have other things working real well that use it.
Just looked through the file, it just contains information about distro, kernel, alsa, modules loaded, soundcards detected, etc. No private information at all. It's a tool to allow alsa devs to get the information they need in one go, instead of having to ask the user piecemeal.

Regarding the command (in case it's PA), try "pasuspender -- aplay -v --dump-hw-params -fdat -d1 -Dhw:M2496 /dev/zero"

I see that your indexes moved again..:S Maybe that's why one of my earlier attempts failed, try this:

Code:
pcm.Multi {
    type multi;
    slaves.a.pcm "hw:M2496";
    slaves.a.channels 2;
    slaves.b.pcm "hw:M2496_1";
    slaves.b.channels 2;
    bindings.0.slave a;
    bindings.0.channel 0;
    bindings.1.slave a;
    bindings.1.channel 1;
    bindings.2.slave b;
    bindings.2.channel 0;
    bindings.3.slave b;
    bindings.3.channel 1;
}

ctl.Multi
{
    type hw;
    card "M2496";
}
Try: /usr/bin/jackd -P80 -S -dalsa -dMulti -r44100 -p64 -n2 -Xseq
__________________
Reaper for Linux Documentation (WIP). Software: Archlinux/KDE, Fabfilter FX, Komplete 8, Nebula, Schwa/Stillwell, T-racks Max/Amplitube/SVX, etc. Gear: i7-2600k/4700HQ/16GB, RME Multiface/Babyface, Behringer X32, Genelec 8040, etc. :)
Jack Winter is offline   Reply With Quote
Old 08-22-2018, 07:15 PM   #87
Glennbo
Human being with feelings
 
Glennbo's Avatar
 
Join Date: Mar 2008
Location: Planet Earth
Posts: 9,013
Default

Quote:
Originally Posted by Jack Winter View Post
Just looked through the file, it just contains information about distro, kernel, alsa, modules loaded, soundcards detected, etc. No private information at all. It's a tool to allow alsa devs to get the information they need in one go, instead of having to ask the user piecemeal.

Regarding the command (in case it's PA), try "pasuspender -- aplay -v --dump-hw-params -fdat -d1 -Dhw:M2496 /dev/zero"
That made it work. Here's the output from it.

Playing raw data '/dev/zero' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
HW Params of device "hw:M2496":
--------------------
ACCESS: MMAP_INTERLEAVED RW_INTERLEAVED
FORMAT: S32_LE
SUBFORMAT: STD
SAMPLE_BITS: 32
FRAME_BITS: 320
CHANNELS: 10
RATE: [8000 96000]
PERIOD_TIME: (20 409500]
PERIOD_SIZE: [2 3276]
PERIOD_BYTES: [80 131040]
PERIODS: [1 1024]
BUFFER_TIME: (20 819125]
BUFFER_SIZE: [2 6553]
BUFFER_BYTES: [80 262120]
TICK_TIME: ALL
--------------------
aplay: set_params:1299: Sample format non available
Available formats:
- S32_LE


I think I got it to go!!! The device name to hit it with is ctl.Multi!

Eeeeeh, false alarm. Using ctl.Multi does indeed launch Jack, but only the first card is seen by REAPER.


Here's what the output of using ctl.Multi as the device name generated.

JACK server starting in realtime mode with priority 80
self-connect-mode is "Don't restrict self connect requests"
audio_reservation_init
Acquire audio card Audio0
creating alsa driver ... ctl.Multi|ctl.Multi|64|2|44100|0|0|nomon|swmeter|-|32bit
configuring for 44100Hz, period = 64 frames (1.5 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback
port created: Midi-Through:midi/playback_1
port created: Midi-Through:midi/capture_1
port created: M-Audio-Audiophile-24/96:midi/playback_1
port created: M-Audio-Audiophile-24/96:midi/capture_1
port created: M-Audio-Audiophile-24/96:midi/playback_1
port created: M-Audio-Audiophile-24/96:midi/capture_1
JackFreewheelDriver::ProcessSync: SuspendRefNum error
JackAudioDriver::ProcessGraphSync: ProcessWriteSlaves error, engine may now behave abnormally!!
JackFreewheelDriver::ProcessSync: SuspendRefNum error
JackAudioDriver::ProcessGraphSync: ProcessWriteSlaves error, engine may now behave abnormally!!
__________________
Glennbo
Hear My Music - Click Me!!!
--

Last edited by Glennbo; 08-22-2018 at 07:27 PM.
Glennbo is offline   Reply With Quote
Old 08-23-2018, 02:49 AM   #88
Jack Winter
Human being with feelings
 
Jack Winter's Avatar
 
Join Date: Aug 2007
Location: Luxembourg/Spain
Posts: 1,922
Default

It's disconcerting that the command failed to execute without using pasuspender.. I thought PA was disabled on those 2 devices. Wonder if the same problem might be what breaks the .asoundrc..

I don't have much experience with PA and have tried to avoid it for a long time. But I can't keep fighting my distro forever and have started using it. It also appears the best way to bridge audio from the desktop to JACK. I haven't seen something like this on my own system, and really thought that such problems was something left in the past.

With JACK you'd have to use -dMulti, -dMulti.ctl would be referring to the mixer associated with the device, which in this case is just a hack and probably not needed at all.

Could you please try the .asoundrc again, and give me the console output of trying to run jack, including the command that you used?

If it fails then do "fuser -v /dev/snd/*". and add that too.
__________________
Reaper for Linux Documentation (WIP). Software: Archlinux/KDE, Fabfilter FX, Komplete 8, Nebula, Schwa/Stillwell, T-racks Max/Amplitube/SVX, etc. Gear: i7-2600k/4700HQ/16GB, RME Multiface/Babyface, Behringer X32, Genelec 8040, etc. :)
Jack Winter is offline   Reply With Quote
Old 08-23-2018, 05:42 AM   #89
Jack Winter
Human being with feelings
 
Jack Winter's Avatar
 
Join Date: Aug 2007
Location: Luxembourg/Spain
Posts: 1,922
Default

Duh, it just occurred to me that to exclude PA when testing this, you could just run "pasuspender -- /usr/bin/jackd -P80 -S -dalsa -dMulti -r44100 -p64 -n2 -Xseq"
__________________
Reaper for Linux Documentation (WIP). Software: Archlinux/KDE, Fabfilter FX, Komplete 8, Nebula, Schwa/Stillwell, T-racks Max/Amplitube/SVX, etc. Gear: i7-2600k/4700HQ/16GB, RME Multiface/Babyface, Behringer X32, Genelec 8040, etc. :)
Jack Winter is offline   Reply With Quote
Old 08-23-2018, 08:18 AM   #90
Glennbo
Human being with feelings
 
Glennbo's Avatar
 
Join Date: Mar 2008
Location: Planet Earth
Posts: 9,013
Default

Quote:
Originally Posted by Jack Winter View Post
Duh, it just occurred to me that to exclude PA when testing this, you could just run "pasuspender -- /usr/bin/jackd -P80 -S -dalsa -dMulti -r44100 -p64 -n2 -Xseq"
That line produced this. It seems like it doesn't like the device name "Multi" or something. Same line with -dctl.Multi launches Jack, although REAPER only sees the first card, but the device name is accepted.

pasuspender -- /usr/bin/jackd -P80 -S -dalsa -dMulti -r44100 -p64 -n2 -Xseq
jackdmp 1.9.12
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2017 Filipe Coelho.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
no message buffer overruns
no message buffer overruns
no message buffer overruns
JACK server starting in realtime mode with priority 80
self-connect-mode is "Don't restrict self connect requests"
audio_reservation_init
Acquire audio card Audio0
creating alsa driver ... Multi|Multi|64|2|44100|0|0|nomon|swmeter|-|32bit
configuring for 44100Hz, period = 64 frames (1.5 ms), buffer = 2 periods
ALSA: no playback configurations available (Invalid argument)
ALSA: cannot configure capture channel
Released audio card Audio0
audio_reservation_finish
Cannot initialize driver
JackServer::Open failed with -1
Failed to open server


--------------------------------------------------------


Here's the other one.

fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC1: glennbo 1087 F.... pulseaudio
/dev/snd/controlC2: glennbo 1087 F.... pulseaudio
/dev/snd/pcmC1D0p: glennbo 1087 F...m pulseaudio
__________________
Glennbo
Hear My Music - Click Me!!!
--
Glennbo is offline   Reply With Quote
Old 08-23-2018, 02:03 PM   #91
Jack Winter
Human being with feelings
 
Jack Winter's Avatar
 
Join Date: Aug 2007
Location: Luxembourg/Spain
Posts: 1,922
Default

I hope I've struck gold..

Try this:
Code:
pcm.multi_capture {
	type multi
	slaves.a.pcm hw:M2496
	slaves.a.channels 12
	slaves.b.pcm hw:M2496_1
	slaves.b.channels 12

# First 8 channels of first soundcard (capture)
 	bindings.0.slave a
 	bindings.0.channel 0
 	bindings.1.slave a
 	bindings.1.channel 1
 	bindings.2.slave a
 	bindings.2.channel 2
 	bindings.3.slave a
 	bindings.3.channel 3
 	bindings.4.slave a
 	bindings.4.channel 4
 	bindings.5.slave a
 	bindings.5.channel 5
 	bindings.6.slave a
 	bindings.6.channel 6
 	bindings.7.slave a
 	bindings.7.channel 7
    
# First 8 channels of second soundcard (capture)
 	bindings.8.slave b
 	bindings.8.channel 0
 	bindings.9.slave b
 	bindings.9.channel 1
 	bindings.10.slave b
 	bindings.10.channel 2
 	bindings.11.slave b
 	bindings.11.channel 3
 	bindings.12.slave b
 	bindings.12.channel 4
 	bindings.13.slave b
 	bindings.13.channel 5
 	bindings.14.slave b
 	bindings.14.channel 6
 	bindings.15.slave b
 	bindings.15.channel 7

# S/PDIF section. Uncomment bindings if required.

# S/PDIF first soundcard (capture)
 	#bindings.16.slave a
 	#bindings.16.channel 8
 	#bindings.17.slave a
 	#bindings.17.channel 9
    
# S/PDIF second soundcard (capture)
 	#bindings.18.slave b
 	#bindings.18.channel 8
 	#bindings.19.slave b
 	#bindings.19.channel 9
}

ctl.multi_capture {
	type hw
	card M2496
}

pcm.multi_playback {
	type multi
	slaves.a.pcm hw:M2496
	slaves.a.channels 10
	slaves.b.pcm hw:M2496_1
	slaves.b.channels 10

# First 8 channels of first soundcard (playback)
 	bindings.0.slave a
 	bindings.0.channel 0
 	bindings.1.slave a
 	bindings.1.channel 1
 	bindings.2.slave a
 	bindings.2.channel 2
 	bindings.3.slave a
 	bindings.3.channel 3
 	bindings.4.slave a
 	bindings.4.channel 4
 	bindings.5.slave a
 	bindings.5.channel 5
 	bindings.6.slave a
 	bindings.6.channel 6
 	bindings.7.slave a
 	bindings.7.channel 7

# First 8 channels of second soundcard (playback)
 	bindings.8.slave b
 	bindings.8.channel 0
 	bindings.9.slave b
 	bindings.9.channel 1
 	bindings.10.slave b
 	bindings.10.channel 2
 	bindings.11.slave b
 	bindings.11.channel 3
 	bindings.12.slave b
 	bindings.12.channel 4
 	bindings.13.slave b
 	bindings.13.channel 5
 	bindings.14.slave b
 	bindings.14.channel 6
 	bindings.15.slave b
 	bindings.15.channel 7

# S/PDIF section. Uncomment bindings if required.

# S/PDIF first soundcard (playback)
 	#bindings.16.slave a
 	#bindings.16.channel 8
 	#bindings.17.slave a
 	#bindings.17.channel 9
    
# S/PDIF second soundcard (playback)
 	#bindings.18.slave b
 	#bindings.18.channel 8
 	#bindings.19.slave b
 	#bindings.19.channel 9
}

ctl.multi_playback {
	type hw
	card M2496
}
Start JACK with: /usr/bin/jackd -P80 -S -dalsa --C multi_capture -P multi_playback -r44100 -p64 -n2 -Xseq
__________________
Reaper for Linux Documentation (WIP). Software: Archlinux/KDE, Fabfilter FX, Komplete 8, Nebula, Schwa/Stillwell, T-racks Max/Amplitube/SVX, etc. Gear: i7-2600k/4700HQ/16GB, RME Multiface/Babyface, Behringer X32, Genelec 8040, etc. :)
Jack Winter is offline   Reply With Quote
Old 08-23-2018, 02:31 PM   #92
Glennbo
Human being with feelings
 
Glennbo's Avatar
 
Join Date: Mar 2008
Location: Planet Earth
Posts: 9,013
Default

Quote:
Originally Posted by Jack Winter View Post
I hope I've struck gold..

Try this:
Code:
pcm.multi_capture {
	type multi
	slaves.a.pcm hw:M2496
	slaves.a.channels 12
	slaves.b.pcm hw:M2496_1
	slaves.b.channels 12

# First 8 channels of first soundcard (capture)
 	bindings.0.slave a
 	bindings.0.channel 0
 	bindings.1.slave a
 	bindings.1.channel 1
 	bindings.2.slave a
 	bindings.2.channel 2
 	bindings.3.slave a
 	bindings.3.channel 3
 	bindings.4.slave a
 	bindings.4.channel 4
 	bindings.5.slave a
 	bindings.5.channel 5
 	bindings.6.slave a
 	bindings.6.channel 6
 	bindings.7.slave a
 	bindings.7.channel 7
    
# First 8 channels of second soundcard (capture)
 	bindings.8.slave b
 	bindings.8.channel 0
 	bindings.9.slave b
 	bindings.9.channel 1
 	bindings.10.slave b
 	bindings.10.channel 2
 	bindings.11.slave b
 	bindings.11.channel 3
 	bindings.12.slave b
 	bindings.12.channel 4
 	bindings.13.slave b
 	bindings.13.channel 5
 	bindings.14.slave b
 	bindings.14.channel 6
 	bindings.15.slave b
 	bindings.15.channel 7

# S/PDIF section. Uncomment bindings if required.

# S/PDIF first soundcard (capture)
 	#bindings.16.slave a
 	#bindings.16.channel 8
 	#bindings.17.slave a
 	#bindings.17.channel 9
    
# S/PDIF second soundcard (capture)
 	#bindings.18.slave b
 	#bindings.18.channel 8
 	#bindings.19.slave b
 	#bindings.19.channel 9
}

ctl.multi_capture {
	type hw
	card M2496
}

pcm.multi_playback {
	type multi
	slaves.a.pcm hw:M2496
	slaves.a.channels 10
	slaves.b.pcm hw:M2496_1
	slaves.b.channels 10

# First 8 channels of first soundcard (playback)
 	bindings.0.slave a
 	bindings.0.channel 0
 	bindings.1.slave a
 	bindings.1.channel 1
 	bindings.2.slave a
 	bindings.2.channel 2
 	bindings.3.slave a
 	bindings.3.channel 3
 	bindings.4.slave a
 	bindings.4.channel 4
 	bindings.5.slave a
 	bindings.5.channel 5
 	bindings.6.slave a
 	bindings.6.channel 6
 	bindings.7.slave a
 	bindings.7.channel 7

# First 8 channels of second soundcard (playback)
 	bindings.8.slave b
 	bindings.8.channel 0
 	bindings.9.slave b
 	bindings.9.channel 1
 	bindings.10.slave b
 	bindings.10.channel 2
 	bindings.11.slave b
 	bindings.11.channel 3
 	bindings.12.slave b
 	bindings.12.channel 4
 	bindings.13.slave b
 	bindings.13.channel 5
 	bindings.14.slave b
 	bindings.14.channel 6
 	bindings.15.slave b
 	bindings.15.channel 7

# S/PDIF section. Uncomment bindings if required.

# S/PDIF first soundcard (playback)
 	#bindings.16.slave a
 	#bindings.16.channel 8
 	#bindings.17.slave a
 	#bindings.17.channel 9
    
# S/PDIF second soundcard (playback)
 	#bindings.18.slave b
 	#bindings.18.channel 8
 	#bindings.19.slave b
 	#bindings.19.channel 9
}

ctl.multi_playback {
	type hw
	card M2496
}
Start JACK with: /usr/bin/jackd -P80 -S -dalsa --C multi_capture -P multi_playback -r44100 -p64 -n2 -Xseq
That one does start and honor the device name, but only the first card is seen by REAPER still. I did remove the double "--" on the C switch, as it was causing an error and I assume that was just a typo.

Don't know if this will shed any light, but this is how I have the patchbay setup that does get all four channels to REAPER using QjackCtrl.

__________________
Glennbo
Hear My Music - Click Me!!!
--

Last edited by Glennbo; 10-22-2018 at 04:14 PM.
Glennbo is offline   Reply With Quote
Old 08-23-2018, 03:02 PM   #93
Jack Winter
Human being with feelings
 
Jack Winter's Avatar
 
Join Date: Aug 2007
Location: Luxembourg/Spain
Posts: 1,922
Default

Yes typo

How does the patchbay look when you use this new .asoundrc?

Possibly you could try to patch the output of reaper playing back on port 1 to the different system playback ports to see if you can get the 2nd card to output sound? Or vice versa to see if you can capture anything from the system capture ports with a mic connected to the 2nd card.
__________________
Reaper for Linux Documentation (WIP). Software: Archlinux/KDE, Fabfilter FX, Komplete 8, Nebula, Schwa/Stillwell, T-racks Max/Amplitube/SVX, etc. Gear: i7-2600k/4700HQ/16GB, RME Multiface/Babyface, Behringer X32, Genelec 8040, etc. :)
Jack Winter is offline   Reply With Quote
Old 08-23-2018, 04:14 PM   #94
Glennbo
Human being with feelings
 
Glennbo's Avatar
 
Join Date: Mar 2008
Location: Planet Earth
Posts: 9,013
Default

Quote:
Originally Posted by Jack Winter View Post
Yes typo

How does the patchbay look when you use this new .asoundrc?

Possibly you could try to patch the output of reaper playing back on port 1 to the different system playback ports to see if you can get the 2nd card to output sound? Or vice versa to see if you can capture anything from the system capture ports with a mic connected to the 2nd card.
The .asoundrc file was present in the root of my home folder when I started up QjackCtrl, and seems to have no effect on the routing page of QjackCtrl. Should it?

Just to be sure, I renamed .asoundrc to .asoundrcXXX and compared the routing in QjackCtrl. Either way it always had the routing I setup in QjackCtrl.

The test I'm performing to see if the second card is being seen is with a REAPER project that is setup for 4 channel input with acoustic drums. I can tap on my kick drum and instantly see if the kick mic is getting through.

When I start REAPER using QjackCtrl tapping on the kick drum shows input is happening there, and some in the stereo overheads, and even a tiny bit in the snare mic.

Starting jack with,

/usr/bin/jackd -P80 -S -dalsa -C multi_capture -P multi_playback -r44100 -p64 -n2 -Xseq

shows the overheads picking up signal when I tap on the kick drum, but no signal coming from either the kick or snare mics, which are connected to the inputs of the second card.
__________________
Glennbo
Hear My Music - Click Me!!!
--
Glennbo is offline   Reply With Quote
Old 08-23-2018, 04:31 PM   #95
Jack Winter
Human being with feelings
 
Jack Winter's Avatar
 
Join Date: Aug 2007
Location: Luxembourg/Spain
Posts: 1,922
Default

Quote:
Originally Posted by Glennbo View Post
The .asoundrc file was present in the root of my home folder when I started up QjackCtrl, and seems to have no effect on the routing page of QjackCtrl. Should it?
No it should not affect the routing of M2496 and M2496_1, it just defines the new playback and capture devices. But what I'm thinking is that they might be mapped differently. That's why I suggest to use one channel and try connecting it to the the ports on the other side one after another. It's maybe a bit tedious, but easy, you just select playback or capture 1, and then on the other side you select the ports one after the other and press connect. Hopefully you'll find it somewhere.

I've read that you can change this too, but that it would introduce more overhead, thus not be desirable. But all in all it's encouraging that it starts at all!
__________________
Reaper for Linux Documentation (WIP). Software: Archlinux/KDE, Fabfilter FX, Komplete 8, Nebula, Schwa/Stillwell, T-racks Max/Amplitube/SVX, etc. Gear: i7-2600k/4700HQ/16GB, RME Multiface/Babyface, Behringer X32, Genelec 8040, etc. :)
Jack Winter is offline   Reply With Quote
Old 08-24-2018, 08:55 AM   #96
Glennbo
Human being with feelings
 
Glennbo's Avatar
 
Join Date: Mar 2008
Location: Planet Earth
Posts: 9,013
Default

Quote:
Originally Posted by Jack Winter View Post
No it should not affect the routing of M2496 and M2496_1, it just defines the new playback and capture devices. But what I'm thinking is that they might be mapped differently. That's why I suggest to use one channel and try connecting it to the the ports on the other side one after another. It's maybe a bit tedious, but easy, you just select playback or capture 1, and then on the other side you select the ports one after the other and press connect. Hopefully you'll find it somewhere.

I've read that you can change this too, but that it would introduce more overhead, thus not be desirable. But all in all it's encouraging that it starts at all!
In REAPER, I only have Jack audio selected with 4 in and 4 outputs, but have no way to select what those inputs or outputs are. If I start Jack with a command in a terminal window, then it has control over the routing/patchbay in QjackCtrl, and only has system and REAPER displayed. It has the 4 first inputs and outputs from system going to and from the first 4 inputs and outputs of REAPER. I took a break from working ON the DAW last night to try doing some work WITH it, and was able to lay down four track drums by just letting QjackCtrl launch jack and then use it's routing matrix. Worked real well, and then I fired up REAPER by itself afterward, letting it launch jack and added some more parts using Kontakt.
__________________
Glennbo
Hear My Music - Click Me!!!
--
Glennbo is offline   Reply With Quote
Old 08-24-2018, 09:29 AM   #97
Jack Winter
Human being with feelings
 
Jack Winter's Avatar
 
Join Date: Aug 2007
Location: Luxembourg/Spain
Posts: 1,922
Default

I think if you start jackd first from the command line, then start qjackctl, then you can use the connection window to disconnect and connect things as you see fit. You can see that window as a patch panel.

There are also several command line utilities if you want to script it, see jack_lsp, jack_connect, etc.

Though for this test you could add more ports in reaper and try all of them too.
__________________
Reaper for Linux Documentation (WIP). Software: Archlinux/KDE, Fabfilter FX, Komplete 8, Nebula, Schwa/Stillwell, T-racks Max/Amplitube/SVX, etc. Gear: i7-2600k/4700HQ/16GB, RME Multiface/Babyface, Behringer X32, Genelec 8040, etc. :)

Last edited by Jack Winter; 08-24-2018 at 09:35 AM.
Jack Winter is offline   Reply With Quote
Old 08-25-2018, 06:50 AM   #98
Jack Winter
Human being with feelings
 
Jack Winter's Avatar
 
Join Date: Aug 2007
Location: Luxembourg/Spain
Posts: 1,922
Default

Actually after further study I think this combined device is a bad idea

At least on Linux I think there would be an issue. The 2 cards wouldn't be initialized synchronously, so even if they sync the DACs, and the audio stream is synced, they wouldn't trigger the interrupts at the same time. This would lead to either of 2 scenarios (depending on how alsa works).

1. Card 1 has filled it's buffer and triggers the interrupt, but card 2 still hasn't filled it's buffer. This might lead to audio drop outs in the data stream from card 2.

2. ALSA waits until both cards have triggered their interrupts, this would lead to less time to process the audio before the early card has filled it's buffer and triggers the interrupt again. This means reaper would have less time to process the audio.

I found some information indicating that the above is true for your cards, I don't know if it's true for all cards, or if it's true on windows/osx too.

This might explain why you see nonsymetrical latency on windows too, say 64/128, meaning that the driver double buffers the output to work around the problem, and would also explain why the recorded audio isn't always aligned properly. Doesn't explain karbomusic's issue with a rme+adat though, so maybe I'm wrong

I've tried to make a startup script that could be used in the reaper device settings, but it's got race conditions, and without an option to run a script after JACK has started but before reaper connects to the server, it's unlikely that reaper would be able to autoconnect to all channels.

I've whipped up the following script to start it all up. If you want to start the whole enchilada up by clicking on an icon, you can do that in your OS, you can even give it the reaper icon.

Code:
#!/bin/sh
/usr/bin/jackd -S -P80 -dalsa -dhw:M2496 -r44100 -p64 -n2 -Xseq &
/usr/bin/sleep 1
/usr/bin/zita-a2j -dhw:M2496_1 &
/usr/bin/a2jmidid -e &
reaper
You'll have to make it executable by running chmod 755 start-reaper

Enjoy!
__________________
Reaper for Linux Documentation (WIP). Software: Archlinux/KDE, Fabfilter FX, Komplete 8, Nebula, Schwa/Stillwell, T-racks Max/Amplitube/SVX, etc. Gear: i7-2600k/4700HQ/16GB, RME Multiface/Babyface, Behringer X32, Genelec 8040, etc. :)
Jack Winter is offline   Reply With Quote
Old 08-25-2018, 07:33 AM   #99
Glennbo
Human being with feelings
 
Glennbo's Avatar
 
Join Date: Mar 2008
Location: Planet Earth
Posts: 9,013
Default

Quote:
Originally Posted by Jack Winter View Post
Actually after further study I think this combined device is a bad idea

At least on Linux I think there would be an issue. The 2 cards wouldn't be initialized synchronously, so even if they sync the DACs, and the audio stream is synced, they wouldn't trigger the interrupts at the same time. This would lead to either of 2 scenarios (depending on how alsa works).

1. Card 1 has filled it's buffer and triggers the interrupt, but card 2 still hasn't filled it's buffer. This might lead to audio drop outs in the data stream from card 2.

2. ALSA waits until both cards have triggered their interrupts, this would lead to less time to process the audio before the early card has filled it's buffer and triggers the interrupt again. This means reaper would have less time to process the audio.

I found some information indicating that the above is true for your cards, I don't know if it's true for all cards, or if it's true on windows/osx too.

This might explain why you see nonsymetrical latency on windows too, say 64/128, meaning that the driver double buffers the output to work around the problem, and would also explain why the recorded audio isn't always aligned properly. Doesn't explain karbomusic's issue with a rme+adat though, so maybe I'm wrong

I've tried to make a startup script that could be used in the reaper device settings, but it's got race conditions, and without an option to run a script after JACK has started but before reaper connects to the server, it's unlikely that reaper would be able to autoconnect to all channels.

I've whipped up the following script to start it all up. If you want to start the whole enchilada up by clicking on an icon, you can do that in your OS, you can even give it the reaper icon.

Code:
#!/bin/sh
/usr/bin/jackd -S -P80 -dalsa -dhw:M2496 -r44100 -p64 -n2 -Xseq &
/usr/bin/sleep 1
/usr/bin/zita-a2j -dhw:M2496_1 &
/usr/bin/a2jmidid -e &
reaper
You'll have to make it executable by running chmod 755 start-reaper

Enjoy!
Thanks again for all your help Jack!

That script is very similar to the script I setup to run from the "run script after start" in QjackCtrl. This is what I have running when I launch QjackCtrl.

a2jmidid -e &
sleep .5
zita-a2j -d hw:3 &
sleep .5
~/.local/share/reaper_linux_x86_64/REAPER/reaper &

The one big difference though is that using QjackCtrl also calls up the routing on it's patch panel that is needed to get the output from zita-a2j into REAPER's inputs 3 and 4, and I don't think that function can be called behind the scenes.
__________________
Glennbo
Hear My Music - Click Me!!!
--
Glennbo is offline   Reply With Quote
Old 08-25-2018, 07:37 AM   #100
Jack Winter
Human being with feelings
 
Jack Winter's Avatar
 
Join Date: Aug 2007
Location: Luxembourg/Spain
Posts: 1,922
Default

Quote:
Originally Posted by Glennbo View Post
The one big difference though is that using QjackCtrl also calls up the routing on it's patch panel that is needed to get the output from zita-a2j into REAPER's inputs 3 and 4, and I don't think that function can be called behind the scenes.
Are you saying that this doesn't happen with my script?

Edit: Ah I see, since I haven't seen the patch panel I didn't really think about that. I don't know how many inputs/outputs it shows.. It's kind of hard to do this remotely
__________________
Reaper for Linux Documentation (WIP). Software: Archlinux/KDE, Fabfilter FX, Komplete 8, Nebula, Schwa/Stillwell, T-racks Max/Amplitube/SVX, etc. Gear: i7-2600k/4700HQ/16GB, RME Multiface/Babyface, Behringer X32, Genelec 8040, etc. :)
Jack Winter is offline   Reply With Quote
Old 08-25-2018, 07:43 AM   #101
Jack Winter
Human being with feelings
 
Jack Winter's Avatar
 
Join Date: Aug 2007
Location: Luxembourg/Spain
Posts: 1,922
Default

I see, I found a screenshot earlier in the thread. the second card would be on input 13/14.
__________________
Reaper for Linux Documentation (WIP). Software: Archlinux/KDE, Fabfilter FX, Komplete 8, Nebula, Schwa/Stillwell, T-racks Max/Amplitube/SVX, etc. Gear: i7-2600k/4700HQ/16GB, RME Multiface/Babyface, Behringer X32, Genelec 8040, etc. :)
Jack Winter is offline   Reply With Quote
Old 08-25-2018, 08:54 AM   #102
Glennbo
Human being with feelings
 
Glennbo's Avatar
 
Join Date: Mar 2008
Location: Planet Earth
Posts: 9,013
Default

Quote:
Originally Posted by Jack Winter View Post
I see, I found a screenshot earlier in the thread. the second card would be on input 13/14.
What would be nice is if REAPER had visibility of all the things that the patch panel in QjackCtrl can see. If I could within REAPER specify what sources are connected to what inputs in REAPER, I could eliminate QjackCtrl.

That said, I have a pretty unique setup (at least I think I do) using two identical PCI cards for twice the inputs and outputs. Most folks are going to be working with single audio interfaces, and won't run into the issues I have.

Still, all it take for me to record four channel drums is to fire up QjackCtrl, which starts jack, routes the signals the way then need to be, and launches REAPER. If I'm not recording drums, which is most of the time, I can just start up REAPER and it works just fine but only 2 channel rather than 4.
__________________
Glennbo
Hear My Music - Click Me!!!
--
Glennbo is offline   Reply With Quote
Old 08-25-2018, 09:42 AM   #103
Jack Winter
Human being with feelings
 
Jack Winter's Avatar
 
Join Date: Aug 2007
Location: Luxembourg/Spain
Posts: 1,922
Default

Quote:
Originally Posted by Glennbo View Post
What would be nice is if REAPER had visibility of all the things that the patch panel in QjackCtrl can see. If I could within REAPER specify what sources are connected to what inputs in REAPER, I could eliminate QjackCtrl.
I suggested that to Justin the other day, but he didn't agree, but you could always try to make a FR But then it would have to implement some kind of patching panel to see what is added to JACK after starting other jack clients, might get messy soon. I suspect that he's right in refusing that one.

But who knows, on the long term it might make sense and he will change opinion. Let's see what the future brings

Quote:
Still, all it take for me to record four channel drums is to fire up QjackCtrl, which starts jack, routes the signals the way then need to be, and launches REAPER. If I'm not recording drums, which is most of the time, I can just start up REAPER and it works just fine but only 2 channel rather than 4.
I think if you enable 14 inputs in reaper you can use 1-2 & 13-14 to record. Don't know if there is a way to hide the useless ones from the system but I can try to find out if you are interested.

Can't you change the routing with envy24control?
__________________
Reaper for Linux Documentation (WIP). Software: Archlinux/KDE, Fabfilter FX, Komplete 8, Nebula, Schwa/Stillwell, T-racks Max/Amplitube/SVX, etc. Gear: i7-2600k/4700HQ/16GB, RME Multiface/Babyface, Behringer X32, Genelec 8040, etc. :)
Jack Winter is offline   Reply With Quote
Old 08-25-2018, 11:08 AM   #104
Glennbo
Human being with feelings
 
Glennbo's Avatar
 
Join Date: Mar 2008
Location: Planet Earth
Posts: 9,013
Default

Quote:
Originally Posted by Jack Winter View Post
I suggested that to Justin the other day, but he didn't agree, but you could always try to make a FR But then it would have to implement some kind of patching panel to see what is added to JACK after starting other jack clients, might get messy soon. I suspect that he's right in refusing that one.

But who knows, on the long term it might make sense and he will change opinion. Let's see what the future brings



I think if you enable 14 inputs in reaper you can use 1-2 & 13-14 to record. Don't know if there is a way to hide the useless ones from the system but I can try to find out if you are interested.

Can't you change the routing with envy24control?
I haven't installed the alsa-tools-gui yet. When I was trying a lot of distros out a month ago, I had it installed, but since I wasn't doing any recording with REAPER, I never put on this setup. Guess I will now and see what tricks it can do. Thanks for reminding me about that one.
__________________
Glennbo
Hear My Music - Click Me!!!
--
Glennbo is offline   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 08:43 PM.


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