Csound Csound-dev Csound-tekno Search About

[Csnd-dev] cpp api examples

Date2016-02-09 15:03
FromAnders Genell
Subject[Csnd-dev] cpp api examples
Dear devs!

I just browsed the csound api examples for cpp, and the README refers to 12 examples but there are only 6 included. What I really was after was an example (to send to some colleagues who, unlike me, are actually programmers) of how to use set/getchannels and how to use performksmps to allow manipulation of the data coming from these channels in their own software in a timely manner.

Is there such an example?

Regards,
Anders

Date2016-02-09 15:40
FromRory Walsh
SubjectRe: [Csnd-dev] cpp api examples
I can put together an example for you later. 

On 9 February 2016 at 15:03, Anders Genell <anders.genell@gmail.com> wrote:
Dear devs!

I just browsed the csound api examples for cpp, and the README refers to 12 examples but there are only 6 included. What I really was after was an example (to send to some colleagues who, unlike me, are actually programmers) of how to use set/getchannels and how to use performksmps to allow manipulation of the data coming from these channels in their own software in a timely manner.

Is there such an example?

Regards,
Anders


Date2016-02-09 15:59
FromAnders Genell
SubjectRe: [Csnd-dev] cpp api examples
Oh, brilliant! Thanks!

...the amount of beer owed within the csound community is approaching singularity at an alarming rate. Should the community happen to gather in one place to settle the score, the mass would collapse into a black hole and we'd be all Trapped in Convert.

Regards,
Anders

On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
I can put together an example for you later. 

On 9 February 2016 at 15:03, Anders Genell <anders.genell@gmail.com> wrote:
Dear devs!

I just browsed the csound api examples for cpp, and the README refers to 12 examples but there are only 6 included. What I really was after was an example (to send to some colleagues who, unlike me, are actually programmers) of how to use set/getchannels and how to use performksmps to allow manipulation of the data coming from these channels in their own software in a timely manner.

Is there such an example?

Regards,
Anders



Date2016-02-09 16:30
FromVictor Lazzarini
SubjectRe: [Csnd-dev] cpp api examples
One day we’ll appear unannounced in Sweden...
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 9 Feb 2016, at 15:59, Anders Genell  wrote:
> 
> Oh, brilliant! Thanks!
> 
> ...the amount of beer owed within the csound community is approaching singularity at an alarming rate. Should the community happen to gather in one place to settle the score, the mass would collapse into a black hole and we'd be all Trapped in Convert.
> 
> Regards,
> Anders
> 
> On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh  wrote:
> I can put together an example for you later. 
> 
> On 9 February 2016 at 15:03, Anders Genell  wrote:
> Dear devs!
> 
> I just browsed the csound api examples for cpp, and the README refers to 12 examples but there are only 6 included. What I really was after was an example (to send to some colleagues who, unlike me, are actually programmers) of how to use set/getchannels and how to use performksmps to allow manipulation of the data coming from these channels in their own software in a timely manner.
> 
> Is there such an example?
> 
> Regards,
> Anders
> 

Date2016-02-09 17:02
FromAnders Genell
SubjectRe: [Csnd-dev] cpp api examples
-"Are you the Police?"
-"No, ma'am. We're musicians."



On Tue, Feb 9, 2016 at 5:30 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
One day we’ll appear unannounced in Sweden...
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 9 Feb 2016, at 15:59, Anders Genell <anders.genell@gmail.com> wrote:
>
> Oh, brilliant! Thanks!
>
> ...the amount of beer owed within the csound community is approaching singularity at an alarming rate. Should the community happen to gather in one place to settle the score, the mass would collapse into a black hole and we'd be all Trapped in Convert.
>
> Regards,
> Anders
>
> On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
> I can put together an example for you later.
>
> On 9 February 2016 at 15:03, Anders Genell <anders.genell@gmail.com> wrote:
> Dear devs!
>
> I just browsed the csound api examples for cpp, and the README refers to 12 examples but there are only 6 included. What I really was after was an example (to send to some colleagues who, unlike me, are actually programmers) of how to use set/getchannels and how to use performksmps to allow manipulation of the data coming from these channels in their own software in a timely manner.
>
> Is there such an example?
>
> Regards,
> Anders
>
>


Date2016-02-09 17:14
FromAnders Genell
SubjectRe: [Csnd-dev] cpp api examples
Should you show up in Sweden, unannounced or not, I'll make emergency calls to 

1. The department of nuclear physics at Gothenburg University.
2. My friend Nils who is an excellent homebrewer (as in beer, not the osx kind) to comission a keg.

I am sure we can find fallout shelter for the Hawking radiation in e.g. Norberg:


Regards,
Anders

On Tue, Feb 9, 2016 at 6:02 PM, Anders Genell <anders.genell@gmail.com> wrote:
-"Are you the Police?"
-"No, ma'am. We're musicians."



On Tue, Feb 9, 2016 at 5:30 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
One day we’ll appear unannounced in Sweden...
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 9 Feb 2016, at 15:59, Anders Genell <anders.genell@gmail.com> wrote:
>
> Oh, brilliant! Thanks!
>
> ...the amount of beer owed within the csound community is approaching singularity at an alarming rate. Should the community happen to gather in one place to settle the score, the mass would collapse into a black hole and we'd be all Trapped in Convert.
>
> Regards,
> Anders
>
> On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
> I can put together an example for you later.
>
> On 9 February 2016 at 15:03, Anders Genell <anders.genell@gmail.com> wrote:
> Dear devs!
>
> I just browsed the csound api examples for cpp, and the README refers to 12 examples but there are only 6 included. What I really was after was an example (to send to some colleagues who, unlike me, are actually programmers) of how to use set/getchannels and how to use performksmps to allow manipulation of the data coming from these channels in their own software in a timely manner.
>
> Is there such an example?
>
> Regards,
> Anders
>
>



Date2016-02-09 18:41
FromRory Walsh
SubjectRe: [Csnd-dev] cpp api examples
I just pushed an example that uses SetChannel() to here:


Is this what you were looking for? SetChannel() can be called anytime. It's thread safe so you don't have to worry about calling it between k-cycles. 

On 9 February 2016 at 17:14, Anders Genell <anders.genell@gmail.com> wrote:
Should you show up in Sweden, unannounced or not, I'll make emergency calls to 

1. The department of nuclear physics at Gothenburg University.
2. My friend Nils who is an excellent homebrewer (as in beer, not the osx kind) to comission a keg.

I am sure we can find fallout shelter for the Hawking radiation in e.g. Norberg:


Regards,
Anders

On Tue, Feb 9, 2016 at 6:02 PM, Anders Genell <anders.genell@gmail.com> wrote:
-"Are you the Police?"
-"No, ma'am. We're musicians."



