Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER for Spatial Audio

Reply
 
Thread Tools Display Modes
Old 09-04-2018, 01:43 AM   #1
bommaren
Human being with feelings
 
Join Date: Nov 2008
Location: Stockholm Sweden
Posts: 23
Default Request - How to create omnitone splitted Ambisonic files

I/We have created a BLE headtracker (HW, Firmware and SW interface) to use with omnitone:

https://github.com/bossesand/OHTI

As browsers appearently cannot read more than 8 channel audio files.

I need assistance to find a simple way to automate a split of Second order or Third order ambix files into 2 files, named like this if the original example file is a 16 or 9 channel file

var exampleSoundPathList = [
'resources/3oa_example_ch0-ch7.wav',
'resources/3oa_example_ch8-ch15.wav'

var exampleSoundPathList = [
'resources/3oa_example_ch0-ch7.wav',
'resources/3oa_example_ch8-ch9.wav'

The files can be wav, Opus/ogg or WebM.

Best Regards
Bo-Erik
bommaren is offline   Reply With Quote
Old 09-04-2018, 04:48 AM   #2
RDan
Human being with feelings
 
Join Date: Jul 2017
Posts: 24
Default

You can automate a file/channel splitting quite easily. You only have to choose a program / platform / product.
There are some which come to mind:

- Matlab (easiest to implement, but proprietary...)
- Python (easy to implement, free, multi-platform, executable possible)
- JUCE (not so easy for beginners, multi-platform, executable possible, GUI (drag&drop) / command line tool / ..., other handy features like resampling already exist).

Btw: looking forward to your project! I am one of the developer of the MrHeadTracker project (https://git.iem.at/DIY/MrHeadTracker) and I am currently thinking about doing some kind of redesign (especially getting rid of the Serial2USB adapter by using the MIDIUSB library and a suitable MCU)!
RDan is offline   Reply With Quote
Old 09-04-2018, 06:00 PM   #3
junh1024
Human being with feelings
 
Join Date: Feb 2014
Posts: 240
Default

I would suggest SoX instead (free)
junh1024 is offline   Reply With Quote
Old 09-10-2018, 03:43 AM   #4
bommaren
Human being with feelings
 
Join Date: Nov 2008
Location: Stockholm Sweden
Posts: 23
Default

Quote:
Originally Posted by junh1024 View Post
I would suggest SoX instead (free)
Sadly SOX do not support Opus, And I want that.
I found one free linux tool that stated it can split opus, but beeing as old as I am I have now forgotten what it was...

But will look for it again.

I manually I can do Reaper / consolidate - export Tracks in to Opus.
That is by selecting the tracks I want in one file and export it.

If I Render a 8 track opus or Vorbis file I get lowpass filtering of the 8th track :-)

Bo-Erik
bommaren is offline   Reply With Quote
Old 09-10-2018, 03:53 PM   #5
junh1024
Human being with feelings
 
Join Date: Feb 2014
Posts: 240
Default

Quote:
Originally Posted by bommaren View Post
Sadly SOX do not support Opus, And I want that.
I found one free linux tool that stated it can split opus, but beeing as old as I am I have now forgotten what it was...

But will look for it again.
You mean FFMPEG/libav?


Quote:
I manually I can do Reaper / consolidate - export Tracks in to Opus.
That is by selecting the tracks I want in one file and export it.

If I Render a 8 track opus or Vorbis file I get lowpass filtering of the 8th track :-)

Bo-Erik
This is an inevitability for ogg as they imply 7.1. They may also do re ordering. For browser VR, 7ch is usable, so I would suggest W XYZ R UV (1.6oA)

Last edited by junh1024; 09-10-2018 at 04:43 PM.
junh1024 is offline   Reply With Quote
Old 09-11-2018, 07:29 AM   #6
olilarkin
Human being with feelings
 
Join Date: Apr 2009
Location: Berlin, Germany
Posts: 1,248
Default

I think this would work for the 3rd order version (untested) using sox and opusenc

Code:
sox 3oa_example.wav 3oa_example_ch0-ch7.wav remix 1 2 3 4 5 6 7 8
sox 3oa_example.wav 3oa_example_ch8-ch15.wav remix 9 10 11 12 13 14 15 16
opusenc 3oa_example_ch0-ch7.wav 3oa_example_ch0-ch7.ogg
opusenc 3oa_example_ch8-ch15.wav 3oa_example_ch8-ch15.ogg
if you are on mac, "brew install opus sox" with homebrew
__________________
VirtualCZ | Endless Series | iPlug2 | Linkedin | Facebook
olilarkin is offline   Reply With Quote
Old 09-23-2018, 08:39 AM   #7
bommaren
Human being with feelings
 
Join Date: Nov 2008
Location: Stockholm Sweden
Posts: 23
Default

Than you for your efforts to answer my question.

I have now in this late stage found out that this is no more an issue if the correct way to open the files are used.

In JavaScript this is to use audioElement as the method to choose files to play.

With audioElement I have been able to read and decode ambisonic 4, 9 and 16 channel OPUS files in Chrome to binaural.

So the need do not longer exist for me :-).

bo-Erik Sandholm
Stockholm
bommaren 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 02:06 PM.


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