Replies: 1 comment
-
Had time to think this through. It seems to be working. If there are any better ways to do this I'd be glad to hear. comrex_harbor = harbor source
#flipping the phase 180 degrees
def flipper(comrex_harbor) =
amplify(-1., comrex_harbor)
end
comrex_harbor_flipped = flipper(comrex_harbor)
#applying equal delay and no phase alteration
def flipper2(comrex_harbor) =
amplify(1., comrex_harbor)
end
comrex_harbor = flipper2(comrex_harbor)
#summing 0- and 180-phase
comrex_silence = add([comrex_harbor, comrex_harbor_flipped])
#switch that has the above 'silent track' so that songs won't play
radio_1 =
fallback(track_sensitive=true,
[ comrex_silence, butt_harbor, news_jingle_in, news_switch, news_jingle_out, music_switch, fallback_source
]
)
return = radio_1
radio = fallback(track_sensitive=true, [comrex_harbor, radio_1]) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm having a hard time getting a n-1 (mix minus) to work. I haven't had much luck with the documentation, because either I'm not using the correct term to look it up or it just isn't there.
This is the scenario: a live unit connects to a harbor input. They're also monitoring the return sound which should be (mainOut - phase flipped live unit). The live unit needs to be able to get the return audio because they'll need to be able to start their show as soon as the previous show ends. There will also be at some point two live units that'll need to be able to talk with each other while going live, but this should work as soon as I get one n-1 working.
What I'm thinking is that the phase flipping adds a processing delay to the audio resulting in a non-optimal phase cancellation. However when applying the same processing to the source that goes straight to 'radio' but setting the multiplication factor to 1, I'm still getting comb filtering. I've also tested this so that there's no sample multiplication going on, and I can confirm that there's no comb filtering. This makes me assume that the flipper is doing something, but at this point I'm not sure what's it doing anymore. I could maybe try to hook up an oscilloscope and see whether it's flipped or not but I think because of the latency it requires some magical elements that I currently do not possess.
Please see the (clipped) code below:
Beta Was this translation helpful? Give feedback.
All reactions