Csound Csound-dev Csound-tekno Search About

[Csnd] pseudo 5.1 and ortoperspekta csd

Date2013-07-24 20:41
FromMatti Koskinen
Subject[Csnd] pseudo 5.1 and ortoperspekta csd
hi,

I got my pseudo 5.1 and ortoperspekta csd reading soundflower and outputting to my cheap 6-ch usb audio (OSX)., with cs6. Somehow my mac sometimes find this card as 6-ch, sometimes only 2-ch. I noticed, that if the card was on usb-hub, it was always 2-ch, plugging directly to mac, it usually was 6-ch. But now I've plugged and unplugged, and it's always 2-ch.  Any ideas why? I've restarted mac, and nothing.

here's the csd. The 5.1 part was found on some paper, ortoperspekta (as the inventor Tapio Köykkä wanted it to be called) gives very good audio spatialisation on orchestral and solo piano, while rock (progressive) sounds better with pseudo 5.1.
For ortoperspkta, I earlier used a very simple passive circuit, 4 resistors and a line transformer from am old modem card, worked surprisingly well. The sum is driven to one channel and the difference from the transformer to another channel and the front speakers connected in series out of phase.

the csd

<CsoundSynthesizer>
<CsOptions>
-b 30
</CsOptions>
<CsInstruments>

sr=48000
kr=4800
ksmps=10
nchnls=6
0dbfs=1

instr 1 ; simulate 5.1 from stereo
      irr = 1 ; rear right
      irl = 2 ; rear left
      ic = 3 ; center
      ilfe = 4 ; LFE
      il = 5 ; left
      ir = 6; right
; input
     al,ar inch 1,2
     asum = (al+ar)*0.707
     asurr = (al-ar)*0.707
     ac butterlp asum,4000
     acenter balance ac,asum
     ab butterlp asum,200
     alfe balance ab,asum
     adl delay asurr,0.012
     adl1 butterlp adl,7000
     adly balance adl1,adl 
     arl,arr hilbert adly
     outch irr,arr*1.6,irl,arl*1.6,ic,acenter,ilfe,alfe*1.1,il,al,ir,ar
endin

instr 2 ; ortoperspekta
      irr = 1 ; rear right
      irl = 2 ; rear left
      ic = 3 ; center
      ilfe = 4 ; LFE
      il = 5 ; left
      ir = 6; right
; input
      al,ar inch 1,2
      asum = (al+ar)*0.707
      adiffl = al-ar
      adiffr = ar-al
      ab butterlp asum,200
      alfe balance ab,asum
      ac butterhp asum,150
      acenter balance ac,asum
      outch ic,acenter,ilfe,alfe*1.1,il,adiffl,ir,adiffr
endin
</CsInstruments>
<CsScore>
i1 0 3600
i1 3600 3600
e
</CsScore>
</CsoundSynthesizer>

-matti

"Grep less", sed tee uniq tail cat




Date2013-07-24 23:17
FromJustin Smith
SubjectRe: [Csnd] pseudo 5.1 and ortoperspekta csd
Regarding why it would be 2 channel on a hub but 6 channel otherwise, there may not be enough bandwidth going through the hub for 6 channels to work. Also it will only have enough bandwidth if in a usb2 or usb3 hub. You could ensure that you are plugging the card into a USB 2 or greater port, that the port supplies enough power for the device to run all the channels, and that the device does not have a "usb1.1 mode" override that has been activated (my sound devices usbpre2 has this for example).


On Wed, Jul 24, 2013 at 12:41 PM, Matti Koskinen <mjkoskin@kolumbus.fi> wrote:
hi,

I got my pseudo 5.1 and ortoperspekta csd reading soundflower and outputting to my cheap 6-ch usb audio (OSX)., with cs6. Somehow my mac sometimes find this card as 6-ch, sometimes only 2-ch. I noticed, that if the card was on usb-hub, it was always 2-ch, plugging directly to mac, it usually was 6-ch. But now I've plugged and unplugged, and it's always 2-ch.  Any ideas why? I've restarted mac, and nothing.

here's the csd. The 5.1 part was found on some paper, ortoperspekta (as the inventor Tapio Köykkä wanted it to be called) gives very good audio spatialisation on orchestral and solo piano, while rock (progressive) sounds better with pseudo 5.1.
For ortoperspkta, I earlier used a very simple passive circuit, 4 resistors and a line transformer from am old modem card, worked surprisingly well. The sum is driven to one channel and the difference from the transformer to another channel and the front speakers connected in series out of phase.

the csd

<CsoundSynthesizer>
<CsOptions>
-b 30
</CsOptions>
<CsInstruments>

sr=48000
kr=4800
ksmps=10
nchnls=6
0dbfs=1

instr 1 ; simulate 5.1 from stereo
      irr = 1 ; rear right
      irl = 2 ; rear left
      ic = 3 ; center
      ilfe = 4 ; LFE
      il = 5 ; left
      ir = 6; right
; input
     al,ar inch 1,2
     asum = (al+ar)*0.707
     asurr = (al-ar)*0.707
     ac butterlp asum,4000
     acenter balance ac,asum
     ab butterlp asum,200
     alfe balance ab,asum
     adl delay asurr,0.012
     adl1 butterlp adl,7000
     adly balance adl1,adl 
     arl,arr hilbert adly
     outch irr,arr*1.6,irl,arl*1.6,ic,acenter,ilfe,alfe*1.1,il,al,ir,ar
endin

instr 2 ; ortoperspekta
      irr = 1 ; rear right
      irl = 2 ; rear left
      ic = 3 ; center
      ilfe = 4 ; LFE
      il = 5 ; left
      ir = 6; right
; input
      al,ar inch 1,2
      asum = (al+ar)*0.707
      adiffl = al-ar
      adiffr = ar-al
      ab butterlp asum,200
      alfe balance ab,asum
      ac butterhp asum,150
      acenter balance ac,asum
      outch ic,acenter,ilfe,alfe*1.1,il,adiffl,ir,adiffr
endin
</CsInstruments>
<CsScore>
i1 0 3600
i1 3600 3600
e
</CsScore>
</CsoundSynthesizer>

-matti

"Grep less", sed tee uniq tail cat





Date2013-07-24 23:22
Fromzappfinger
Subject[Csnd] Re: pseudo 5.1 and ortoperspekta csd
It is always recommended to connect USB audio directly to a Mac USB input,
preferably number 1, and not via a USB hub.

Richard



--
View this message in context: http://csound.1045644.n5.nabble.com/pseudo-5-1-and-ortoperspekta-csd-tp5726005p5726008.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-07-25 02:57
FromMatti Koskinen
SubjectRe: [Csnd] Re: pseudo 5.1 and ortoperspekta csd
On Jul 25, 2013, at 1:22 AM, zappfinger  wrote:

> It is always recommended to connect USB audio directly to a Mac USB input,
> preferably number 1, and not via a USB hub.
> 
> Richard
> 
> 
thanks to all. Yes, I figured the bandwidth is why it's 2-ch on hub, but now I can't get it 6-ch, no matter what port on Mac I use. The card isn't officially supported on osx, but used to work just fine.

But 3 usb-cards on a hub connected as aggregate device, seem to work fine!

Running thru csound sounds much better than using the card on Win7, where it is 6-ch, and M$ pseudo 5.1. Never even knew this, but win7 iTunes plays my collection on Mac just fine. But using csound gives much more control, I can add reverbs and adjust the volumes independently of each channel, and do all kind of tweaks. And aggregate device works ok.

-matti