dagargo / overwitch

JACK client for Overbridge devices
GNU General Public License v3.0
120 stars 14 forks source link

Multiple WAVS? #54

Closed briwil closed 4 months ago

briwil commented 5 months ago

I'm probably doing this wrong, but am I misunderstanding the purpose of this implementation of Overbridge? I installed this on my raspberry pi, I run the record command, and no matter how many tracks I have enabled, all I end up with is just one .wav file with the tracks mixed... isn't the huge benefit of overbridge that you can record each track on its own track (aka stems)? Am I doing something wrong here?

dagargo commented 5 months ago

The output is a single WAV file but it contains as many audio channels as the Overbridge devices has.

Have you tried opening the output file into Audacity? I can see the all the channels there.

Could you post thew output of the sox --i command as in here? As you can see, the file has 12 channels.

$ overwitch-record -l
0: Digitakt (ID 1935:000c) at bus 003, address 076

$ overwitch-record -n 0
^C446880 frames written
Digitakt_2024-02-06T19:45:52.wav file created

$ sox --i Digitakt_2024-02-06T19\:45\:52.wav 
sox WARN wav: wave header missing extended part of fmt chunk

Input File     : 'Digitakt_2024-02-06T19:45:52.wav'
Channels       : 12
Sample Rate    : 48000
Precision      : 25-bit
Duration       : 00:00:09.31 = 446880 samples ~ 698.25 CDDA sectors
File Size      : 21.5M
Bit Rate       : 18.4M
Sample Encoding: 32-bit Floating Point PCM

It this still not working for you?

briwil commented 5 months ago

I knew I was just being ignorant. Yes, I see this now, all the tracks are in there... I didn't even know such a thing was possible. Now I just need to figure out how to use this file in Logic or Ableton.

dagargo commented 5 months ago

You can split the multichannel output file into different mono files with this.

$ sox multitrack.wav track1.wav remix 1

Or use it in a loop like this for a faster approach. We're skipping the first 2 tracks (stereo master) and the input tracks (11 and 12).

$ for t in $(seq 3 10); do sox multitrack.wav track-$t.wav remix $t; done
dagargo commented 5 months ago

Also, this section explains you how to only record the desired tracks into the multitrack file.

This will only record the 8 individual tracks and leave the master and the inputs out.

$ overwitch-record -n 0 -m 001111111100
briwil commented 5 months ago

Yes, that part I knew, the multichannel file was what was beyond my understanding. Thanks so much for clarifying!