On Tue, Feb 9, 2016 at 5:30 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
One day we’ll appear unannounced in Sweden...
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 9 Feb 2016, at 15:59, Anders Genell <anders.genell@gmail.com> wrote:
>
> Oh, brilliant! Thanks!
>
> ...the amount of beer owed within the csound community is approaching singularity at an alarming rate. Should the community happen to gather in one place to settle the score, the mass would collapse into a black hole and we'd be all Trapped in Convert.
>
> Regards,
> Anders
>
> On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
> I can put together an example for you later.
>
> On 9 February 2016 at 15:03, Anders Genell <anders.genell@gmail.com> wrote:
> Dear devs!
>
> I just browsed the csound api examples for cpp, and the README refers to 12 examples but there are only 6 included. What I really was after was an example (to send to some colleagues who, unlike me, are actually programmers) of how to use set/getchannels and how to use performksmps to allow manipulation of the data coming from these channels in their own software in a timely manner.
>
> Is there such an example?
>
> Regards,
> Anders
>
>




Date2016-02-09 19:18
FromVictor Lazzarini
SubjectRe: [Csnd-dev] cpp api examples
Nuclear beer? Sounds good.

On 9 Feb 2016, at 17:14, Anders Genell <anders.genell@GMAIL.COM> wrote:

Should you show up in Sweden, unannounced or not, I'll make emergency calls to 

1. The department of nuclear physics at Gothenburg University.
2. My friend Nils who is an excellent homebrewer (as in beer, not the osx kind) to comission a keg.

I am sure we can find fallout shelter for the Hawking radiation in e.g. Norberg:


Regards,
Anders

On Tue, Feb 9, 2016 at 6:02 PM, Anders Genell <anders.genell@gmail.com> wrote:
-"Are you the Police?"
-"No, ma'am. We're musicians."



On Tue, Feb 9, 2016 at 5:30 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
One day we’ll appear unannounced in Sweden...
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 9 Feb 2016, at 15:59, Anders Genell <anders.genell@gmail.com> wrote:
>
> Oh, brilliant! Thanks!
>
> ...the amount of beer owed within the csound community is approaching singularity at an alarming rate. Should the community happen to gather in one place to settle the score, the mass would collapse into a black hole and we'd be all Trapped in Convert.
>
> Regards,
> Anders
>
> On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
> I can put together an example for you later.
>
> On 9 February 2016 at 15:03, Anders Genell <anders.genell@gmail.com> wrote:
> Dear devs!
>
> I just browsed the csound api examples for cpp, and the README refers to 12 examples but there are only 6 included. What I really was after was an example (to send to some colleagues who, unlike me, are actually programmers) of how to use set/getchannels and how to use performksmps to allow manipulation of the data coming from these channels in their own software in a timely manner.
>
> Is there such an example?
>
> Regards,
> Anders
>
>



Date2016-02-09 19:19
FromAnders Genell
SubjectRe: [Csnd-dev] cpp api examples

On Tue, Feb 9, 2016 at 8:18 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Nuclear beer? Sounds good.

On 9 Feb 2016, at 17:14, Anders Genell <anders.genell@GMAIL.COM> wrote:

Should you show up in Sweden, unannounced or not, I'll make emergency calls to 

1. The department of nuclear physics at Gothenburg University.
2. My friend Nils who is an excellent homebrewer (as in beer, not the osx kind) to comission a keg.

I am sure we can find fallout shelter for the Hawking radiation in e.g. Norberg:


Regards,
Anders

On Tue, Feb 9, 2016 at 6:02 PM, Anders Genell <anders.genell@gmail.com> wrote:
-"Are you the Police?"
-"No, ma'am. We're musicians."



On Tue, Feb 9, 2016 at 5:30 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
One day we’ll appear unannounced in Sweden...
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 9 Feb 2016, at 15:59, Anders Genell <anders.genell@gmail.com> wrote:
>
> Oh, brilliant! Thanks!
>
> ...the amount of beer owed within the csound community is approaching singularity at an alarming rate. Should the community happen to gather in one place to settle the score, the mass would collapse into a black hole and we'd be all Trapped in Convert.
>
> Regards,
> Anders
>
> On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
> I can put together an example for you later.
>
> On 9 February 2016 at 15:03, Anders Genell <anders.genell@gmail.com> wrote:
> Dear devs!
>
> I just browsed the csound api examples for cpp, and the README refers to 12 examples but there are only 6 included. What I really was after was an example (to send to some colleagues who, unlike me, are actually programmers) of how to use set/getchannels and how to use performksmps to allow manipulation of the data coming from these channels in their own software in a timely manner.
>
> Is there such an example?
>
> Regards,
> Anders
>
>




Date2016-02-09 19:21
FromAnders Genell
SubjectRe: [Csnd-dev] cpp api examples
That's great, thanks!
What I (or my hacking wizard colleagues) want to do is to use performksmps in order to ensure proper sync to other processes.
We want to use several control channels (e.g. frequency, pitch, filter cutoff etc) to affect what is being done in csound, and use several channels (well, more than one at least) of the resulting audio and mangle further in our applications before sending off to yet other appications handling the output to the sound card.
I suppose that if we set odac to dummy, use Set/GetChannel for audio and use performKsmps for timing we should be alright?

Regards,
Anders


On Tue, Feb 9, 2016 at 7:41 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
I just pushed an example that uses SetChannel() to here:


Is this what you were looking for? SetChannel() can be called anytime. It's thread safe so you don't have to worry about calling it between k-cycles. 

On 9 February 2016 at 17:14, Anders Genell <anders.genell@gmail.com> wrote:
Should you show up in Sweden, unannounced or not, I'll make emergency calls to 

1. The department of nuclear physics at Gothenburg University.
2. My friend Nils who is an excellent homebrewer (as in beer, not the osx kind) to comission a keg.

I am sure we can find fallout shelter for the Hawking radiation in e.g. Norberg:


Regards,
Anders

On Tue, Feb 9, 2016 at 6:02 PM, Anders Genell <anders.genell@gmail.com> wrote:
-"Are you the Police?"
-"No, ma'am. We're musicians."



On Tue, Feb 9, 2016 at 5:30 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
One day we’ll appear unannounced in Sweden...
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 9 Feb 2016, at 15:59, Anders Genell <anders.genell@gmail.com> wrote:
>
> Oh, brilliant! Thanks!
>
> ...the amount of beer owed within the csound community is approaching singularity at an alarming rate. Should the community happen to gather in one place to settle the score, the mass would collapse into a black hole and we'd be all Trapped in Convert.
>
> Regards,
> Anders
>
> On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
> I can put together an example for you later.
>
> On 9 February 2016 at 15:03, Anders Genell <anders.genell@gmail.com> wrote:
> Dear devs!
>
> I just browsed the csound api examples for cpp, and the README refers to 12 examples but there are only 6 included. What I really was after was an example (to send to some colleagues who, unlike me, are actually programmers) of how to use set/getchannels and how to use performksmps to allow manipulation of the data coming from these channels in their own software in a timely manner.
>
> Is there such an example?
>
> Regards,
> Anders
>
>





