Csound Csound-dev Csound-tekno Search About

How to make declicking envelope where declick is schedulaed with trigger signal

Date2016-09-02 13:59
FromAnton Kholomiov
SubjectHow to make declicking envelope where declick is schedulaed with trigger signal
I'm trying to create glitch effect that is based
on Rory's UDO trackerSplice


The trick is to synchronize mode changes with BPM
and to specify changes with probabilities. here is what I've
got if you are interested:


The arguments specify probabilites for diferent changes in trackerSplice opcode 

But there are unwonted clicks when I retrigger the segment
Is it possible to augment the Rory's UDO with declicking envelope?

I need a declicking signal that can be triggered with another signal
when mode changes.

Thanks,
Anton

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-09-02 14:41
FromKarin Daum
SubjectRe: How to make declicking envelope where declick is schedulaed with trigger signal
did you try:

xout aout * a(kVol1)

instead

xout aout * kVol1

normally when using ksmps>1 as you do you have effects like this with envelops because it’s changed at k-rate by using a(k-variable) you interpolate at a-rate

hope this helps

Karin

On 2 Sep 2016, at 14:59, Anton Kholomiov <anton.kholomiov@GMAIL.COM> wrote:

I'm trying to create glitch effect that is based
on Rory's UDO trackerSplice


The trick is to synchronize mode changes with BPM
and to specify changes with probabilities. here is what I've
got if you are interested:


The arguments specify probabilites for diferent changes in trackerSplice opcode 

But there are unwonted clicks when I retrigger the segment
Is it possible to augment the Rory's UDO with declicking envelope?

I need a declicking signal that can be triggered with another signal
when mode changes.

Thanks,
Anton

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Date2016-09-02 15:10
From"d.vyd@outlook.com"
SubjectCsound Score to VST instrument options?

Hello,


I am writing some basic music composition scripts in R. I'd like to render the resulting scores using Csound and additional tools that Csound can call. Under a separate post I recently asked for help with VST4cs. I would still like to get that working, but wanted to ask if there are any other options for rendering a Csound score (or parts of the score) using VST instruments. I have experimented with some older text file to MIDI file conversion programs such as asc2mid.exe with some success. I then load the MIDI file into a traditional DAW. I would like the option to render the score completely from the command line. I welcome your ideas.


Thank you,

d.vyd





Date2016-09-02 16:10
FromAnton Kholomiov
SubjectRe: How to make declicking envelope where declick is schedulaed with trigger signal
It's not going to work since the cause of the pops and clicks is in the trackerSplice opcode
it plays parts of the signal. It writes the signal in buffer and then replays parts of it on demand.

2016-09-02 16:41 GMT+03:00 Karin Daum <karin.daum@desy.de>:
did you try:

xout aout * a(kVol1)

instead

xout aout * kVol1

normally when using ksmps>1 as you do you have effects like this with envelops because it’s changed at k-rate by using a(k-variable) you interpolate at a-rate

hope this helps

Karin

On 2 Sep 2016, at 14:59, Anton Kholomiov <anton.kholomiov@GMAIL.COM> wrote:

I'm trying to create glitch effect that is based
on Rory's UDO trackerSplice


The trick is to synchronize mode changes with BPM
and to specify changes with probabilities. here is what I've
got if you are interested:


The arguments specify probabilites for diferent changes in trackerSplice opcode 

But there are unwonted clicks when I retrigger the segment
Is it possible to augment the Rory's UDO with declicking envelope?

I need a declicking signal that can be triggered with another signal
when mode changes.

Thanks,
Anton

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-09-02 16:41
FromTarmo Johannes
SubjectRe: Csound Score to VST instrument options?
Hi,

If you need to use Csound as VST plugin I think Cabbage is your best call - do you know about it? This is exactly what it is for -  http://cabbageaudio.com/

When you get that running, I think you don't need to have MIDI any more in between - your script can generate Csound score directly.

There is also a readscore opcode http://www.csounds.com/manual/html/readscore.html
 or scoreline opcode to evaluate the score from a string in runtime

But if you generate your score statements by script, it seems to me most useful to genrerate the event in realtime within the Csound file - you can use Csound language or if it is too clumsy you can use also python inside a csound file, see:


2016-09-02 17:10 GMT+03:00 d.vyd@outlook.com <d.vyd@outlook.com>:

Hello,


I am writing some basic music composition scripts in R. I'd like to render the resulting scores using Csound and additional tools that Csound can call. Under a separate post I recently asked for help with VST4cs. I would still like to get that working, but wanted to ask if there are any other options for rendering a Csound score (or parts of the score) using VST instruments. I have experimented with some older text file to MIDI file conversion programs such as asc2mid.exe with some success. I then load the MIDI file into a traditional DAW. I would like the option to render the score completely from the command line. I welcome your ideas.


Thank you,

d.vyd




Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-09-02 17:10
FromTarmo Johannes
SubjectRe: How to make declicking envelope where declick is schedulaed with trigger signal

 

Hi,

 

Just a guess, I did not go your code properly through -

 

can it be tha the problem is in opcode Glitch line 76

 

kVol init 1

 

so

kVol1 port kVol, 0.01

starts always from full apmplitude and if you in the middle of sample, it is a click.

 

Can you just init kvol to 0 ? I guess

 

 

if (kSkip > 1 - iSkip) then

kVol = 0

else

kVol = 1

endif

 

take care of it in performance time?

 

Or use another declick variable

 

kdeclick linseg 0, 0.02, 1

 

xout aout * kVol1 * kdeclick

 

 

If that is of any help...

 

Best!

tarmo:

 

 

 

On Friday, September 02, 2016 04:59:20 PM you wrote:

> I'm trying to create glitch effect that is based

> on Rory's UDO trackerSplice

>

> http://www.csounds.com/udo/displayOpcode.php?opcode_id=153

>

> The trick is to synchronize mode changes with BPM

> and to specify changes with probabilities. here is what I've

> got if you are interested:

>

> https://github.com/anton-k/glitch-studio/blob/master/glitch.csd

>

> The arguments specify probabilites for diferent changes in trackerSplice

> opcode

>

> But there are unwonted clicks when I retrigger the segment

> Is it possible to augment the Rory's UDO with declicking envelope?

>

> I need a declicking signal that can be triggered with another signal

> when mode changes.

>

> Thanks,

> Anton

>

> Csound mailing list

> Csound@listserv.heanet.ie

> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> Send bugs reports to

> https://github.com/csound/csound/issues

> Discussions of bugs and features can be posted here

 


Date2016-09-02 17:13
From"d.vyd@outlook.com"
SubjectRe: Csound Score to VST instrument options?

Thank you Tarmo. I am trying to find an easy way to use VST instruments within Csound. So some instruments in the orchestra might be Csound and some may be commercial plugins.


Date2016-09-02 17:24
FromTarmo Johannes
SubjectRe: Csound Score to VST instrument options?

OK;

 

sorry, I did not get you - if you need VST in Csound, it is another case.

 

Still, I think you could use an external host like Reaper, have other plugins on other track, use Csound via Cabbage and do some clever routing...

 

Bot sure if it works in your case, just guessing...

 

tarmo

 

On Friday, September 02, 2016 04:13:10 PM you wrote:

> Thank you Tarmo. I am trying to find an easy way to use VST instruments

> within Csound. So some instruments in the orchestra might be Csound and

> some may be commercial plugins.

> Csound mailing list

> Csound@listserv.heanet.ie

> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> Send bugs reports to

> https://github.com/csound/csound/issues

> Discussions of bugs and features can be posted here

 


Date2016-09-02 17:48
FromOeyvind Brandtsegg
SubjectRe: Csound Score to VST instrument options?
Yes, I would run Csound in Cabbage ,using Reaper as the VST host.
Csound then producing midi out events, and then route the midi data to
other tracks in Reaper with any VST on them. Then again your initial
question was how to do this on the command line, so this solution
probably misses the target by a bit.


2016-09-02 9:24 GMT-07:00 Tarmo Johannes :
> OK;
>
>
>
> sorry, I did not get you - if you need VST in Csound, it is another case.
>
>
>
> Still, I think you could use an external host like Reaper, have other
> plugins on other track, use Csound via Cabbage and do some clever routing...
>
>
>
> Bot sure if it works in your case, just guessing...
>
>
>
> tarmo
>
>
>
> On Friday, September 02, 2016 04:13:10 PM you wrote:
>
>> Thank you Tarmo. I am trying to find an easy way to use VST instruments
>
>> within Csound. So some instruments in the orchestra might be Csound and
>
>> some may be commercial plugins.
>
>> Csound mailing list
>
>> Csound@listserv.heanet.ie
>
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>
>> Send bugs reports to
>
>> https://github.com/csound/csound/issues
>
>> Discussions of bugs and features can be posted here
>
>
>
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here


