[Csnd-dev] Mixer Opcodes

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[Csnd-dev] Mixer Opcodes

Pierpaolo De Nicolo
Hi guys...
I am scripting a musical piece using the CSound language for my uni thesis...
I am synthesising the whole sound... using very different instruments, some of them are noise based, some of them are wave based (this is probably my main problem as the amplitudes of those different instruments are controlled in a very different way).

Anyway I d like to build an extra control stage....routing all signals coming out of the instruments into a mixer instrument.

Also I want to keep the mixer sends of each instrument Sereo on each event in order to get an automation kind a of control.
So each instrument has 2 mixersends and 2 mixersetlevel that are going to separate mixer instruments (R and L) and then finally I mix the signals of the L and R mixer into a master mixer instrument.

Before I did that I really tried many different kind of implementations, but this looks to me as the best (even if is not good enough).

With every kind of implementation the program crushes as soon as I playback (looks like overloaded.

Is there anybody who can help me with the MIXER OPCODE theory and maybe who can help me with these issues

Thanks for your attention

Kind Regards

Pierpaolo De Nicolo
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd-dev] Mixer Opcodes

rorywalsh
I'm not familiar with these opcodes, but I do what you describe using chnset and chnget opcodes and have never had any problems. 

On Thu, 4 Apr 2019 at 14:17, Pierpaolo De Nicolo <[hidden email]> wrote:
Hi guys...
I am scripting a musical piece using the CSound language for my uni thesis...
I am synthesising the whole sound... using very different instruments, some of them are noise based, some of them are wave based (this is probably my main problem as the amplitudes of those different instruments are controlled in a very different way).

Anyway I d like to build an extra control stage....routing all signals coming out of the instruments into a mixer instrument.

Also I want to keep the mixer sends of each instrument Sereo on each event in order to get an automation kind a of control.
So each instrument has 2 mixersends and 2 mixersetlevel that are going to separate mixer instruments (R and L) and then finally I mix the signals of the L and R mixer into a master mixer instrument.

Before I did that I really tried many different kind of implementations, but this looks to me as the best (even if is not good enough).

With every kind of implementation the program crushes as soon as I playback (looks like overloaded.

Is there anybody who can help me with the MIXER OPCODE theory and maybe who can help me with these issues

Thanks for your attention

Kind Regards

Pierpaolo De Nicolo
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd-dev] Mixer Opcodes

Pierpaolo De Nicolo
I ll do it trying to use those opcodes and get back to you... To see if it works for me...

Thank you very much!!!


From: Csound-developers <[hidden email]> on behalf of Rory Walsh <[hidden email]>
Sent: Thursday, April 4, 2019 2:50:19 PM
To: [hidden email]
Subject: Re: [Csnd-dev] Mixer Opcodes
 
I'm not familiar with these opcodes, but I do what you describe using chnset and chnget opcodes and have never had any problems. 

On Thu, 4 Apr 2019 at 14:17, Pierpaolo De Nicolo <[hidden email]> wrote:
Hi guys...
I am scripting a musical piece using the CSound language for my uni thesis...
I am synthesising the whole sound... using very different instruments, some of them are noise based, some of them are wave based (this is probably my main problem as the amplitudes of those different instruments are controlled in a very different way).

Anyway I d like to build an extra control stage....routing all signals coming out of the instruments into a mixer instrument.

Also I want to keep the mixer sends of each instrument Sereo on each event in order to get an automation kind a of control.
So each instrument has 2 mixersends and 2 mixersetlevel that are going to separate mixer instruments (R and L) and then finally I mix the signals of the L and R mixer into a master mixer instrument.

Before I did that I really tried many different kind of implementations, but this looks to me as the best (even if is not good enough).

With every kind of implementation the program crushes as soon as I playback (looks like overloaded.

Is there anybody who can help me with the MIXER OPCODE theory and maybe who can help me with these issues

Thanks for your attention

Kind Regards

Pierpaolo De Nicolo
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd-dev] Mixer Opcodes

Steven Yi
I use a global audio array and some opcodes in my livecode setup:


that works fairly well.  Each bus channel is a stereo pair, levels are applied prior to mixing into the channels.  Not sure if the code here may be used directly but could be useful as a starting point. 

You can see how they get used in these two live coding videos:


 

On Thu, Apr 4, 2019 at 10:03 AM Pierpaolo De Nicolò <[hidden email]> wrote:
I ll do it trying to use those opcodes and get back to you... To see if it works for me...

Thank you very much!!!


From: Csound-developers <[hidden email]> on behalf of Rory Walsh <[hidden email]>
Sent: Thursday, April 4, 2019 2:50:19 PM
To: [hidden email]
Subject: Re: [Csnd-dev] Mixer Opcodes
 
I'm not familiar with these opcodes, but I do what you describe using chnset and chnget opcodes and have never had any problems. 