Date2016-02-09 19:21
FromRory Walsh
SubjectRe: [Csnd-dev] cpp api examples
You can get a few different BrewDog beers in Ireland nowadays, but I've not seen this one! Just as well I imagine.. 

On 9 February 2016 at 19:19, Anders Genell <anders.genell@gmail.com> wrote:

On Tue, Feb 9, 2016 at 8:18 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Nuclear beer? Sounds good.

On 9 Feb 2016, at 17:14, Anders Genell <anders.genell@GMAIL.COM> wrote:

Should you show up in Sweden, unannounced or not, I'll make emergency calls to 

1. The department of nuclear physics at Gothenburg University.
2. My friend Nils who is an excellent homebrewer (as in beer, not the osx kind) to comission a keg.

I am sure we can find fallout shelter for the Hawking radiation in e.g. Norberg:


Regards,
Anders

On Tue, Feb 9, 2016 at 6:02 PM, Anders Genell <anders.genell@gmail.com> wrote:
-"Are you the Police?"
-"No, ma'am. We're musicians."



On Tue, Feb 9, 2016 at 5:30 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
One day we’ll appear unannounced in Sweden...
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 9 Feb 2016, at 15:59, Anders Genell <anders.genell@gmail.com> wrote:
>
> Oh, brilliant! Thanks!
>
> ...the amount of beer owed within the csound community is approaching singularity at an alarming rate. Should the community happen to gather in one place to settle the score, the mass would collapse into a black hole and we'd be all Trapped in Convert.
>
> Regards,
> Anders
>
> On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
> I can put together an example for you later.
>
> On 9 February 2016 at 15:03, Anders Genell <anders.genell@gmail.com> wrote:
> Dear devs!
>
> I just browsed the csound api examples for cpp, and the README refers to 12 examples but there are only 6 included. What I really was after was an example (to send to some colleagues who, unlike me, are actually programmers) of how to use set/getchannels and how to use performksmps to allow manipulation of the data coming from these channels in their own software in a timely manner.
>
> Is there such an example?
>
> Regards,
> Anders
>
>





Date2016-02-09 19:24
FromRory Walsh
SubjectRe: [Csnd-dev] cpp api examples
Ah I see. I wouldn't bother using channels for the audio. It's probably better to send audio to and from Csound using the input/output buffers. The problem with creating an example for that is the need to add a custom IO interface. But let me see what I can do. I think I have an example some place that might be useful. 

On 9 February 2016 at 19:21, Anders Genell <anders.genell@gmail.com> wrote:
That's great, thanks!
What I (or my hacking wizard colleagues) want to do is to use performksmps in order to ensure proper sync to other processes.
We want to use several control channels (e.g. frequency, pitch, filter cutoff etc) to affect what is being done in csound, and use several channels (well, more than one at least) of the resulting audio and mangle further in our applications before sending off to yet other appications handling the output to the sound card.
I suppose that if we set odac to dummy, use Set/GetChannel for audio and use performKsmps for timing we should be alright?

Regards,
Anders


On Tue, Feb 9, 2016 at 7:41 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
I just pushed an example that uses SetChannel() to here:


Is this what you were looking for? SetChannel() can be called anytime. It's thread safe so you don't have to worry about calling it between k-cycles. 

On 9 February 2016 at 17:14, Anders Genell <anders.genell@gmail.com> wrote:
Should you show up in Sweden, unannounced or not, I'll make emergency calls to 

1. The department of nuclear physics at Gothenburg University.
2. My friend Nils who is an excellent homebrewer (as in beer, not the osx kind) to comission a keg.

I am sure we can find fallout shelter for the Hawking radiation in e.g. Norberg:


Regards,
Anders

On Tue, Feb 9, 2016 at 6:02 PM, Anders Genell <anders.genell@gmail.com> wrote:
-"Are you the Police?"
-"No, ma'am. We're musicians."



On Tue, Feb 9, 2016 at 5:30 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
One day we’ll appear unannounced in Sweden...
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 9 Feb 2016, at 15:59, Anders Genell <anders.genell@gmail.com> wrote:
>
> Oh, brilliant! Thanks!
>
> ...the amount of beer owed within the csound community is approaching singularity at an alarming rate. Should the community happen to gather in one place to settle the score, the mass would collapse into a black hole and we'd be all Trapped in Convert.
>
> Regards,
> Anders
>
> On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
> I can put together an example for you later.
>
> On 9 February 2016 at 15:03, Anders Genell <anders.genell@gmail.com> wrote:
> Dear devs!
>
> I just browsed the csound api examples for cpp, and the README refers to 12 examples but there are only 6 included. What I really was after was an example (to send to some colleagues who, unlike me, are actually programmers) of how to use set/getchannels and how to use performksmps to allow manipulation of the data coming from these channels in their own software in a timely manner.
>
> Is there such an example?
>
> Regards,
> Anders
>
>






Date2016-02-09 19:32
FromAnders Genell
SubjectRe: [Csnd-dev] cpp api examples
Well, we are using OpenAL for output, so we just need to transfer audio from csound buffers to OpenAL buffers (and update positions for sound sources in OpenAL space) for each kspms cycle, so the IO is no problem.

Regards,
Anders

On Tue, Feb 9, 2016 at 8:24 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
Ah I see. I wouldn't bother using channels for the audio. It's probably better to send audio to and from Csound using the input/output buffers. The problem with creating an example for that is the need to add a custom IO interface. But let me see what I can do. I think I have an example some place that might be useful. 

On 9 February 2016 at 19:21, Anders Genell <anders.genell@gmail.com> wrote:
That's great, thanks!
What I (or my hacking wizard colleagues) want to do is to use performksmps in order to ensure proper sync to other processes.
We want to use several control channels (e.g. frequency, pitch, filter cutoff etc) to affect what is being done in csound, and use several channels (well, more than one at least) of the resulting audio and mangle further in our applications before sending off to yet other appications handling the output to the sound card.
I suppose that if we set odac to dummy, use Set/GetChannel for audio and use performKsmps for timing we should be alright?

Regards,
Anders


On Tue, Feb 9, 2016 at 7:41 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
I just pushed an example that uses SetChannel() to here:


Is this what you were looking for? SetChannel() can be called anytime. It's thread safe so you don't have to worry about calling it between k-cycles. 

On 9 February 2016 at 17:14, Anders Genell <anders.genell@gmail.com> wrote:
Should you show up in Sweden, unannounced or not, I'll make emergency calls to 

1. The department of nuclear physics at Gothenburg University.
2. My friend Nils who is an excellent homebrewer (as in beer, not the osx kind) to comission a keg.

I am sure we can find fallout shelter for the Hawking radiation in e.g. Norberg:


Regards,
Anders