Date2016-09-02 21:08
FromAnton Kholomiov
SubjectRe: How to make declicking envelope where declick is schedulaed with trigger signal
Hi Tarmo!

Thanks for trying to help. But the root of the problem is the trackerSplice UDO as I said on the prev message. 
The trackerSplice has the buffer where it stores the segment of the incoming signal.
Basically it's a long delay line. When the mode is neutral trackerSplice just outputs the input signal
and keeps recording it in the buffer. But we can switch it (at k-rate) to repeat mode where
it ignores the incoming signal but plays back the buffer in repeats until it's returned to the neutral mode.
Also there is a reverse repeat mode it plays back the buffer in reverse. But ofcourse when we switch from 
neutral mode to repeat (or reverse repeat) there is a sudden jump from current signal to the recorded one
and art this time happens the pop or click. I'd like to somehow to smooth the transition but
don't know how to do it properly. My code would work fine if the trackerSplice would work without clicks.

It's very cool UDO I encourage to try out the example with your own sample to see how it works.

2016-09-02 19:10 GMT+03:00 Tarmo Johannes <tarmo.johannes@otsakool.edu.ee>:

 

Hi,

 

Just a guess, I did not go your code properly through -

 

can it be tha the problem is in opcode Glitch line 76

 

kVol init 1

 

so

kVol1 port kVol, 0.01

starts always from full apmplitude and if you in the middle of sample, it is a click.

 

Can you just init kvol to 0 ? I guess

 

 

if (kSkip > 1 - iSkip) then

kVol = 0

else

kVol = 1

endif

 

take care of it in performance time?

 

Or use another declick variable

 

kdeclick linseg 0, 0.02, 1

 

xout aout * kVol1 * kdeclick

 

 

If that is of any help...

 

Best!

tarmo:

 

 

 

On Friday, September 02, 2016 04:59:20 PM you wrote:

> I'm trying to create glitch effect that is based

> on Rory's UDO trackerSplice

>

> http://www.csounds.com/udo/displayOpcode.php?opcode_id=153

>

> The trick is to synchronize mode changes with BPM

> and to specify changes with probabilities. here is what I've

> got if you are interested:

>

> https://github.com/anton-k/glitch-studio/blob/master/glitch.csd

>

> The arguments specify probabilites for diferent changes in trackerSplice

> opcode

>

> But there are unwonted clicks when I retrigger the segment

> Is it possible to augment the Rory's UDO with declicking envelope?

>

> I need a declicking signal that can be triggered with another signal

> when mode changes.

>

> Thanks,

> Anton

>

> Csound mailing list

> Csound@listserv.heanet.ie

> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> Send bugs reports to

> https://github.com/csound/csound/issues

> Discussions of bugs and features can be posted here

 

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-09-02 21:26
FromVictor Lazzarini
SubjectRe: How to make declicking envelope where declick is schedulaed with trigger signal
did you try crossfading?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 2 Sep 2016, at 21:08, Anton Kholomiov <anton.kholomiov@GMAIL.COM> wrote:

Hi Tarmo!

Thanks for trying to help. But the root of the problem is the trackerSplice UDO as I said on the prev message. 
The trackerSplice has the buffer where it stores the segment of the incoming signal.
Basically it's a long delay line. When the mode is neutral trackerSplice just outputs the input signal
and keeps recording it in the buffer. But we can switch it (at k-rate) to repeat mode where
it ignores the incoming signal but plays back the buffer in repeats until it's returned to the neutral mode.
Also there is a reverse repeat mode it plays back the buffer in reverse. But ofcourse when we switch from 
neutral mode to repeat (or reverse repeat) there is a sudden jump from current signal to the recorded one
and art this time happens the pop or click. I'd like to somehow to smooth the transition but
don't know how to do it properly. My code would work fine if the trackerSplice would work without clicks.