On Thu, 4 Apr 2019 at 14:17, Pierpaolo De Nicolo <[hidden email]> wrote:
Hi guys...
I am scripting a musical piece using the CSound language for my uni thesis...
I am synthesising the whole sound... using very different instruments, some of them are noise based, some of them are wave based (this is probably my main problem as the amplitudes of those different instruments are controlled in a very different way).

Anyway I d like to build an extra control stage....routing all signals coming out of the instruments into a mixer instrument.

Also I want to keep the mixer sends of each instrument Sereo on each event in order to get an automation kind a of control.
So each instrument has 2 mixersends and 2 mixersetlevel that are going to separate mixer instruments (R and L) and then finally I mix the signals of the L and R mixer into a master mixer instrument.

Before I did that I really tried many different kind of implementations, but this looks to me as the best (even if is not good enough).

With every kind of implementation the program crushes as soon as I playback (looks like overloaded.

Is there anybody who can help me with the MIXER OPCODE theory and maybe who can help me with these issues

Thanks for your attention

Kind Regards

Pierpaolo De Nicolo
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd-dev] Mixer Opcodes

Tarmo Johannes-3
Hi,

I personally use just global audio variables for something like this,

but maybe opcode
is what you need.

There are aslo signal flow graph opcodes that is the most flexible and versatile  solution to connect signals in various ways:

tarmo

On neljapäev, 4. aprill, 2019 - 18:34, Steven Yi <[hidden email]> wrote:
I use a global audio array and some opcodes in my livecode setup:


that works fairly well.  Each bus channel is a stereo pair, levels are applied prior to mixing into the channels.  Not sure if the code here may be used directly but could be useful as a starting point. 

You can see how they get used in these two live coding videos:


 

On Thu, Apr 4, 2019 at 10:03 AM Pierpaolo De Nicolò <[hidden email]> wrote:
I ll do it trying to use those opcodes and get back to you... To see if it works for me...

Thank you very much!!!


From: Csound-developers <[hidden email]> on behalf of Rory Walsh <[hidden email]>
Sent: Thursday, April 4, 2019 2:50:19 PM
To: [hidden email]
Subject: Re: [Csnd-dev] Mixer Opcodes
 
I'm not familiar with these opcodes, but I do what you describe using chnset and chnget opcodes and have never had any problems. 

On Thu, 4 Apr 2019 at 14:17, Pierpaolo De Nicolo <[hidden email]> wrote:
Hi guys...
I am scripting a musical piece using the CSound language for my uni thesis...
I am synthesising the whole sound... using very different instruments, some of them are noise based, some of them are wave based (this is probably my main problem as the amplitudes of those different instruments are controlled in a very different way).

Anyway I d like to build an extra control stage....routing all signals coming out of the instruments into a mixer instrument.

Also I want to keep the mixer sends of each instrument Sereo on each event in order to get an automation kind a of control.
So each instrument has 2 mixersends and 2 mixersetlevel that are going to separate mixer instruments (R and L) and then finally I mix the signals of the L and R mixer into a master mixer instrument.

Before I did that I really tried many different kind of implementations, but this looks to me as the best (even if is not good enough).

With every kind of implementation the program crushes as soon as I playback (looks like overloaded.

Is there anybody who can help me with the MIXER OPCODE theory and maybe who can help me with these issues

Thanks for your attention

Kind Regards

Pierpaolo De Nicolo
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd-dev] Mixer Opcodes

Michael Gogins-2
The signal flow graph opcodes are quite flexible and can use vector audio signal types. Their main limitation is that all instances of a instrument definition mix their outputs into the input. See the example in the Csound Reference Manual.

Any kind of signal routing can be done with global variables, but one must remember to zero out the buss variables at the end of each kperiod. The signal flow graph opcodes do that for you. They also make it easier to create modular orchestras, where you can mix and match and reorder instruments, because the signal connections are not defined in the instruments themselves, but rather in the orchestra header, as in the example. 

Regards, 
Mike

On Fri, Apr 5, 2019, 07:03 Tarmo Johannes <[hidden email]> wrote:
Hi,

I personally use just global audio variables for something like this,

but maybe opcode
is what you need.

There are aslo signal flow graph opcodes that is the most flexible and versatile  solution to connect signals in various ways:

tarmo

On neljapäev, 4. aprill, 2019 - 18:34, Steven Yi <[hidden email]> wrote:
I use a global audio array and some opcodes in my livecode setup:


that works fairly well.  Each bus channel is a stereo pair, levels are applied prior to mixing into the channels.  Not sure if the code here may be used directly but could be useful as a starting point. 

You can see how they get used in these two live coding videos:


 

On Thu, Apr 4, 2019 at 10:03 AM Pierpaolo De Nicolò <[hidden email]> wrote:
I ll do it trying to use those opcodes and get back to you... To see if it works for me...