On Tue, Feb 9, 2016 at 6:02 PM, Anders Genell <anders.genell@gmail.com> wrote:
-"Are you the Police?"
-"No, ma'am. We're musicians."



On Tue, Feb 9, 2016 at 5:30 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
One day we’ll appear unannounced in Sweden...
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 9 Feb 2016, at 15:59, Anders Genell <anders.genell@gmail.com> wrote:
>
> Oh, brilliant! Thanks!
>
> ...the amount of beer owed within the csound community is approaching singularity at an alarming rate. Should the community happen to gather in one place to settle the score, the mass would collapse into a black hole and we'd be all Trapped in Convert.
>
> Regards,
> Anders
>
> On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
> I can put together an example for you later.
>
> On 9 February 2016 at 15:03, Anders Genell <anders.genell@gmail.com> wrote:
> Dear devs!
>
> I just browsed the csound api examples for cpp, and the README refers to 12 examples but there are only 6 included. What I really was after was an example (to send to some colleagues who, unlike me, are actually programmers) of how to use set/getchannels and how to use performksmps to allow manipulation of the data coming from these channels in their own software in a timely manner.
>
> Is there such an example?
>
> Regards,
> Anders
>
>







Date2016-02-09 20:05
FromRory Walsh
SubjectRe: [Csnd-dev] cpp api examples
I pushed another example through there, but as you can imagine it's hard to write an example of how to use Csound with another audio library, without using another audio library! This example shows how you can access Csound's input and output buffers. What you do with them is up to you.


On 9 February 2016 at 19:32, Anders Genell <anders.genell@gmail.com> wrote:
Well, we are using OpenAL for output, so we just need to transfer audio from csound buffers to OpenAL buffers (and update positions for sound sources in OpenAL space) for each kspms cycle, so the IO is no problem.

Regards,
Anders

On Tue, Feb 9, 2016 at 8:24 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
Ah I see. I wouldn't bother using channels for the audio. It's probably better to send audio to and from Csound using the input/output buffers. The problem with creating an example for that is the need to add a custom IO interface. But let me see what I can do. I think I have an example some place that might be useful. 

On 9 February 2016 at 19:21, Anders Genell <anders.genell@gmail.com> wrote:
That's great, thanks!
What I (or my hacking wizard colleagues) want to do is to use performksmps in order to ensure proper sync to other processes.
We want to use several control channels (e.g. frequency, pitch, filter cutoff etc) to affect what is being done in csound, and use several channels (well, more than one at least) of the resulting audio and mangle further in our applications before sending off to yet other appications handling the output to the sound card.
I suppose that if we set odac to dummy, use Set/GetChannel for audio and use performKsmps for timing we should be alright?

Regards,
Anders


On Tue, Feb 9, 2016 at 7:41 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
I just pushed an example that uses SetChannel() to here:


Is this what you were looking for? SetChannel() can be called anytime. It's thread safe so you don't have to worry about calling it between k-cycles. 

On 9 February 2016 at 17:14, Anders Genell <anders.genell@gmail.com> wrote:
Should you show up in Sweden, unannounced or not, I'll make emergency calls to 

1. The department of nuclear physics at Gothenburg University.
2. My friend Nils who is an excellent homebrewer (as in beer, not the osx kind) to comission a keg.

I am sure we can find fallout shelter for the Hawking radiation in e.g. Norberg:


Regards,
Anders

On Tue, Feb 9, 2016 at 6:02 PM, Anders Genell <anders.genell@gmail.com> wrote:
-"Are you the Police?"
-"No, ma'am. We're musicians."



On Tue, Feb 9, 2016 at 5:30 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
One day we’ll appear unannounced in Sweden...
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 9 Feb 2016, at 15:59, Anders Genell <anders.genell@gmail.com> wrote:
>
> Oh, brilliant! Thanks!
>
> ...the amount of beer owed within the csound community is approaching singularity at an alarming rate. Should the community happen to gather in one place to settle the score, the mass would collapse into a black hole and we'd be all Trapped in Convert.
>
> Regards,
> Anders
>
> On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
> I can put together an example for you later.
>
> On 9 February 2016 at 15:03, Anders Genell <anders.genell@gmail.com> wrote:
> Dear devs!
>
> I just browsed the csound api examples for cpp, and the README refers to 12 examples but there are only 6 included. What I really was after was an example (to send to some colleagues who, unlike me, are actually programmers) of how to use set/getchannels and how to use performksmps to allow manipulation of the data coming from these channels in their own software in a timely manner.
>
> Is there such an example?
>
> Regards,
> Anders
>
>








Date2016-02-09 21:22
FromAnders Genell
SubjectRe: [Csnd-dev] cpp api examples
Fantastic! 
That seems exactly like what we'd need. 

Just one question: when using GetSpout(), how is the data structured? Interleaved channels? 



Thanks again, Rory!
I'll tell Nils to start hauling sacks of malt from storage...
Regards
Anders
9 feb. 2016 kl. 21:05 skrev Rory Walsh <rorywalsh@EAR.IE>:

I pushed another example through there, but as you can imagine it's hard to write an example of how to use Csound with another audio library, without using another audio library! This example shows how you can access Csound's input and output buffers. What you do with them is up to you.


On 9 February 2016 at 19:32, Anders Genell <anders.genell@gmail.com> wrote:
Well, we are using OpenAL for output, so we just need to transfer audio from csound buffers to OpenAL buffers (and update positions for sound sources in OpenAL space) for each kspms cycle, so the IO is no problem.

Regards,
Anders

On Tue, Feb 9, 2016 at 8:24 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
Ah I see. I wouldn't bother using channels for the audio. It's probably better to send audio to and from Csound using the input/output buffers. The problem with creating an example for that is the need to add a custom IO interface. But let me see what I can do. I think I have an example some place that might be useful. 

On 9 February 2016 at 19:21, Anders Genell <anders.genell@gmail.com> wrote:
That's great, thanks!
What I (or my hacking wizard colleagues) want to do is to use performksmps in order to ensure proper sync to other processes.
We want to use several control channels (e.g. frequency, pitch, filter cutoff etc) to affect what is being done in csound, and use several channels (well, more than one at least) of the resulting audio and mangle further in our applications before sending off to yet other appications handling the output to the sound card.
I suppose that if we set odac to dummy, use Set/GetChannel for audio and use performKsmps for timing we should be alright?

Regards,
Anders


On Tue, Feb 9, 2016 at 7:41 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
I just pushed an example that uses SetChannel() to here:


Is this what you were looking for? SetChannel() can be called anytime. It's thread safe so you don't have to worry about calling it between k-cycles. 

On 9 February 2016 at 17:14, Anders Genell <anders.genell@gmail.com> wrote:
Should you show up in Sweden, unannounced or not, I'll make emergency calls to 

1. The department of nuclear physics at Gothenburg University.
2. My friend Nils who is an excellent homebrewer (as in beer, not the osx kind) to comission a keg.