It's very cool UDO I encourage to try out the example with your own sample to see how it works.

2016-09-02 19:10 GMT+03:00 Tarmo Johannes <tarmo.johannes@otsakool.edu.ee>:

 

Hi,

 

Just a guess, I did not go your code properly through -

 

can it be tha the problem is in opcode Glitch line 76

 

kVol init 1

 

so

kVol1 port kVol, 0.01

starts always from full apmplitude and if you in the middle of sample, it is a click.

 

Can you just init kvol to 0 ? I guess

 

 

if (kSkip > 1 - iSkip) then

kVol = 0

else

kVol = 1

endif

 

take care of it in performance time?

 

Or use another declick variable

 

kdeclick linseg 0, 0.02, 1

 

xout aout * kVol1 * kdeclick

 

 

If that is of any help...

 

Best!

tarmo:

 

 

 

On Friday, September 02, 2016 04:59:20 PM you wrote:

> I'm trying to create glitch effect that is based

> on Rory's UDO trackerSplice

>

> http://www.csounds.com/udo/displayOpcode.php?opcode_id=153

>

> The trick is to synchronize mode changes with BPM

> and to specify changes with probabilities. here is what I've

> got if you are interested:

>

> https://github.com/anton-k/glitch-studio/blob/master/glitch.csd

>

> The arguments specify probabilites for diferent changes in trackerSplice

> opcode

>

> But there are unwonted clicks when I retrigger the segment

> Is it possible to augment the Rory's UDO with declicking envelope?

>

> I need a declicking signal that can be triggered with another signal

> when mode changes.

>

> Thanks,

> Anton

>

> Csound mailing list

> Csound@listserv.heanet.ie

> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> Send bugs reports to

> https://github.com/csound/csound/issues

> Discussions of bugs and features can be posted here

 

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-09-03 19:44
FromAnton Kholomiov
SubjectRe: How to make declicking envelope where declick is schedulaed with trigger signal
Thanks for the input Victor, I'm not sure how to implement xfade in my case..

2016-09-02 23:26 GMT+03:00 Victor Lazzarini <Victor.Lazzarini@nuim.ie>:
did you try crossfading?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 2 Sep 2016, at 21:08, Anton Kholomiov <anton.kholomiov@GMAIL.COM> wrote:

Hi Tarmo!

Thanks for trying to help. But the root of the problem is the trackerSplice UDO as I said on the prev message. 
The trackerSplice has the buffer where it stores the segment of the incoming signal.
Basically it's a long delay line. When the mode is neutral trackerSplice just outputs the input signal
and keeps recording it in the buffer. But we can switch it (at k-rate) to repeat mode where
it ignores the incoming signal but plays back the buffer in repeats until it's returned to the neutral mode.
Also there is a reverse repeat mode it plays back the buffer in reverse. But ofcourse when we switch from 
neutral mode to repeat (or reverse repeat) there is a sudden jump from current signal to the recorded one
and art this time happens the pop or click. I'd like to somehow to smooth the transition but
don't know how to do it properly. My code would work fine if the trackerSplice would work without clicks.

It's very cool UDO I encourage to try out the example with your own sample to see how it works.

2016-09-02 19:10 GMT+03:00 Tarmo Johannes <tarmo.johannes@otsakool.edu.ee>:

 

Hi,

 

Just a guess, I did not go your code properly through -

 

can it be tha the problem is in opcode Glitch line 76

 

kVol init 1

 

so

kVol1 port kVol, 0.01

starts always from full apmplitude and if you in the middle of sample, it is a click.

 

Can you just init kvol to 0 ? I guess

 

 

if (kSkip > 1 - iSkip) then

kVol = 0

else

kVol = 1

endif

 

take care of it in performance time?

 

Or use another declick variable

 

kdeclick linseg 0, 0.02, 1

 

xout aout * kVol1 * kdeclick

 

 

If that is of any help...

 

Best!

tarmo:

 

 

 

On Friday, September 02, 2016 04:59:20 PM you wrote:

> I'm trying to create glitch effect that is based

> on Rory's UDO trackerSplice

>

> http://www.csounds.com/udo/displayOpcode.php?opcode_id=153

>

> The trick is to synchronize mode changes with BPM