Thank you very much!!!


From: Csound-developers <[hidden email]> on behalf of Rory Walsh <[hidden email]>
Sent: Thursday, April 4, 2019 2:50:19 PM
To: [hidden email]
Subject: Re: [Csnd-dev] Mixer Opcodes
 
I'm not familiar with these opcodes, but I do what you describe using chnset and chnget opcodes and have never had any problems. 

On Thu, 4 Apr 2019 at 14:17, Pierpaolo De Nicolo <[hidden email]> wrote:
Hi guys...
I am scripting a musical piece using the CSound language for my uni thesis...
I am synthesising the whole sound... using very different instruments, some of them are noise based, some of them are wave based (this is probably my main problem as the amplitudes of those different instruments are controlled in a very different way).

Anyway I d like to build an extra control stage....routing all signals coming out of the instruments into a mixer instrument.

Also I want to keep the mixer sends of each instrument Sereo on each event in order to get an automation kind a of control.
So each instrument has 2 mixersends and 2 mixersetlevel that are going to separate mixer instruments (R and L) and then finally I mix the signals of the L and R mixer into a master mixer instrument.

Before I did that I really tried many different kind of implementations, but this looks to me as the best (even if is not good enough).

With every kind of implementation the program crushes as soon as I playback (looks like overloaded.

Is there anybody who can help me with the MIXER OPCODE theory and maybe who can help me with these issues

Thanks for your attention

Kind Regards

Pierpaolo De Nicolo
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd-dev] Mixer Opcodes

thorin kerr
In reply to this post by Pierpaolo De Nicolo
Here's an example using Mixer opcodes, a table, and a 'patcher' instrument to set the signal path. This way you can re-patch during performance.

Thorin

On Thu, Apr 4, 2019 at 11:17 PM Pierpaolo De Nicolo <[hidden email]> wrote:
Hi guys...
I am scripting a musical piece using the CSound language for my uni thesis...
I am synthesising the whole sound... using very different instruments, some of them are noise based, some of them are wave based (this is probably my main problem as the amplitudes of those different instruments are controlled in a very different way).

Anyway I d like to build an extra control stage....routing all signals coming out of the instruments into a mixer instrument.

Also I want to keep the mixer sends of each instrument Sereo on each event in order to get an automation kind a of control.
So each instrument has 2 mixersends and 2 mixersetlevel that are going to separate mixer instruments (R and L) and then finally I mix the signals of the L and R mixer into a master mixer instrument.

Before I did that I really tried many different kind of implementations, but this looks to me as the best (even if is not good enough).

With every kind of implementation the program crushes as soon as I playback (looks like overloaded.

Is there anybody who can help me with the MIXER OPCODE theory and maybe who can help me with these issues

Thanks for your attention

Kind Regards

Pierpaolo De Nicolo

MixerPatcher.csd (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd-dev] Mixer Opcodes

Pierpaolo De Nicolo
Hi guys sorry for the late answer.. I just needed some time to study these solutions and apply them on my code...
First of all thanks cause that made my thesis way better.

At the end i ve chosen the signal flow graph opcode as it is very flexible and perfect for this application...

Global variables are also a very good tool for master controls and i m going to use those ones in the future!!

Thanks also for the live coding video that gave me a lot of inspiration!

Pier


From: Csound-developers <[hidden email]> on behalf of thorin kerr <[hidden email]>
Sent: Friday, April 5, 2019 3:28:21 PM
To: [hidden email]
Subject: Re: [Csnd-dev] Mixer Opcodes
 
Here's an example using Mixer opcodes, a table, and a 'patcher' instrument to set the signal path. This way you can re-patch during performance.

Thorin

On Thu, Apr 4, 2019 at 11:17 PM Pierpaolo De Nicolo <[hidden email]> wrote:
Hi guys...
I am scripting a musical piece using the CSound language for my uni thesis...
I am synthesising the whole sound... using very different instruments, some of them are noise based, some of them are wave based (this is probably my main problem as the amplitudes of those different instruments are controlled in a very different way).

Anyway I d like to build an extra control stage....routing all signals coming out of the instruments into a mixer instrument.

Also I want to keep the mixer sends of each instrument Sereo on each event in order to get an automation kind a of control.
So each instrument has 2 mixersends and 2 mixersetlevel that are going to separate mixer instruments (R and L) and then finally I mix the signals of the L and R mixer into a master mixer instrument.

Before I did that I really tried many different kind of implementations, but this looks to me as the best (even if is not good enough).

With every kind of implementation the program crushes as soon as I playback (looks like overloaded.

Is there anybody who can help me with the MIXER OPCODE theory and maybe who can help me with these issues

Thanks for your attention

Kind Regards

Pierpaolo De Nicolo