I am sure we can find fallout shelter for the Hawking radiation in e.g. Norberg:


Regards,
Anders

On Tue, Feb 9, 2016 at 6:02 PM, Anders Genell <anders.genell@gmail.com> wrote:
-"Are you the Police?"
-"No, ma'am. We're musicians."



On Tue, Feb 9, 2016 at 5:30 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
One day we’ll appear unannounced in Sweden...
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 9 Feb 2016, at 15:59, Anders Genell <anders.genell@gmail.com> wrote:
>
> Oh, brilliant! Thanks!
>
> ...the amount of beer owed within the csound community is approaching singularity at an alarming rate. Should the community happen to gather in one place to settle the score, the mass would collapse into a black hole and we'd be all Trapped in Convert.
>
> Regards,
> Anders
>
> On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
> I can put together an example for you later.
>
> On 9 February 2016 at 15:03, Anders Genell <anders.genell@gmail.com> wrote:
> Dear devs!
>
> I just browsed the csound api examples for cpp, and the README refers to 12 examples but there are only 6 included. What I really was after was an example (to send to some colleagues who, unlike me, are actually programmers) of how to use set/getchannels and how to use performksmps to allow manipulation of the data coming from these channels in their own software in a timely manner.
>
> Is there such an example?
>
> Regards,
> Anders
>
>








Date2016-02-09 21:45
FromRory Walsh
SubjectRe: [Csnd-dev] cpp api examples
Just one question: when using GetSpout(), how is the data structured? Interleaved channels? 


That's right. Here's a few examples of different processing methods that pass audio in and out of Csound.


 

Thanks again, Rory!
I'll tell Nils to start hauling sacks of malt from storage...
Regards
Anders

9 feb. 2016 kl. 21:05 skrev Rory Walsh <rorywalsh@EAR.IE>:

I pushed another example through there, but as you can imagine it's hard to write an example of how to use Csound with another audio library, without using another audio library! This example shows how you can access Csound's input and output buffers. What you do with them is up to you.


On 9 February 2016 at 19:32, Anders Genell <anders.genell@gmail.com> wrote:
Well, we are using OpenAL for output, so we just need to transfer audio from csound buffers to OpenAL buffers (and update positions for sound sources in OpenAL space) for each kspms cycle, so the IO is no problem.

Regards,
Anders

On Tue, Feb 9, 2016 at 8:24 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
Ah I see. I wouldn't bother using channels for the audio. It's probably better to send audio to and from Csound using the input/output buffers. The problem with creating an example for that is the need to add a custom IO interface. But let me see what I can do. I think I have an example some place that might be useful. 

On 9 February 2016 at 19:21, Anders Genell <anders.genell@gmail.com> wrote:
That's great, thanks!
What I (or my hacking wizard colleagues) want to do is to use performksmps in order to ensure proper sync to other processes.
We want to use several control channels (e.g. frequency, pitch, filter cutoff etc) to affect what is being done in csound, and use several channels (well, more than one at least) of the resulting audio and mangle further in our applications before sending off to yet other appications handling the output to the sound card.
I suppose that if we set odac to dummy, use Set/GetChannel for audio and use performKsmps for timing we should be alright?

Regards,
Anders


On Tue, Feb 9, 2016 at 7:41 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
I just pushed an example that uses SetChannel() to here:


Is this what you were looking for? SetChannel() can be called anytime. It's thread safe so you don't have to worry about calling it between k-cycles. 

On 9 February 2016 at 17:14, Anders Genell <anders.genell@gmail.com> wrote:
Should you show up in Sweden, unannounced or not, I'll make emergency calls to 

1. The department of nuclear physics at Gothenburg University.
2. My friend Nils who is an excellent homebrewer (as in beer, not the osx kind) to comission a keg.

I am sure we can find fallout shelter for the Hawking radiation in e.g. Norberg:


Regards,
Anders

On Tue, Feb 9, 2016 at 6:02 PM, Anders Genell <anders.genell@gmail.com> wrote:
-"Are you the Police?"
-"No, ma'am. We're musicians."



On Tue, Feb 9, 2016 at 5:30 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
One day we’ll appear unannounced in Sweden...
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 9 Feb 2016, at 15:59, Anders Genell <anders.genell@gmail.com> wrote:
>
> Oh, brilliant! Thanks!
>
> ...the amount of beer owed within the csound community is approaching singularity at an alarming rate. Should the community happen to gather in one place to settle the score, the mass would collapse into a black hole and we'd be all Trapped in Convert.
>
> Regards,
> Anders
>
> On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
> I can put together an example for you later.
>
> On 9 February 2016 at 15:03, Anders Genell <anders.genell@gmail.com> wrote:
> Dear devs!
>
> I just browsed the csound api examples for cpp, and the README refers to 12 examples but there are only 6 included. What I really was after was an example (to send to some colleagues who, unlike me, are actually programmers) of how to use set/getchannels and how to use performksmps to allow manipulation of the data coming from these channels in their own software in a timely manner.
>
> Is there such an example?
>
> Regards,
> Anders
>
>









Date2016-02-09 22:05
Fromjoachim heintz
SubjectRe: [Csnd-dev] cpp api examples
i get the strong impression that sweden is a major candidate for one of 
the next csound conferences ...

	=)


On 09/02/16 18:14, Anders Genell wrote:
> Should you show up in Sweden, unannounced or not, I'll make emergency
> calls to
>
> 1. The department of nuclear physics at Gothenburg University.
> 2. My friend Nils who is an excellent homebrewer (as in beer, not the
> osx kind) to comission a keg.
>
> I am sure we can find fallout shelter for the Hawking radiation in e.g.
> Norberg:
>
> http://norbergfestival.com/archive/2015/about/the-history-of-mimer.html
>
> Regards,
> Anders
>
> On Tue, Feb 9, 2016 at 6:02 PM, Anders Genell  > wrote:
>
>     -"Are you the Police?"
>     -"No, ma'am. We're musicians."
>
>
>
>     On Tue, Feb 9, 2016 at 5:30 PM, Victor Lazzarini
>     > wrote:
>
>         One day we’ll appear unannounced in Sweden...
>         ========================
>         Dr Victor Lazzarini
>         Dean of Arts, Celtic Studies and Philosophy,
>         Maynooth University,
>         Maynooth, Co Kildare, Ireland
>         Tel: 00 353 7086936
>         Fax: 00 353 1 7086952
>
>          > On 9 Feb 2016, at 15:59, Anders Genell
>         > wrote:
>          >
>          > Oh, brilliant! Thanks!
>          >
>          > ...the amount of beer owed within the csound community is
>         approaching singularity at an alarming rate. Should the
>         community happen to gather in one place to settle the score, the
>         mass would collapse into a black hole and we'd be all Trapped in
>         Convert.
>          >
>          > Regards,
>          > Anders
>          >
>          > On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh          > wrote:
>          > I can put together an example for you later.
>          >
>          > On 9 February 2016 at 15:03, Anders Genell
>         > wrote:
>          > Dear devs!
>          >
>          > I just browsed the csound api examples for cpp, and the
>         README refers to 12 examples but there are only 6 included. What
>         I really was after was an example (to send to some colleagues
>         who, unlike me, are actually programmers) of how to use
>         set/getchannels and how to use performksmps to allow
>         manipulation of the data coming from these channels in their own
>         software in a timely manner.
>          >
>          > Is there such an example?
>          >
>          > Regards,
>          > Anders
>          >
>          >
>
>