> and to specify changes with probabilities. here is what I've

> got if you are interested:

>

> https://github.com/anton-k/glitch-studio/blob/master/glitch.csd

>

> The arguments specify probabilites for diferent changes in trackerSplice

> opcode

>

> But there are unwonted clicks when I retrigger the segment

> Is it possible to augment the Rory's UDO with declicking envelope?

>

> I need a declicking signal that can be triggered with another signal

> when mode changes.

>

> Thanks,

> Anton

>

> Csound mailing list

> Csound@listserv.heanet.ie

> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> Send bugs reports to

> https://github.com/csound/csound/issues

> Discussions of bugs and features can be posted here

 

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-09-03 19:55
FromVictor Lazzarini
SubjectRe: How to make declicking envelope where declick is schedulaed with trigger signal
you can do it with port, something like this

kval init 0

if kxfd = 1 then
 kval = ¬ kval
 kxfd = 0
endif

kx port  kval, 0.1
ka1 = kx
ka2= 1 - kx

ka1 and ka2 are the xfade scalers. Once the value of kval goes from 0 to 1 or 1 to 0, the xfade happens. You can decide on the xfade time by changing the lag time from 0.1 to something else.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 3 Sep 2016, at 19:44, Anton Kholomiov <anton.kholomiov@GMAIL.COM> wrote:

Thanks for the input Victor, I'm not sure how to implement xfade in my case..

2016-09-02 23:26 GMT+03:00 Victor Lazzarini <Victor.Lazzarini@nuim.ie>:
did you try crossfading?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 2 Sep 2016, at 21:08, Anton Kholomiov <anton.kholomiov@GMAIL.COM> wrote:

Hi Tarmo!

Thanks for trying to help. But the root of the problem is the trackerSplice UDO as I said on the prev message. 
The trackerSplice has the buffer where it stores the segment of the incoming signal.
Basically it's a long delay line. When the mode is neutral trackerSplice just outputs the input signal
and keeps recording it in the buffer. But we can switch it (at k-rate) to repeat mode where
it ignores the incoming signal but plays back the buffer in repeats until it's returned to the neutral mode.
Also there is a reverse repeat mode it plays back the buffer in reverse. But ofcourse when we switch from 
neutral mode to repeat (or reverse repeat) there is a sudden jump from current signal to the recorded one
and art this time happens the pop or click. I'd like to somehow to smooth the transition but
don't know how to do it properly. My code would work fine if the trackerSplice would work without clicks.

It's very cool UDO I encourage to try out the example with your own sample to see how it works.

2016-09-02 19:10 GMT+03:00 Tarmo Johannes <tarmo.johannes@otsakool.edu.ee>:

 

Hi,

 

Just a guess, I did not go your code properly through -

 

can it be tha the problem is in opcode Glitch line 76

 

kVol init 1

 

so

kVol1 port kVol, 0.01

starts always from full apmplitude and if you in the middle of sample, it is a click.

 

Can you just init kvol to 0 ? I guess

 

 

if (kSkip > 1 - iSkip) then

kVol = 0

else

kVol = 1

endif

 

take care of it in performance time?

 

Or use another declick variable

 

kdeclick linseg 0, 0.02, 1

 

xout aout * kVol1 * kdeclick

 

 

If that is of any help...

 

Best!

tarmo:

 

 

 

On Friday, September 02, 2016 04:59:20 PM you wrote:

> I'm trying to create glitch effect that is based

> on Rory's UDO trackerSplice

>

> http://www.csounds.com/udo/displayOpcode.php?opcode_id=153

>

> The trick is to synchronize mode changes with BPM

> and to specify changes with probabilities. here is what I've

> got if you are interested:

>

> https://github.com/anton-k/glitch-studio/blob/master/glitch.csd

>

> The arguments specify probabilites for diferent changes in trackerSplice

> opcode

>

> But there are unwonted clicks when I retrigger the segment

> Is it possible to augment the Rory's UDO with declicking envelope?

>

> I need a declicking signal that can be triggered with another signal

> when mode changes.

>

> Thanks,

> Anton

>

> Csound mailing list

> Csound@listserv.heanet.ie

> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> Send bugs reports to

> https://github.com/csound/csound/issues

