Skip to content

Easy to use binaural stereo decoders for High Order Ambisonics in SuperCollider

License

Notifications You must be signed in to change notification settings

madskjeldgaard/binauraldecoders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BinauralDecoders

This repository contains easy to use binaural stereo decoders for high order ambisonics using the ambisonic toolkit for SuperCollider that are automatically set up as persistent main effects on the main outputs of SuperCollider. They are respawned when the user hard stops the sound.

This quark depends on the ambisonic toolkit and requires a full installation of it. See these instructions for more information.

It also depends on persistentmainfx which is installed automatically by the quark system.

If you want to use the IEM based binaural decoder, you need the vstplugin extension and the IEM Plugins.

Installation

Open up SuperCollider and evaluate the following line of code: Quarks.install("https://github.com/madskjeldgaard/binauraldecoders")

Example usage

// Setup decoder
(
~order = ~order ? 3;
BinauralDecoderCIPIC.new(hoaOrder: ~order);
)

// Inspect the node tree to see that it is in fact in action:
s.plotTree

// Play some high order ambisonics sound
(
// White Noise going round
Ndef(\hoa_testorientation, {|amp=0.125, freq=100, rotFreq=1, ele=0|
	// var sig = LFTri.ar(freq)*amp;
	var sig = WhiteNoise.ar(amp);
	var azi = LFSaw.kr(rotFreq, mul: pi);

	sig = HoaEncodeDirection.ar(
		sig,
		azi,
		ele,
		AtkHoa.refRadius,
		~order
	);

}).play
)

// Bypass the decoder to output raw ambisonics
BinauralDecoderCIPIC.set(\bypass, 1);

About

Easy to use binaural stereo decoders for High Order Ambisonics in SuperCollider

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published