Date2016-02-29 14:02
FromAnders Genell
SubjectRe: [Csnd-dev] cpp api examples
Thank you again, Rory, for these excellent examples!
We now have something working as proof of concept.
OpenAL has a system where you queue one or (rather) several buffers for playback, attached to a 'source' that can be moved around in space. When a buffere has been processed by OpenAL it is removed from the queue, and so by asking via the OpenAL api how many buffers are still queued, and running the required number of iterations of performKsmps as soon as one buffer is found released from the queue seems to sync things up nicely.

One additional thing I'd like to ask, though. In our csd we use the OSC opcodes to receive exernal control signals. When using the csound api I suppose we need to link to the OSC opcodes somehow to get this to work. Is there a simple way to do so?



Regards,
Anders


On Tue, Feb 9, 2016 at 11:05 PM, joachim heintz <jh@joachimheintz.de> wrote:
i get the strong impression that sweden is a major candidate for one of the next csound conferences ...

        =)


On 09/02/16 18:14, Anders Genell wrote:
Should you show up in Sweden, unannounced or not, I'll make emergency
calls to

1. The department of nuclear physics at Gothenburg University.
2. My friend Nils who is an excellent homebrewer (as in beer, not the
osx kind) to comission a keg.

I am sure we can find fallout shelter for the Hawking radiation in e.g.
Norberg:

http://norbergfestival.com/archive/2015/about/the-history-of-mimer.html

Regards,
Anders

On Tue, Feb 9, 2016 at 6:02 PM, Anders Genell <anders.genell@gmail.com
<mailto:anders.genell@gmail.com>> wrote:

    -"Are you the Police?"
    -"No, ma'am. We're musicians."



    On Tue, Feb 9, 2016 at 5:30 PM, Victor Lazzarini
    <Victor.Lazzarini@nuim.ie <mailto:Victor.Lazzarini@nuim.ie>> wrote:

        One day we’ll appear unannounced in Sweden...
        ========================
        Dr Victor Lazzarini
        Dean of Arts, Celtic Studies and Philosophy,
        Maynooth University,
        Maynooth, Co Kildare, Ireland
        Tel: 00 353 7086936
        Fax: 00 353 1 7086952

         > On 9 Feb 2016, at 15:59, Anders Genell
        <anders.genell@gmail.com <mailto:anders.genell@gmail.com>> wrote:
         >
         > Oh, brilliant! Thanks!
         >
         > ...the amount of beer owed within the csound community is
        approaching singularity at an alarming rate. Should the
        community happen to gather in one place to settle the score, the
        mass would collapse into a black hole and we'd be all Trapped in
        Convert.
         >
         > Regards,
         > Anders
         >
         > On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh <rorywalsh@ear.ie
        <mailto:rorywalsh@ear.ie>> wrote:
         > I can put together an example for you later.
         >
         > On 9 February 2016 at 15:03, Anders Genell
        <anders.genell@gmail.com <mailto:anders.genell@gmail.com>> wrote:
         > Dear devs!
         >
         > I just browsed the csound api examples for cpp, and the
        README refers to 12 examples but there are only 6 included. What
        I really was after was an example (to send to some colleagues
        who, unlike me, are actually programmers) of how to use
        set/getchannels and how to use performksmps to allow
        manipulation of the data coming from these channels in their own
        software in a timely manner.
         >
         > Is there such an example?
         >
         > Regards,
         > Anders
         >
         >





Date2016-02-29 14:22
FromRory Walsh
SubjectRe: [Csnd-dev] cpp api examples
You don't have to do anything special to get the OSC opcodes to work. The Csound library will search OPCODE6DIR64 on startup and load all plugin opcodes it finds. 

On 29 February 2016 at 14:02, Anders Genell <anders.genell@gmail.com> wrote:
Thank you again, Rory, for these excellent examples!
We now have something working as proof of concept.
OpenAL has a system where you queue one or (rather) several buffers for playback, attached to a 'source' that can be moved around in space. When a buffere has been processed by OpenAL it is removed from the queue, and so by asking via the OpenAL api how many buffers are still queued, and running the required number of iterations of performKsmps as soon as one buffer is found released from the queue seems to sync things up nicely.

One additional thing I'd like to ask, though. In our csd we use the OSC opcodes to receive exernal control signals. When using the csound api I suppose we need to link to the OSC opcodes somehow to get this to work. Is there a simple way to do so?



Regards,
Anders


On Tue, Feb 9, 2016 at 11:05 PM, joachim heintz <jh@joachimheintz.de> wrote:
i get the strong impression that sweden is a major candidate for one of the next csound conferences ...

        =)


On 09/02/16 18:14, Anders Genell wrote:
Should you show up in Sweden, unannounced or not, I'll make emergency
calls to

1. The department of nuclear physics at Gothenburg University.
2. My friend Nils who is an excellent homebrewer (as in beer, not the
osx kind) to comission a keg.

I am sure we can find fallout shelter for the Hawking radiation in e.g.
Norberg:

http://norbergfestival.com/archive/2015/about/the-history-of-mimer.html

Regards,
Anders

On Tue, Feb 9, 2016 at 6:02 PM, Anders Genell <anders.genell@gmail.com
<mailto:anders.genell@gmail.com>> wrote:

    -"Are you the Police?"
    -"No, ma'am. We're musicians."



    On Tue, Feb 9, 2016 at 5:30 PM, Victor Lazzarini
    <Victor.Lazzarini@nuim.ie <mailto:Victor.Lazzarini@nuim.ie>> wrote:

        One day we’ll appear unannounced in Sweden...
        ========================
        Dr Victor Lazzarini
        Dean of Arts, Celtic Studies and Philosophy,
        Maynooth University,
        Maynooth, Co Kildare, Ireland
        Tel: 00 353 7086936
        Fax: 00 353 1 7086952

         > On 9 Feb 2016, at 15:59, Anders Genell
        <anders.genell@gmail.com <mailto:anders.genell@gmail.com>> wrote:
         >
         > Oh, brilliant! Thanks!
         >
         > ...the amount of beer owed within the csound community is
        approaching singularity at an alarming rate. Should the
        community happen to gather in one place to settle the score, the
        mass would collapse into a black hole and we'd be all Trapped in
        Convert.
         >
         > Regards,
         > Anders
         >
         > On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh <rorywalsh@ear.ie
        <mailto:rorywalsh@ear.ie>> wrote:
         > I can put together an example for you later.
         >
         > On 9 February 2016 at 15:03, Anders Genell
        <anders.genell@gmail.com <mailto:anders.genell@gmail.com>> wrote:
         > Dear devs!
         >
         > I just browsed the csound api examples for cpp, and the
        README refers to 12 examples but there are only 6 included. What
        I really was after was an example (to send to some colleagues
        who, unlike me, are actually programmers) of how to use
        set/getchannels and how to use performksmps to allow
        manipulation of the data coming from these channels in their own
        software in a timely manner.
         >
         > Is there such an example?
         >
         > Regards,
         > Anders
         >
         >