> Discussions of bugs and features can be posted here

 

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-09-03 20:10
FromAnton Kholomiov
SubjectRe: How to make declicking envelope where declick is schedulaed with trigger signal
Interesting trick. This way I can create the xfade pair of envelopes that are based on some trigger (it fires when I want to switch the playback mode 
that is when I start to use buffer playback in place of original signal) But I have only one signal from the trackerSplice right now.
How is it possible to split it in two signals suitable for crossfade. One is the direct signal and another one is the signal of buffer playback.
But right now they are combined into single signal the transition happens immediately. Maybe I should have one signal
which is direct playback and another one which is playback from buffer and xfade between them. Need to think it over how to properly
encode it..

2016-09-03 21:55 GMT+03:00 Victor Lazzarini <Victor.Lazzarini@nuim.ie>:
you can do it with port, something like this

kval init 0

if kxfd = 1 then
 kval = ¬ kval
 kxfd = 0
endif

kx port  kval, 0.1
ka1 = kx
ka2= 1 - kx

ka1 and ka2 are the xfade scalers. Once the value of kval goes from 0 to 1 or 1 to 0, the xfade happens. You can decide on the xfade time by changing the lag time from 0.1 to something else.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 3 Sep 2016, at 19:44, Anton Kholomiov <anton.kholomiov@GMAIL.COM> wrote:

Thanks for the input Victor, I'm not sure how to implement xfade in my case..

2016-09-02 23:26 GMT+03:00 Victor Lazzarini <Victor.Lazzarini@nuim.ie>:
did you try crossfading?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 2 Sep 2016, at 21:08, Anton Kholomiov <anton.kholomiov@GMAIL.COM> wrote:

Hi Tarmo!

Thanks for trying to help. But the root of the problem is the trackerSplice UDO as I said on the prev message. 
The trackerSplice has the buffer where it stores the segment of the incoming signal.
Basically it's a long delay line. When the mode is neutral trackerSplice just outputs the input signal
and keeps recording it in the buffer. But we can switch it (at k-rate) to repeat mode where
it ignores the incoming signal but plays back the buffer in repeats until it's returned to the neutral mode.
Also there is a reverse repeat mode it plays back the buffer in reverse. But ofcourse when we switch from 
neutral mode to repeat (or reverse repeat) there is a sudden jump from current signal to the recorded one
and art this time happens the pop or click. I'd like to somehow to smooth the transition but
don't know how to do it properly. My code would work fine if the trackerSplice would work without clicks.

It's very cool UDO I encourage to try out the example with your own sample to see how it works.

2016-09-02 19:10 GMT+03:00 Tarmo Johannes <tarmo.johannes@otsakool.edu.ee>:

 

Hi,

 

Just a guess, I did not go your code properly through -

 

can it be tha the problem is in opcode Glitch line 76

 

kVol init 1

 

so

kVol1 port kVol, 0.01

starts always from full apmplitude and if you in the middle of sample, it is a click.

 

Can you just init kvol to 0 ? I guess

 

 

if (kSkip > 1 - iSkip) then

kVol = 0

else

kVol = 1

endif

 

take care of it in performance time?

 

Or use another declick variable

 

kdeclick linseg 0, 0.02, 1

 

xout aout * kVol1 * kdeclick

 

 

If that is of any help...

 

Best!

tarmo:

 

 

 

On Friday, September 02, 2016 04:59:20 PM you wrote:

> I'm trying to create glitch effect that is based

> on Rory's UDO trackerSplice

>

> http://www.csounds.com/udo/displayOpcode.php?opcode_id=153

>

> The trick is to synchronize mode changes with BPM

> and to specify changes with probabilities. here is what I've

> got if you are interested:

>

> https://github.com/anton-k/glitch-studio/blob/master/glitch.csd

>

> The arguments specify probabilites for diferent changes in trackerSplice

> opcode

>

> But there are unwonted clicks when I retrigger the segment

> Is it possible to augment the Rory's UDO with declicking envelope?

>

> I need a declicking signal that can be triggered with another signal

> when mode changes.

>

> Thanks,

> Anton

>

> Csound mailing list

> Csound@listserv.heanet.ie

> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> Send bugs reports to

> https://github.com/csound/csound/issues

> Discussions of bugs and features can be posted here

 

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here