node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org ยป

deriveur

Geolocalised audio mixing

npm i

Depends on sono audio library. Have sono loaded on the window

let _deriveur = new Dervieur(layerData, locationData, controlOptions


layerData

like this

Reads assets from this:

"path": "../www-assets/tour/loc0/speaking/Cecile01_sleep_water_air.mp3",

Basically buckets of sound broken into layers:

speaking,music,effects

Folder structure

locationData

Lat/Lng coordinates for the geolocation to read from.

like this

controlOptions

`{ noVisualMap: true, noGeo: false, mapUpdateSpeed: 3500, filterOnlyAudioFormats: 'mp3', //Detector.IS_IOS ? 'mp3' : 'ogg', assetsUrl: REMOTE_ASSETS_DIR }

REMOTE_ASSETS_DIR is expecting https://storage.googleapis.com/samrad-alhambra/www-assets/