Date2016-02-29 14:40
FromAnders Genell
SubjectRe: [Csnd-dev] cpp api examples
Brilliant, thanks!
Is there btw any way to check if OPCODE6DIR64 is already set and if not, set it to some path via the api?

Regards,
Anders

On Mon, Feb 29, 2016 at 3:22 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
You don't have to do anything special to get the OSC opcodes to work. The Csound library will search OPCODE6DIR64 on startup and load all plugin opcodes it finds. 

On 29 February 2016 at 14:02, Anders Genell <anders.genell@gmail.com> wrote:
Thank you again, Rory, for these excellent examples!
We now have something working as proof of concept.
OpenAL has a system where you queue one or (rather) several buffers for playback, attached to a 'source' that can be moved around in space. When a buffere has been processed by OpenAL it is removed from the queue, and so by asking via the OpenAL api how many buffers are still queued, and running the required number of iterations of performKsmps as soon as one buffer is found released from the queue seems to sync things up nicely.

One additional thing I'd like to ask, though. In our csd we use the OSC opcodes to receive exernal control signals. When using the csound api I suppose we need to link to the OSC opcodes somehow to get this to work. Is there a simple way to do so?



Regards,
Anders


On Tue, Feb 9, 2016 at 11:05 PM, joachim heintz <jh@joachimheintz.de> wrote:
i get the strong impression that sweden is a major candidate for one of the next csound conferences ...

        =)


On 09/02/16 18:14, Anders Genell wrote:
Should you show up in Sweden, unannounced or not, I'll make emergency
calls to

1. The department of nuclear physics at Gothenburg University.
2. My friend Nils who is an excellent homebrewer (as in beer, not the
osx kind) to comission a keg.

I am sure we can find fallout shelter for the Hawking radiation in e.g.
Norberg:

http://norbergfestival.com/archive/2015/about/the-history-of-mimer.html

Regards,
Anders

On Tue, Feb 9, 2016 at 6:02 PM, Anders Genell <anders.genell@gmail.com
<mailto:anders.genell@gmail.com>> wrote:

    -"Are you the Police?"
    -"No, ma'am. We're musicians."



    On Tue, Feb 9, 2016 at 5:30 PM, Victor Lazzarini
    <Victor.Lazzarini@nuim.ie <mailto:Victor.Lazzarini@nuim.ie>> wrote:

        One day we’ll appear unannounced in Sweden...
        ========================
        Dr Victor Lazzarini
        Dean of Arts, Celtic Studies and Philosophy,
        Maynooth University,
        Maynooth, Co Kildare, Ireland
        Tel: 00 353 7086936
        Fax: 00 353 1 7086952

         > On 9 Feb 2016, at 15:59, Anders Genell
        <anders.genell@gmail.com <mailto:anders.genell@gmail.com>> wrote:
         >
         > Oh, brilliant! Thanks!
         >
         > ...the amount of beer owed within the csound community is
        approaching singularity at an alarming rate. Should the
        community happen to gather in one place to settle the score, the
        mass would collapse into a black hole and we'd be all Trapped in
        Convert.
         >
         > Regards,
         > Anders
         >
         > On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh <rorywalsh@ear.ie
        <mailto:rorywalsh@ear.ie>> wrote:
         > I can put together an example for you later.
         >
         > On 9 February 2016 at 15:03, Anders Genell
        <anders.genell@gmail.com <mailto:anders.genell@gmail.com>> wrote:
         > Dear devs!
         >
         > I just browsed the csound api examples for cpp, and the
        README refers to 12 examples but there are only 6 included. What
        I really was after was an example (to send to some colleagues
        who, unlike me, are actually programmers) of how to use
        set/getchannels and how to use performksmps to allow
        manipulation of the data coming from these channels in their own
        software in a timely manner.
         >
         > Is there such an example?
         >
         > Regards,
         > Anders
         >
         >







Date2016-02-29 14:58
FromRory Walsh
SubjectRe: [Csnd-dev] cpp api examples
You can check for the existence of the OPCODE6DIR64 variable in your system path. There are API methods called csoundSetGlobalEnv() and csoundGetGlobalEnv()

https://csound.github.io/docs/api/group__MISCELLANEOUS.html#ga0183dad9bbc4961d66a280e5292091ed

I've never used them. On Windows I just use getEnv() and setEnv(). And it's not something I've ever had to do on OSX or Linux. Alternatively you can just pass the plugin library directly to Csound in your CsOptions section using --opcode-lib=LIBNAME

On 29 February 2016 at 14:40, Anders Genell <anders.genell@gmail.com> wrote:
Brilliant, thanks!
Is there btw any way to check if OPCODE6DIR64 is already set and if not, set it to some path via the api?

Regards,
Anders

On Mon, Feb 29, 2016 at 3:22 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
You don't have to do anything special to get the OSC opcodes to work. The Csound library will search OPCODE6DIR64 on startup and load all plugin opcodes it finds. 

On 29 February 2016 at 14:02, Anders Genell <anders.genell@gmail.com> wrote:
Thank you again, Rory, for these excellent examples!
We now have something working as proof of concept.
OpenAL has a system where you queue one or (rather) several buffers for playback, attached to a 'source' that can be moved around in space. When a buffere has been processed by OpenAL it is removed from the queue, and so by asking via the OpenAL api how many buffers are still queued, and running the required number of iterations of performKsmps as soon as one buffer is found released from the queue seems to sync things up nicely.

One additional thing I'd like to ask, though. In our csd we use the OSC opcodes to receive exernal control signals. When using the csound api I suppose we need to link to the OSC opcodes somehow to get this to work. Is there a simple way to do so?



Regards,
Anders


On Tue, Feb 9, 2016 at 11:05 PM, joachim heintz <jh@joachimheintz.de> wrote:
i get the strong impression that sweden is a major candidate for one of the next csound conferences ...

        =)


On 09/02/16 18:14, Anders Genell wrote:
Should you show up in Sweden, unannounced or not, I'll make emergency
calls to

1. The department of nuclear physics at Gothenburg University.
2. My friend Nils who is an excellent homebrewer (as in beer, not the
osx kind) to comission a keg.

I am sure we can find fallout shelter for the Hawking radiation in e.g.
Norberg:

http://norbergfestival.com/archive/2015/about/the-history-of-mimer.html

Regards,
Anders

On Tue, Feb 9, 2016 at 6:02 PM, Anders Genell <anders.genell@gmail.com
<mailto:anders.genell@gmail.com>> wrote:

    -"Are you the Police?"
    -"No, ma'am. We're musicians."



    On Tue, Feb 9, 2016 at 5:30 PM, Victor Lazzarini
    <Victor.Lazzarini@nuim.ie <mailto:Victor.Lazzarini@nuim.ie>> wrote:

        One day we’ll appear unannounced in Sweden...
        ========================
        Dr Victor Lazzarini
        Dean of Arts, Celtic Studies and Philosophy,
        Maynooth University,
        Maynooth, Co Kildare, Ireland
        Tel: 00 353 7086936
        Fax: 00 353 1 7086952

         > On 9 Feb 2016, at 15:59, Anders Genell
        <anders.genell@gmail.com <mailto:anders.genell@gmail.com>> wrote:
         >
         > Oh, brilliant! Thanks!
         >
         > ...the amount of beer owed within the csound community is
        approaching singularity at an alarming rate. Should the
        community happen to gather in one place to settle the score, the
        mass would collapse into a black hole and we'd be all Trapped in
        Convert.
         >
         > Regards,
         > Anders
         >
         > On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh <rorywalsh@ear.ie
        <mailto:rorywalsh@ear.ie>> wrote:
         > I can put together an example for you later.
         >
         > On 9 February 2016 at 15:03, Anders Genell
        <anders.genell@gmail.com <mailto:anders.genell@gmail.com>> wrote:
         > Dear devs!
         >
         > I just browsed the csound api examples for cpp, and the
        README refers to 12 examples but there are only 6 included. What
        I really was after was an example (to send to some colleagues
        who, unlike me, are actually programmers) of how to use
        set/getchannels and how to use performksmps to allow
        manipulation of the data coming from these channels in their own
        software in a timely manner.
         >
         > Is there such an example?
         >
         > Regards,
         > Anders
         >
         >








Date2016-02-29 15:09
FromAnders Genell
SubjectRe: [Csnd-dev] cpp api examples
Ah! Maybe we'll just try to use the setEnv method and see how things go...
Thanks again!!

Regards,
/A

On Mon, Feb 29, 2016 at 3:58 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
You can check for the existence of the OPCODE6DIR64 variable in your system path. There are API methods called csoundSetGlobalEnv() and csoundGetGlobalEnv()

https://csound.github.io/docs/api/group__MISCELLANEOUS.html#ga0183dad9bbc4961d66a280e5292091ed

I've never used them. On Windows I just use getEnv() and setEnv(). And it's not something I've ever had to do on OSX or Linux. Alternatively you can just pass the plugin library directly to Csound in your CsOptions section using --opcode-lib=LIBNAME

On 29 February 2016 at 14:40, Anders Genell <anders.genell@gmail.com> wrote:
Brilliant, thanks!
Is there btw any way to check if OPCODE6DIR64 is already set and if not, set it to some path via the api?

Regards,
Anders

On Mon, Feb 29, 2016 at 3:22 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
You don't have to do anything special to get the OSC opcodes to work. The Csound library will search OPCODE6DIR64 on startup and load all plugin opcodes it finds. 

On 29 February 2016 at 14:02, Anders Genell <anders.genell@gmail.com> wrote:
Thank you again, Rory, for these excellent examples!
We now have something working as proof of concept.
OpenAL has a system where you queue one or (rather) several buffers for playback, attached to a 'source' that can be moved around in space. When a buffere has been processed by OpenAL it is removed from the queue, and so by asking via the OpenAL api how many buffers are still queued, and running the required number of iterations of performKsmps as soon as one buffer is found released from the queue seems to sync things up nicely.

One additional thing I'd like to ask, though. In our csd we use the OSC opcodes to receive exernal control signals. When using the csound api I suppose we need to link to the OSC opcodes somehow to get this to work. Is there a simple way to do so?



Regards,
Anders


On Tue, Feb 9, 2016 at 11:05 PM, joachim heintz <jh@joachimheintz.de> wrote:
i get the strong impression that sweden is a major candidate for one of the next csound conferences ...

        =)


On 09/02/16 18:14, Anders Genell wrote:
Should you show up in Sweden, unannounced or not, I'll make emergency
calls to

1. The department of nuclear physics at Gothenburg University.
2. My friend Nils who is an excellent homebrewer (as in beer, not the
osx kind) to comission a keg.

I am sure we can find fallout shelter for the Hawking radiation in e.g.
Norberg:

http://norbergfestival.com/archive/2015/about/the-history-of-mimer.html

Regards,
Anders

On Tue, Feb 9, 2016 at 6:02 PM, Anders Genell <anders.genell@gmail.com
<mailto:anders.genell@gmail.com>> wrote:

    -"Are you the Police?"
    -"No, ma'am. We're musicians."



    On Tue, Feb 9, 2016 at 5:30 PM, Victor Lazzarini
    <Victor.Lazzarini@nuim.ie <mailto:Victor.Lazzarini@nuim.ie>> wrote:

        One day we’ll appear unannounced in Sweden...
        ========================
        Dr Victor Lazzarini
        Dean of Arts, Celtic Studies and Philosophy,
        Maynooth University,
        Maynooth, Co Kildare, Ireland
        Tel: 00 353 7086936
        Fax: 00 353 1 7086952

         > On 9 Feb 2016, at 15:59, Anders Genell
        <anders.genell@gmail.com <mailto:anders.genell@gmail.com>> wrote:
         >
         > Oh, brilliant! Thanks!
         >
         > ...the amount of beer owed within the csound community is
        approaching singularity at an alarming rate. Should the
        community happen to gather in one place to settle the score, the
        mass would collapse into a black hole and we'd be all Trapped in
        Convert.
         >
         > Regards,
         > Anders
         >
         > On Tue, Feb 9, 2016 at 4:40 PM, Rory Walsh <rorywalsh@ear.ie
        <mailto:rorywalsh@ear.ie>> wrote:
         > I can put together an example for you later.
         >
         > On 9 February 2016 at 15:03, Anders Genell
        <anders.genell@gmail.com <mailto:anders.genell@gmail.com>> wrote:
         > Dear devs!
         >
         > I just browsed the csound api examples for cpp, and the
        README refers to 12 examples but there are only 6 included. What
        I really was after was an example (to send to some colleagues
        who, unlike me, are actually programmers) of how to use
        set/getchannels and how to use performksmps to allow
        manipulation of the data coming from these channels in their own
        software in a timely manner.
         >
         > Is there such an example?
         >
         > Regards,
         > Anders
         >
         >