Csound Csound-dev Csound-tekno Search About

[Cs-dev] quick question about plugin opcodes..

Date2014-04-01 11:00
FromRory Walsh
Subject[Cs-dev] quick question about plugin opcodes..
Is it Ok for me to call csoundInputMessage() from the control method
of an opcode? Or is this a no-no? I guess the method is only called at
the edge of each k-cycle so it's probably safe?

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-01 13:43
FromVictor Lazzarini
SubjectRe: [Cs-dev] quick question about plugin opcodes..
It’s OK. Why do you want to do that?
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 1 Apr 2014, at 11:00, Rory Walsh  wrote:

> Is it Ok for me to call csoundInputMessage() from the control method
> of an opcode? Or is this a no-no? I guess the method is only called at
> the edge of each k-cycle so it's probably safe?
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-01 13:50
FromRory Walsh
SubjectRe: [Cs-dev] quick question about plugin opcodes..
I'm just writing an opcode that will load a set of samples from a
particular directory into a bank of function tables. Working with
samples in Csound can be really tedious when you have to write out by
hand the name of each sample.

On 1 April 2014 13:43, Victor Lazzarini  wrote:
> It's OK. Why do you want to do that?
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
>
>
>
>
> On 1 Apr 2014, at 11:00, Rory Walsh  wrote:
>
>> Is it Ok for me to call csoundInputMessage() from the control method
>> of an opcode? Or is this a no-no? I guess the method is only called at
>> the edge of each k-cycle so it's probably safe?
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-01 14:00
FromVictor Lazzarini
SubjectRe: [Cs-dev] quick question about plugin opcodes..
OK. You should use the csound->InputMessage() form from Opcodes instead of the API function,
see http://csound.sourceforge.net/doc/html/structCSOUND__.html

========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 1 Apr 2014, at 13:50, Rory Walsh  wrote:

> I'm just writing an opcode that will load a set of samples from a
> particular directory into a bank of function tables. Working with
> samples in Csound can be really tedious when you have to write out by
> hand the name of each sample.
> 
> On 1 April 2014 13:43, Victor Lazzarini  wrote:
>> It's OK. Why do you want to do that?
>> ========================
>> Dr Victor Lazzarini
>> Senior Lecturer
>> NUI Maynooth, Ireland
>> victor dot lazzarini at nuim dot ie
>> 
>> 
>> 
>> 
>> On 1 Apr 2014, at 11:00, Rory Walsh  wrote:
>> 
>>> Is it Ok for me to call csoundInputMessage() from the control method
>>> of an opcode? Or is this a no-no? I guess the method is only called at
>>> the edge of each k-cycle so it's probably safe?
>>> 
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-01 14:05
FromVictor Lazzarini
SubjectRe: [Cs-dev] quick question about plugin opcodes..
Actually, I just found out that it’s not exposed there. I would say try csoundInputMessage() then, if there is a problem,
you can use csound->insert_score_event() (which will definitely work).

========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 1 Apr 2014, at 14:00, Victor Lazzarini  wrote:

> OK. You should use the csound->InputMessage() form from Opcodes instead of the API function,
> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
> 
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
> 
> 
> 
> 
> On 1 Apr 2014, at 13:50, Rory Walsh  wrote:
> 
>> I'm just writing an opcode that will load a set of samples from a
>> particular directory into a bank of function tables. Working with
>> samples in Csound can be really tedious when you have to write out by
>> hand the name of each sample.
>> 
>> On 1 April 2014 13:43, Victor Lazzarini  wrote:
>>> It's OK. Why do you want to do that?
>>> ========================
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> NUI Maynooth, Ireland
>>> victor dot lazzarini at nuim dot ie
>>> 
>>> 
>>> 
>>> 
>>> On 1 Apr 2014, at 11:00, Rory Walsh  wrote:
>>> 
>>>> Is it Ok for me to call csoundInputMessage() from the control method
>>>> of an opcode? Or is this a no-no? I guess the method is only called at
>>>> the edge of each k-cycle so it's probably safe?
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-01 14:08
FromRory Walsh
SubjectRe: [Cs-dev] quick question about plugin opcodes..
Thanks Victor. I'll take a look.

On 1 April 2014 14:05, Victor Lazzarini  wrote:
> Actually, I just found out that it's not exposed there. I would say try csoundInputMessage() then, if there is a problem,
> you can use csound->insert_score_event() (which will definitely work).
>
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
>
>
>
>
> On 1 Apr 2014, at 14:00, Victor Lazzarini  wrote:
>
>> OK. You should use the csound->InputMessage() form from Opcodes instead of the API function,
>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>
>> ========================
>> Dr Victor Lazzarini
>> Senior Lecturer
>> NUI Maynooth, Ireland
>> victor dot lazzarini at nuim dot ie
>>
>>
>>
>>
>> On 1 Apr 2014, at 13:50, Rory Walsh  wrote:
>>
>>> I'm just writing an opcode that will load a set of samples from a
>>> particular directory into a bank of function tables. Working with
>>> samples in Csound can be really tedious when you have to write out by
>>> hand the name of each sample.
>>>
>>> On 1 April 2014 13:43, Victor Lazzarini  wrote:
>>>> It's OK. Why do you want to do that?
>>>> ========================
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> NUI Maynooth, Ireland
>>>> victor dot lazzarini at nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>> On 1 Apr 2014, at 11:00, Rory Walsh  wrote:
>>>>
>>>>> Is it Ok for me to call csoundInputMessage() from the control method
>>>>> of an opcode? Or is this a no-no? I guess the method is only called at
>>>>> the edge of each k-cycle so it's probably safe?
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-01 17:38
FromRory Walsh
SubjectRe: [Cs-dev] quick question about plugin opcodes..
Can't seem to access csoundInputMessage()?

error: 'CSOUND' has no member named 'csoundInputMessage'

Seems like I should be able to no?

On 1 April 2014 14:08, Rory Walsh  wrote:
> Thanks Victor. I'll take a look.
>
> On 1 April 2014 14:05, Victor Lazzarini  wrote:
>> Actually, I just found out that it's not exposed there. I would say try csoundInputMessage() then, if there is a problem,
>> you can use csound->insert_score_event() (which will definitely work).
>>
>> ========================
>> Dr Victor Lazzarini
>> Senior Lecturer
>> NUI Maynooth, Ireland
>> victor dot lazzarini at nuim dot ie
>>
>>
>>
>>
>> On 1 Apr 2014, at 14:00, Victor Lazzarini  wrote:
>>
>>> OK. You should use the csound->InputMessage() form from Opcodes instead of the API function,
>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>
>>> ========================
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> NUI Maynooth, Ireland
>>> victor dot lazzarini at nuim dot ie
>>>
>>>
>>>
>>>
>>> On 1 Apr 2014, at 13:50, Rory Walsh  wrote:
>>>
>>>> I'm just writing an opcode that will load a set of samples from a
>>>> particular directory into a bank of function tables. Working with
>>>> samples in Csound can be really tedious when you have to write out by
>>>> hand the name of each sample.
>>>>
>>>> On 1 April 2014 13:43, Victor Lazzarini  wrote:
>>>>> It's OK. Why do you want to do that?
>>>>> ========================
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> NUI Maynooth, Ireland
>>>>> victor dot lazzarini at nuim dot ie
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 1 Apr 2014, at 11:00, Rory Walsh  wrote:
>>>>>
>>>>>> Is it Ok for me to call csoundInputMessage() from the control method
>>>>>> of an opcode? Or is this a no-no? I guess the method is only called at
>>>>>> the edge of each k-cycle so it's probably safe?
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-01 18:27
FromMichael Gogins
SubjectRe: [Cs-dev] quick question about plugin opcodes..
AttachmentsNone  None  
Are you using the C API or the C++ API?

In C: csound->InputMessage(CSOUND*, const char *message)

In C++: csound->InputMessage(const char *message)


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
Can't seem to access csoundInputMessage()?

error: 'CSOUND' has no member named 'csoundInputMessage'

Seems like I should be able to no?

On 1 April 2014 14:08, Rory Walsh <rorywalsh@ear.ie> wrote:
> Thanks Victor. I'll take a look.
>
> On 1 April 2014 14:05, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
>> Actually, I just found out that it's not exposed there. I would say try csoundInputMessage() then, if there is a problem,
>> you can use csound->insert_score_event() (which will definitely work).
>>
>> ========================
>> Dr Victor Lazzarini
>> Senior Lecturer
>> NUI Maynooth, Ireland
>> victor dot lazzarini at nuim dot ie
>>
>>
>>
>>
>> On 1 Apr 2014, at 14:00, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
>>
>>> OK. You should use the csound->InputMessage() form from Opcodes instead of the API function,
>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>
>>> ========================
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> NUI Maynooth, Ireland
>>> victor dot lazzarini at nuim dot ie
>>>
>>>
>>>
>>>
>>> On 1 Apr 2014, at 13:50, Rory Walsh <rorywalsh@ear.ie> wrote:
>>>
>>>> I'm just writing an opcode that will load a set of samples from a
>>>> particular directory into a bank of function tables. Working with
>>>> samples in Csound can be really tedious when you have to write out by
>>>> hand the name of each sample.
>>>>
>>>> On 1 April 2014 13:43, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
>>>>> It's OK. Why do you want to do that?
>>>>> ========================
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> NUI Maynooth, Ireland
>>>>> victor dot lazzarini at nuim dot ie
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 1 Apr 2014, at 11:00, Rory Walsh <rorywalsh@ear.ie> wrote:
>>>>>
>>>>>> Is it Ok for me to call csoundInputMessage() from the control method
>>>>>> of an opcode? Or is this a no-no? I guess the method is only called at
>>>>>> the edge of each k-cycle so it's probably safe?
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel


Date2014-04-01 18:31
FromVictor Lazzarini
SubjectRe: [Cs-dev] quick question about plugin opcodes..
There is no InputMessage() in CSOUND. There is the API function csoundInputMessage() or Csound::InputMessage().

In CSOUND, you have insert_score_event().

========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 1 Apr 2014, at 18:27, Michael Gogins  wrote:

> Are you using the C API or the C++ API?
> 
> In C: csound->InputMessage(CSOUND*, const char *message)
> 
> In C++: csound->InputMessage(const char *message)
> 
> 
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
> 
> 
> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
> Can't seem to access csoundInputMessage()?
> 
> error: 'CSOUND' has no member named 'csoundInputMessage'
> 
> Seems like I should be able to no?
> 
> On 1 April 2014 14:08, Rory Walsh  wrote:
> > Thanks Victor. I'll take a look.
> >
> > On 1 April 2014 14:05, Victor Lazzarini  wrote:
> >> Actually, I just found out that it's not exposed there. I would say try csoundInputMessage() then, if there is a problem,
> >> you can use csound->insert_score_event() (which will definitely work).
> >>
> >> ========================
> >> Dr Victor Lazzarini
> >> Senior Lecturer
> >> NUI Maynooth, Ireland
> >> victor dot lazzarini at nuim dot ie
> >>
> >>
> >>
> >>
> >> On 1 Apr 2014, at 14:00, Victor Lazzarini  wrote:
> >>
> >>> OK. You should use the csound->InputMessage() form from Opcodes instead of the API function,
> >>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
> >>>
> >>> ========================
> >>> Dr Victor Lazzarini
> >>> Senior Lecturer
> >>> NUI Maynooth, Ireland
> >>> victor dot lazzarini at nuim dot ie
> >>>
> >>>
> >>>
> >>>
> >>> On 1 Apr 2014, at 13:50, Rory Walsh  wrote:
> >>>
> >>>> I'm just writing an opcode that will load a set of samples from a
> >>>> particular directory into a bank of function tables. Working with
> >>>> samples in Csound can be really tedious when you have to write out by
> >>>> hand the name of each sample.
> >>>>
> >>>> On 1 April 2014 13:43, Victor Lazzarini  wrote:
> >>>>> It's OK. Why do you want to do that?
> >>>>> ========================
> >>>>> Dr Victor Lazzarini
> >>>>> Senior Lecturer
> >>>>> NUI Maynooth, Ireland
> >>>>> victor dot lazzarini at nuim dot ie
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>> On 1 Apr 2014, at 11:00, Rory Walsh  wrote:
> >>>>>
> >>>>>> Is it Ok for me to call csoundInputMessage() from the control method
> >>>>>> of an opcode? Or is this a no-no? I guess the method is only called at
> >>>>>> the edge of each k-cycle so it's probably safe?
> >>>>>>
> >>>>>> ------------------------------------------------------------------------------
> >>>>>> _______________________________________________
> >>>>>> Csound-devel mailing list
> >>>>>> Csound-devel@lists.sourceforge.net
> >>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>>>
> >>>>>
> >>>>> ------------------------------------------------------------------------------
> >>>>> _______________________________________________
> >>>>> Csound-devel mailing list
> >>>>> Csound-devel@lists.sourceforge.net
> >>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>>
> >>>> ------------------------------------------------------------------------------
> >>>> _______________________________________________
> >>>> Csound-devel mailing list
> >>>> Csound-devel@lists.sourceforge.net
> >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>>
> >>>
> >>> ------------------------------------------------------------------------------
> >>> _______________________________________________
> >>> Csound-devel mailing list
> >>> Csound-devel@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >>
> >>
> >> ------------------------------------------------------------------------------
> >> _______________________________________________
> >> Csound-devel mailing list
> >> Csound-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-01 18:40
FromRory Walsh
SubjectRe: [Cs-dev] quick question about plugin opcodes..
That's a pity. But I guess I can just look at the csoundInputMessage()
method to see how it's done.

On 1 April 2014 18:31, Victor Lazzarini  wrote:
> There is no InputMessage() in CSOUND. There is the API function csoundInputMessage() or Csound::InputMessage().
>
> In CSOUND, you have insert_score_event().
>
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
>
>
>
>
> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>
>> Are you using the C API or the C++ API?
>>
>> In C: csound->InputMessage(CSOUND*, const char *message)
>>
>> In C++: csound->InputMessage(const char *message)
>>
>>
>> -----------------------------------------------------
>> Michael Gogins
>> Irreducible Productions
>> http://michaelgogins.tumblr.com
>> Michael dot Gogins at gmail dot com
>>
>>
>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>> Can't seem to access csoundInputMessage()?
>>
>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>
>> Seems like I should be able to no?
>>
>> On 1 April 2014 14:08, Rory Walsh  wrote:
>> > Thanks Victor. I'll take a look.
>> >
>> > On 1 April 2014 14:05, Victor Lazzarini  wrote:
>> >> Actually, I just found out that it's not exposed there. I would say try csoundInputMessage() then, if there is a problem,
>> >> you can use csound->insert_score_event() (which will definitely work).
>> >>
>> >> ========================
>> >> Dr Victor Lazzarini
>> >> Senior Lecturer
>> >> NUI Maynooth, Ireland
>> >> victor dot lazzarini at nuim dot ie
>> >>
>> >>
>> >>
>> >>
>> >> On 1 Apr 2014, at 14:00, Victor Lazzarini  wrote:
>> >>
>> >>> OK. You should use the csound->InputMessage() form from Opcodes instead of the API function,
>> >>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>> >>>
>> >>> ========================
>> >>> Dr Victor Lazzarini
>> >>> Senior Lecturer
>> >>> NUI Maynooth, Ireland
>> >>> victor dot lazzarini at nuim dot ie
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> On 1 Apr 2014, at 13:50, Rory Walsh  wrote:
>> >>>
>> >>>> I'm just writing an opcode that will load a set of samples from a
>> >>>> particular directory into a bank of function tables. Working with
>> >>>> samples in Csound can be really tedious when you have to write out by
>> >>>> hand the name of each sample.
>> >>>>
>> >>>> On 1 April 2014 13:43, Victor Lazzarini  wrote:
>> >>>>> It's OK. Why do you want to do that?
>> >>>>> ========================
>> >>>>> Dr Victor Lazzarini
>> >>>>> Senior Lecturer
>> >>>>> NUI Maynooth, Ireland
>> >>>>> victor dot lazzarini at nuim dot ie
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> On 1 Apr 2014, at 11:00, Rory Walsh  wrote:
>> >>>>>
>> >>>>>> Is it Ok for me to call csoundInputMessage() from the control method
>> >>>>>> of an opcode? Or is this a no-no? I guess the method is only called at
>> >>>>>> the edge of each k-cycle so it's probably safe?
>> >>>>>>
>> >>>>>> ------------------------------------------------------------------------------
>> >>>>>> _______________________________________________
>> >>>>>> Csound-devel mailing list
>> >>>>>> Csound-devel@lists.sourceforge.net
>> >>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>>>
>> >>>>>
>> >>>>> ------------------------------------------------------------------------------
>> >>>>> _______________________________________________
>> >>>>> Csound-devel mailing list
>> >>>>> Csound-devel@lists.sourceforge.net
>> >>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>>
>> >>>> ------------------------------------------------------------------------------
>> >>>> _______________________________________________
>> >>>> Csound-devel mailing list
>> >>>> Csound-devel@lists.sourceforge.net
>> >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>
>> >>>
>> >>> ------------------------------------------------------------------------------
>> >>> _______________________________________________
>> >>> Csound-devel mailing list
>> >>> Csound-devel@lists.sourceforge.net
>> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-01 18:58
FromRory Walsh
SubjectRe: [Cs-dev] quick question about plugin opcodes..
Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
p-fields? These are all MYFLTs, how do I add a string to a p-field?
Sorry for the confusion, would be easier with InputMessage :), oh and
finally, what's the double parameter for in insert_score_event(csound,
evtblk, double)?

    EVTBLK evtblk;
    evtblk.opcod = 'f';
    evtblk.strarg =
    evtblk.p[0] =
    evtblk.p[1] =
    evtblk.p[2] =
    evtblk.p[3] =

On 1 April 2014 18:40, Rory Walsh  wrote:
> That's a pity. But I guess I can just look at the csoundInputMessage()
> method to see how it's done.
>
> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>> There is no InputMessage() in CSOUND. There is the API function csoundInputMessage() or Csound::InputMessage().
>>
>> In CSOUND, you have insert_score_event().
>>
>> ========================
>> Dr Victor Lazzarini
>> Senior Lecturer
>> NUI Maynooth, Ireland
>> victor dot lazzarini at nuim dot ie
>>
>>
>>
>>
>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>>
>>> Are you using the C API or the C++ API?
>>>
>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>
>>> In C++: csound->InputMessage(const char *message)
>>>
>>>
>>> -----------------------------------------------------
>>> Michael Gogins
>>> Irreducible Productions
>>> http://michaelgogins.tumblr.com
>>> Michael dot Gogins at gmail dot com
>>>
>>>
>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>>> Can't seem to access csoundInputMessage()?
>>>
>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>
>>> Seems like I should be able to no?
>>>
>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>>> > Thanks Victor. I'll take a look.
>>> >
>>> > On 1 April 2014 14:05, Victor Lazzarini  wrote:
>>> >> Actually, I just found out that it's not exposed there. I would say try csoundInputMessage() then, if there is a problem,
>>> >> you can use csound->insert_score_event() (which will definitely work).
>>> >>
>>> >> ========================
>>> >> Dr Victor Lazzarini
>>> >> Senior Lecturer
>>> >> NUI Maynooth, Ireland
>>> >> victor dot lazzarini at nuim dot ie
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> On 1 Apr 2014, at 14:00, Victor Lazzarini  wrote:
>>> >>
>>> >>> OK. You should use the csound->InputMessage() form from Opcodes instead of the API function,
>>> >>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>> >>>
>>> >>> ========================
>>> >>> Dr Victor Lazzarini
>>> >>> Senior Lecturer
>>> >>> NUI Maynooth, Ireland
>>> >>> victor dot lazzarini at nuim dot ie
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>> On 1 Apr 2014, at 13:50, Rory Walsh  wrote:
>>> >>>
>>> >>>> I'm just writing an opcode that will load a set of samples from a
>>> >>>> particular directory into a bank of function tables. Working with
>>> >>>> samples in Csound can be really tedious when you have to write out by
>>> >>>> hand the name of each sample.
>>> >>>>
>>> >>>> On 1 April 2014 13:43, Victor Lazzarini  wrote:
>>> >>>>> It's OK. Why do you want to do that?
>>> >>>>> ========================
>>> >>>>> Dr Victor Lazzarini
>>> >>>>> Senior Lecturer
>>> >>>>> NUI Maynooth, Ireland
>>> >>>>> victor dot lazzarini at nuim dot ie
>>> >>>>>
>>> >>>>>
>>> >>>>>
>>> >>>>>
>>> >>>>> On 1 Apr 2014, at 11:00, Rory Walsh  wrote:
>>> >>>>>
>>> >>>>>> Is it Ok for me to call csoundInputMessage() from the control method
>>> >>>>>> of an opcode? Or is this a no-no? I guess the method is only called at
>>> >>>>>> the edge of each k-cycle so it's probably safe?
>>> >>>>>>
>>> >>>>>> ------------------------------------------------------------------------------
>>> >>>>>> _______________________________________________
>>> >>>>>> Csound-devel mailing list
>>> >>>>>> Csound-devel@lists.sourceforge.net
>>> >>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >>>>>
>>> >>>>>
>>> >>>>> ------------------------------------------------------------------------------
>>> >>>>> _______________________________________________
>>> >>>>> Csound-devel mailing list
>>> >>>>> Csound-devel@lists.sourceforge.net
>>> >>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >>>>
>>> >>>> ------------------------------------------------------------------------------
>>> >>>> _______________________________________________
>>> >>>> Csound-devel mailing list
>>> >>>> Csound-devel@lists.sourceforge.net
>>> >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >>>
>>> >>>
>>> >>> ------------------------------------------------------------------------------
>>> >>> _______________________________________________
>>> >>> Csound-devel mailing list
>>> >>> Csound-devel@lists.sourceforge.net
>>> >>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> >>
>>> >>
>>> >> ------------------------------------------------------------------------------
>>> >> _______________________________________________
>>> >> Csound-devel mailing list
>>> >> Csound-devel@lists.sourceforge.net
>>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-01 21:01
FromVictor Lazzarini
SubjectRe: [Cs-dev] quick question about plugin opcodes..
strarg will hold the string. The double parameter is a time offset, you can just set it to 0.
On 1 Apr 2014, at 18:58, Rory Walsh wrote:

> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
> p-fields? These are all MYFLTs, how do I add a string to a p-field?
> Sorry for the confusion, would be easier with InputMessage :), oh and
> finally, what's the double parameter for in insert_score_event(csound,
> evtblk, double)?
> 
>    EVTBLK evtblk;
>    evtblk.opcod = 'f';
>    evtblk.strarg =
>    evtblk.p[0] =
>    evtblk.p[1] =
>    evtblk.p[2] =
>    evtblk.p[3] =
> 
> On 1 April 2014 18:40, Rory Walsh  wrote:
>> That's a pity. But I guess I can just look at the csoundInputMessage()
>> method to see how it's done.
>> 
>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>>> There is no InputMessage() in CSOUND. There is the API function csoundInputMessage() or Csound::InputMessage().
>>> 
>>> In CSOUND, you have insert_score_event().
>>> 
>>> ========================
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> NUI Maynooth, Ireland
>>> victor dot lazzarini at nuim dot ie
>>> 
>>> 
>>> 
>>> 
>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>>> 
>>>> Are you using the C API or the C++ API?
>>>> 
>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>> 
>>>> In C++: csound->InputMessage(const char *message)
>>>> 
>>>> 
>>>> -----------------------------------------------------
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://michaelgogins.tumblr.com
>>>> Michael dot Gogins at gmail dot com
>>>> 
>>>> 
>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>>>> Can't seem to access csoundInputMessage()?
>>>> 
>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>> 
>>>> Seems like I should be able to no?
>>>> 
>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>>>>> Thanks Victor. I'll take a look.
>>>>> 
>>>>> On 1 April 2014 14:05, Victor Lazzarini  wrote:
>>>>>> Actually, I just found out that it's not exposed there. I would say try csoundInputMessage() then, if there is a problem,
>>>>>> you can use csound->insert_score_event() (which will definitely work).
>>>>>> 
>>>>>> ========================
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> NUI Maynooth, Ireland
>>>>>> victor dot lazzarini at nuim dot ie
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini  wrote:
>>>>>> 
>>>>>>> OK. You should use the csound->InputMessage() form from Opcodes instead of the API function,
>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>>>>> 
>>>>>>> ========================
>>>>>>> Dr Victor Lazzarini
>>>>>>> Senior Lecturer
>>>>>>> NUI Maynooth, Ireland
>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> On 1 Apr 2014, at 13:50, Rory Walsh  wrote:
>>>>>>> 
>>>>>>>> I'm just writing an opcode that will load a set of samples from a
>>>>>>>> particular directory into a bank of function tables. Working with
>>>>>>>> samples in Csound can be really tedious when you have to write out by
>>>>>>>> hand the name of each sample.
>>>>>>>> 
>>>>>>>> On 1 April 2014 13:43, Victor Lazzarini  wrote:
>>>>>>>>> It's OK. Why do you want to do that?
>>>>>>>>> ========================
>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>> Senior Lecturer
>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> On 1 Apr 2014, at 11:00, Rory Walsh  wrote:
>>>>>>>>> 
>>>>>>>>>> Is it Ok for me to call csoundInputMessage() from the control method
>>>>>>>>>> of an opcode? Or is this a no-no? I guess the method is only called at
>>>>>>>>>> the edge of each k-cycle so it's probably safe?
>>>>>>>>>> 
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>> 
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>> 
>>>>>>> 
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-01 21:17
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] quick question about plugin opcodes..
AttachmentsNone  

Date2014-04-01 23:36
FromRory Walsh
SubjectRe: [Cs-dev] quick question about plugin opcodes..
Thanks guys, could I have that in English please ;)  Victor first,
strarg will hold which string? First second third? Gotcha on the
double parameter. John, so NaN+n will tell me the position of the
string at index n?, where it's the nth p-field in a list of p-fields?
 Thanks as ever for the tuition.

On 1 April 2014 21:17,   wrote:
> In the case of a string the p-feld is a NaN+n where n is an index of
> the string.
> strarg ia an aray of charsor zero-terminated strings
>     ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
> ==John
>
>
> Quoting Victor Lazzarini :
>
>> strarg will hold the string. The double parameter is a time offset,
>> you can just set it to 0.
>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
>>
>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
>>> Sorry for the confusion, would be easier with InputMessage :), oh and
>>> finally, what's the double parameter for in insert_score_event(csound,
>>> evtblk, double)?
>>>
>>>    EVTBLK evtblk;
>>>    evtblk.opcod = 'f';
>>>    evtblk.strarg =
>>>    evtblk.p[0] =
>>>    evtblk.p[1] =
>>>    evtblk.p[2] =
>>>    evtblk.p[3] =
>>>
>>> On 1 April 2014 18:40, Rory Walsh  wrote:
>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
>>>> method to see how it's done.
>>>>
>>>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>>>>> There is no InputMessage() in CSOUND. There is the API function
>>>>> csoundInputMessage() or Csound::InputMessage().
>>>>>
>>>>> In CSOUND, you have insert_score_event().
>>>>>
>>>>> ========================
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> NUI Maynooth, Ireland
>>>>> victor dot lazzarini at nuim dot ie
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>>>>>
>>>>>> Are you using the C API or the C++ API?
>>>>>>
>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>>>>
>>>>>> In C++: csound->InputMessage(const char *message)
>>>>>>
>>>>>>
>>>>>> -----------------------------------------------------
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://michaelgogins.tumblr.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>>
>>>>>>
>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>>>>>> Can't seem to access csoundInputMessage()?
>>>>>>
>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>>>>
>>>>>> Seems like I should be able to no?
>>>>>>
>>>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>>>>>>> Thanks Victor. I'll take a look.
>>>>>>>
>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
>>>>>>>  wrote:
>>>>>>>> Actually, I just found out that it's not exposed there. I
>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
>>>>>>>>
>>>>>>>> ========================
>>>>>>>> Dr Victor Lazzarini
>>>>>>>> Senior Lecturer
>>>>>>>> NUI Maynooth, Ireland
>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
>>>>>>>>  wrote:
>>>>>>>>
>>>>>>>>> OK. You should use the csound->InputMessage() form from
>>>>>>>>> Opcodes instead of the API function,
>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>>>>>>>
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-02 00:35
FromVictor Lazzarini
SubjectRe: [Cs-dev] quick question about plugin opcodes..
I've put InputMessage() back into CSOUND. I don't know why it ended up being removed, you can use it now.

On 1 Apr 2014, at 23:36, Rory Walsh wrote:

> Thanks guys, could I have that in English please ;)  Victor first,
> strarg will hold which string? First second third? Gotcha on the
> double parameter. John, so NaN+n will tell me the position of the
> string at index n?, where it's the nth p-field in a list of p-fields?
> Thanks as ever for the tuition.
> 
> On 1 April 2014 21:17,   wrote:
>> In the case of a string the p-feld is a NaN+n where n is an index of
>> the string.
>> strarg ia an aray of charsor zero-terminated strings
>>    ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
>> ==John
>> 
>> 
>> Quoting Victor Lazzarini :
>> 
>>> strarg will hold the string. The double parameter is a time offset,
>>> you can just set it to 0.
>>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
>>> 
>>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
>>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
>>>> Sorry for the confusion, would be easier with InputMessage :), oh and
>>>> finally, what's the double parameter for in insert_score_event(csound,
>>>> evtblk, double)?
>>>> 
>>>>   EVTBLK evtblk;
>>>>   evtblk.opcod = 'f';
>>>>   evtblk.strarg =
>>>>   evtblk.p[0] =
>>>>   evtblk.p[1] =
>>>>   evtblk.p[2] =
>>>>   evtblk.p[3] =
>>>> 
>>>> On 1 April 2014 18:40, Rory Walsh  wrote:
>>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
>>>>> method to see how it's done.
>>>>> 
>>>>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>>>>>> There is no InputMessage() in CSOUND. There is the API function
>>>>>> csoundInputMessage() or Csound::InputMessage().
>>>>>> 
>>>>>> In CSOUND, you have insert_score_event().
>>>>>> 
>>>>>> ========================
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> NUI Maynooth, Ireland
>>>>>> victor dot lazzarini at nuim dot ie
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>>>>>> 
>>>>>>> Are you using the C API or the C++ API?
>>>>>>> 
>>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>>>>> 
>>>>>>> In C++: csound->InputMessage(const char *message)
>>>>>>> 
>>>>>>> 
>>>>>>> -----------------------------------------------------
>>>>>>> Michael Gogins
>>>>>>> Irreducible Productions
>>>>>>> http://michaelgogins.tumblr.com
>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>> 
>>>>>>> 
>>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>>>>>>> Can't seem to access csoundInputMessage()?
>>>>>>> 
>>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>>>>> 
>>>>>>> Seems like I should be able to no?
>>>>>>> 
>>>>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>>>>>>>> Thanks Victor. I'll take a look.
>>>>>>>> 
>>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
>>>>>>>>  wrote:
>>>>>>>>> Actually, I just found out that it's not exposed there. I
>>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
>>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
>>>>>>>>> 
>>>>>>>>> ========================
>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>> Senior Lecturer
>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
>>>>>>>>>  wrote:
>>>>>>>>> 
>>>>>>>>>> OK. You should use the csound->InputMessage() form from
>>>>>>>>>> Opcodes instead of the API function,
>>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>>>>>>>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-02 11:28
FromRory Walsh
SubjectRe: [Cs-dev] quick question about plugin opcodes..
AttachmentsNone  None  

Nice. That's a whole lot easier!

On 2 Apr 2014 00:36, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
I've put InputMessage() back into CSOUND. I don't know why it ended up being removed, you can use it now.

On 1 Apr 2014, at 23:36, Rory Walsh wrote:

> Thanks guys, could I have that in English please ;)  Victor first,
> strarg will hold which string? First second third? Gotcha on the
> double parameter. John, so NaN+n will tell me the position of the
> string at index n?, where it's the nth p-field in a list of p-fields?
> Thanks as ever for the tuition.
>
> On 1 April 2014 21:17,  <jpff@cs.bath.ac.uk> wrote:
>> In the case of a string the p-feld is a NaN+n where n is an index of
>> the string.
>> strarg ia an aray of charsor zero-terminated strings
>>    ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
>> ==John
>>
>>
>> Quoting Victor Lazzarini <Victor.Lazzarini@nuim.ie>:
>>
>>> strarg will hold the string. The double parameter is a time offset,
>>> you can just set it to 0.
>>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
>>>
>>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
>>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
>>>> Sorry for the confusion, would be easier with InputMessage :), oh and
>>>> finally, what's the double parameter for in insert_score_event(csound,
>>>> evtblk, double)?
>>>>
>>>>   EVTBLK evtblk;
>>>>   evtblk.opcod = 'f';
>>>>   evtblk.strarg =
>>>>   evtblk.p[0] =
>>>>   evtblk.p[1] =
>>>>   evtblk.p[2] =
>>>>   evtblk.p[3] =
>>>>
>>>> On 1 April 2014 18:40, Rory Walsh <rorywalsh@ear.ie> wrote:
>>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
>>>>> method to see how it's done.
>>>>>
>>>>> On 1 April 2014 18:31, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
>>>>>> There is no InputMessage() in CSOUND. There is the API function
>>>>>> csoundInputMessage() or Csound::InputMessage().
>>>>>>
>>>>>> In CSOUND, you have insert_score_event().
>>>>>>
>>>>>> ========================
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> NUI Maynooth, Ireland
>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 1 Apr 2014, at 18:27, Michael Gogins <michael.gogins@gmail.com> wrote:
>>>>>>
>>>>>>> Are you using the C API or the C++ API?
>>>>>>>
>>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>>>>>
>>>>>>> In C++: csound->InputMessage(const char *message)
>>>>>>>
>>>>>>>
>>>>>>> -----------------------------------------------------
>>>>>>> Michael Gogins
>>>>>>> Irreducible Productions
>>>>>>> http://michaelgogins.tumblr.com
>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>
>>>>>>>
>>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
>>>>>>> Can't seem to access csoundInputMessage()?
>>>>>>>
>>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>>>>>
>>>>>>> Seems like I should be able to no?
>>>>>>>
>>>>>>> On 1 April 2014 14:08, Rory Walsh <rorywalsh@ear.ie> wrote:
>>>>>>>> Thanks Victor. I'll take a look.
>>>>>>>>
>>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
>>>>>>>> <Victor.Lazzarini@nuim.ie> wrote:
>>>>>>>>> Actually, I just found out that it's not exposed there. I
>>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
>>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
>>>>>>>>>
>>>>>>>>> ========================
>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>> Senior Lecturer
>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
>>>>>>>>> <Victor.Lazzarini@nuim.ie> wrote:
>>>>>>>>>
>>>>>>>>>> OK. You should use the csound->InputMessage() form from
>>>>>>>>>> Opcodes instead of the API function,
>>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>>>>>>>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2014-04-02 12:44
FromVictor Lazzarini
SubjectRe: [Cs-dev] quick question about plugin opcodes..
yes, I figured that out ;)
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 2 Apr 2014, at 11:28, Rory Walsh  wrote:

> Nice. That's a whole lot easier!
> 
> 
> On 2 Apr 2014 00:36, "Victor Lazzarini"  wrote:
> I've put InputMessage() back into CSOUND. I don't know why it ended up being removed, you can use it now.
> 
> On 1 Apr 2014, at 23:36, Rory Walsh wrote:
> 
> > Thanks guys, could I have that in English please ;)  Victor first,
> > strarg will hold which string? First second third? Gotcha on the
> > double parameter. John, so NaN+n will tell me the position of the
> > string at index n?, where it's the nth p-field in a list of p-fields?
> > Thanks as ever for the tuition.
> >
> > On 1 April 2014 21:17,   wrote:
> >> In the case of a string the p-feld is a NaN+n where n is an index of
> >> the string.
> >> strarg ia an aray of charsor zero-terminated strings
> >>    ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
> >> ==John
> >>
> >>
> >> Quoting Victor Lazzarini :
> >>
> >>> strarg will hold the string. The double parameter is a time offset,
> >>> you can just set it to 0.
> >>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
> >>>
> >>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
> >>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
> >>>> Sorry for the confusion, would be easier with InputMessage :), oh and
> >>>> finally, what's the double parameter for in insert_score_event(csound,
> >>>> evtblk, double)?
> >>>>
> >>>>   EVTBLK evtblk;
> >>>>   evtblk.opcod = 'f';
> >>>>   evtblk.strarg =
> >>>>   evtblk.p[0] =
> >>>>   evtblk.p[1] =
> >>>>   evtblk.p[2] =
> >>>>   evtblk.p[3] =
> >>>>
> >>>> On 1 April 2014 18:40, Rory Walsh  wrote:
> >>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
> >>>>> method to see how it's done.
> >>>>>
> >>>>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
> >>>>>> There is no InputMessage() in CSOUND. There is the API function
> >>>>>> csoundInputMessage() or Csound::InputMessage().
> >>>>>>
> >>>>>> In CSOUND, you have insert_score_event().
> >>>>>>
> >>>>>> ========================
> >>>>>> Dr Victor Lazzarini
> >>>>>> Senior Lecturer
> >>>>>> NUI Maynooth, Ireland
> >>>>>> victor dot lazzarini at nuim dot ie
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
> >>>>>>
> >>>>>>> Are you using the C API or the C++ API?
> >>>>>>>
> >>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
> >>>>>>>
> >>>>>>> In C++: csound->InputMessage(const char *message)
> >>>>>>>
> >>>>>>>
> >>>>>>> -----------------------------------------------------
> >>>>>>> Michael Gogins
> >>>>>>> Irreducible Productions
> >>>>>>> http://michaelgogins.tumblr.com
> >>>>>>> Michael dot Gogins at gmail dot com
> >>>>>>>
> >>>>>>>
> >>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
> >>>>>>> Can't seem to access csoundInputMessage()?
> >>>>>>>
> >>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
> >>>>>>>
> >>>>>>> Seems like I should be able to no?
> >>>>>>>
> >>>>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
> >>>>>>>> Thanks Victor. I'll take a look.
> >>>>>>>>
> >>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
> >>>>>>>>  wrote:
> >>>>>>>>> Actually, I just found out that it's not exposed there. I
> >>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
> >>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
> >>>>>>>>>
> >>>>>>>>> ========================
> >>>>>>>>> Dr Victor Lazzarini
> >>>>>>>>> Senior Lecturer
> >>>>>>>>> NUI Maynooth, Ireland
> >>>>>>>>> victor dot lazzarini at nuim dot ie
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
> >>>>>>>>>  wrote:
> >>>>>>>>>
> >>>>>>>>>> OK. You should use the csound->InputMessage() form from
> >>>>>>>>>> Opcodes instead of the API function,
> >>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
> >>>>>>>>>>
> >>
> >>
> >>
> >> ------------------------------------------------------------------------------
> >> _______________________________________________
> >> Csound-devel mailing list
> >> Csound-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
> >
> > ------------------------------------------------------------------------------
> > _______________________________________________
> > Csound-devel mailing list
> > Csound-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-02 16:03
FromRory Walsh
SubjectRe: [Cs-dev] quick question about plugin opcodes..
Great. I got this going Ok in the end. It's now pretty easy to load
all sound files in a single directory to a bank of GEN01 tables. One
can then map them to keys on a keyboard with very little code:


instr 1000
   iFirstTableNumber = 1
   iTrig = 1
   i1 ftsamplebank "/home/rory/NiMPTi/Drums1", iTrig, iFirstTableNumber, 0, 4, 1
endin

instr 1
   iTable = p4     ;p4 will be a table number which matches the MIDI key
   aOut loscil3 1, 1, iTable, 1, 0;
   outs aOut, aOut
endin


The tables can be refreshed by sending a trigger to the opcode which
means one can drop samples into a directory during performance and
update, or they can simple move to another directory. The last 3
p-fields are for skiptime, format and channel. Anything I'm missing? I
did have a file extension parameter, but I thought it would be easier
to just load any file format libsndfile can.

On 2 April 2014 12:44, Victor Lazzarini  wrote:
> yes, I figured that out ;)
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
>
>
>
>
> On 2 Apr 2014, at 11:28, Rory Walsh  wrote:
>
>> Nice. That's a whole lot easier!
>>
>>
>> On 2 Apr 2014 00:36, "Victor Lazzarini"  wrote:
>> I've put InputMessage() back into CSOUND. I don't know why it ended up being removed, you can use it now.
>>
>> On 1 Apr 2014, at 23:36, Rory Walsh wrote:
>>
>> > Thanks guys, could I have that in English please ;)  Victor first,
>> > strarg will hold which string? First second third? Gotcha on the
>> > double parameter. John, so NaN+n will tell me the position of the
>> > string at index n?, where it's the nth p-field in a list of p-fields?
>> > Thanks as ever for the tuition.
>> >
>> > On 1 April 2014 21:17,   wrote:
>> >> In the case of a string the p-feld is a NaN+n where n is an index of
>> >> the string.
>> >> strarg ia an aray of charsor zero-terminated strings
>> >>    ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
>> >> ==John
>> >>
>> >>
>> >> Quoting Victor Lazzarini :
>> >>
>> >>> strarg will hold the string. The double parameter is a time offset,
>> >>> you can just set it to 0.
>> >>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
>> >>>
>> >>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
>> >>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
>> >>>> Sorry for the confusion, would be easier with InputMessage :), oh and
>> >>>> finally, what's the double parameter for in insert_score_event(csound,
>> >>>> evtblk, double)?
>> >>>>
>> >>>>   EVTBLK evtblk;
>> >>>>   evtblk.opcod = 'f';
>> >>>>   evtblk.strarg =
>> >>>>   evtblk.p[0] =
>> >>>>   evtblk.p[1] =
>> >>>>   evtblk.p[2] =
>> >>>>   evtblk.p[3] =
>> >>>>
>> >>>> On 1 April 2014 18:40, Rory Walsh  wrote:
>> >>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
>> >>>>> method to see how it's done.
>> >>>>>
>> >>>>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>> >>>>>> There is no InputMessage() in CSOUND. There is the API function
>> >>>>>> csoundInputMessage() or Csound::InputMessage().
>> >>>>>>
>> >>>>>> In CSOUND, you have insert_score_event().
>> >>>>>>
>> >>>>>> ========================
>> >>>>>> Dr Victor Lazzarini
>> >>>>>> Senior Lecturer
>> >>>>>> NUI Maynooth, Ireland
>> >>>>>> victor dot lazzarini at nuim dot ie
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>> >>>>>>
>> >>>>>>> Are you using the C API or the C++ API?
>> >>>>>>>
>> >>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>> >>>>>>>
>> >>>>>>> In C++: csound->InputMessage(const char *message)
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> -----------------------------------------------------
>> >>>>>>> Michael Gogins
>> >>>>>>> Irreducible Productions
>> >>>>>>> http://michaelgogins.tumblr.com
>> >>>>>>> Michael dot Gogins at gmail dot com
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>> >>>>>>> Can't seem to access csoundInputMessage()?
>> >>>>>>>
>> >>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>> >>>>>>>
>> >>>>>>> Seems like I should be able to no?
>> >>>>>>>
>> >>>>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>> >>>>>>>> Thanks Victor. I'll take a look.
>> >>>>>>>>
>> >>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
>> >>>>>>>>  wrote:
>> >>>>>>>>> Actually, I just found out that it's not exposed there. I
>> >>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
>> >>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
>> >>>>>>>>>
>> >>>>>>>>> ========================
>> >>>>>>>>> Dr Victor Lazzarini
>> >>>>>>>>> Senior Lecturer
>> >>>>>>>>> NUI Maynooth, Ireland
>> >>>>>>>>> victor dot lazzarini at nuim dot ie
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
>> >>>>>>>>>  wrote:
>> >>>>>>>>>
>> >>>>>>>>>> OK. You should use the csound->InputMessage() form from
>> >>>>>>>>>> Opcodes instead of the API function,
>> >>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>> >>>>>>>>>>
>> >>
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> > ------------------------------------------------------------------------------
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-02 18:11
Fromjoachim heintz
SubjectRe: [Cs-dev] quick question about plugin opcodes..
be careful rory -- if it becomes too easy you will leave the kingdom of 
csound ... =)

no, seriously: chapeau! great development.

	joachim


Am 02.04.2014 17:03, schrieb Rory Walsh:
> Great. I got this going Ok in the end. It's now pretty easy to load
> all sound files in a single directory to a bank of GEN01 tables. One
> can then map them to keys on a keyboard with very little code:
>
>
> instr 1000
>     iFirstTableNumber = 1
>     iTrig = 1
>     i1 ftsamplebank "/home/rory/NiMPTi/Drums1", iTrig, iFirstTableNumber, 0, 4, 1
> endin
>
> instr 1
>     iTable = p4     ;p4 will be a table number which matches the MIDI key
>     aOut loscil3 1, 1, iTable, 1, 0;
>     outs aOut, aOut
> endin
>
>
> The tables can be refreshed by sending a trigger to the opcode which
> means one can drop samples into a directory during performance and
> update, or they can simple move to another directory. The last 3
> p-fields are for skiptime, format and channel. Anything I'm missing? I
> did have a file extension parameter, but I thought it would be easier
> to just load any file format libsndfile can.
>
> On 2 April 2014 12:44, Victor Lazzarini  wrote:
>> yes, I figured that out ;)
>> ========================
>> Dr Victor Lazzarini
>> Senior Lecturer
>> NUI Maynooth, Ireland
>> victor dot lazzarini at nuim dot ie
>>
>>
>>
>>
>> On 2 Apr 2014, at 11:28, Rory Walsh  wrote:
>>
>>> Nice. That's a whole lot easier!
>>>
>>>
>>> On 2 Apr 2014 00:36, "Victor Lazzarini"  wrote:
>>> I've put InputMessage() back into CSOUND. I don't know why it ended up being removed, you can use it now.
>>>
>>> On 1 Apr 2014, at 23:36, Rory Walsh wrote:
>>>
>>>> Thanks guys, could I have that in English please ;)  Victor first,
>>>> strarg will hold which string? First second third? Gotcha on the
>>>> double parameter. John, so NaN+n will tell me the position of the
>>>> string at index n?, where it's the nth p-field in a list of p-fields?
>>>> Thanks as ever for the tuition.
>>>>
>>>> On 1 April 2014 21:17,   wrote:
>>>>> In the case of a string the p-feld is a NaN+n where n is an index of
>>>>> the string.
>>>>> strarg ia an aray of charsor zero-terminated strings
>>>>>     ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
>>>>> ==John
>>>>>
>>>>>
>>>>> Quoting Victor Lazzarini :
>>>>>
>>>>>> strarg will hold the string. The double parameter is a time offset,
>>>>>> you can just set it to 0.
>>>>>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
>>>>>>
>>>>>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
>>>>>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
>>>>>>> Sorry for the confusion, would be easier with InputMessage :), oh and
>>>>>>> finally, what's the double parameter for in insert_score_event(csound,
>>>>>>> evtblk, double)?
>>>>>>>
>>>>>>>    EVTBLK evtblk;
>>>>>>>    evtblk.opcod = 'f';
>>>>>>>    evtblk.strarg =
>>>>>>>    evtblk.p[0] =
>>>>>>>    evtblk.p[1] =
>>>>>>>    evtblk.p[2] =
>>>>>>>    evtblk.p[3] =
>>>>>>>
>>>>>>> On 1 April 2014 18:40, Rory Walsh  wrote:
>>>>>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
>>>>>>>> method to see how it's done.
>>>>>>>>
>>>>>>>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>>>>>>>>> There is no InputMessage() in CSOUND. There is the API function
>>>>>>>>> csoundInputMessage() or Csound::InputMessage().
>>>>>>>>>
>>>>>>>>> In CSOUND, you have insert_score_event().
>>>>>>>>>
>>>>>>>>> ========================
>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>> Senior Lecturer
>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>>>>>>>>>
>>>>>>>>>> Are you using the C API or the C++ API?
>>>>>>>>>>
>>>>>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>>>>>>>>
>>>>>>>>>> In C++: csound->InputMessage(const char *message)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>> Michael Gogins
>>>>>>>>>> Irreducible Productions
>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>>>>>>>>>> Can't seem to access csoundInputMessage()?
>>>>>>>>>>
>>>>>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>>>>>>>>
>>>>>>>>>> Seems like I should be able to no?
>>>>>>>>>>
>>>>>>>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>>>>>>>>>>> Thanks Victor. I'll take a look.
>>>>>>>>>>>
>>>>>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
>>>>>>>>>>>  wrote:
>>>>>>>>>>>> Actually, I just found out that it's not exposed there. I
>>>>>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
>>>>>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
>>>>>>>>>>>>
>>>>>>>>>>>> ========================
>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> OK. You should use the csound->InputMessage() form from
>>>>>>>>>>>>> Opcodes instead of the API function,
>>>>>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>>>>>>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-02 21:16
FromVictor Lazzarini
SubjectRe: [Cs-dev] quick question about plugin opcodes..
Is it loaded in alphabetic order?
On 2 Apr 2014, at 16:03, Rory Walsh wrote:

> Great. I got this going Ok in the end. It's now pretty easy to load
> all sound files in a single directory to a bank of GEN01 tables. One
> can then map them to keys on a keyboard with very little code:
> 
> 
> instr 1000
>   iFirstTableNumber = 1
>   iTrig = 1
>   i1 ftsamplebank "/home/rory/NiMPTi/Drums1", iTrig, iFirstTableNumber, 0, 4, 1
> endin
> 
> instr 1
>   iTable = p4     ;p4 will be a table number which matches the MIDI key
>   aOut loscil3 1, 1, iTable, 1, 0;
>   outs aOut, aOut
> endin
> 
> 
> The tables can be refreshed by sending a trigger to the opcode which
> means one can drop samples into a directory during performance and
> update, or they can simple move to another directory. The last 3
> p-fields are for skiptime, format and channel. Anything I'm missing? I
> did have a file extension parameter, but I thought it would be easier
> to just load any file format libsndfile can.
> 
> On 2 April 2014 12:44, Victor Lazzarini  wrote:
>> yes, I figured that out ;)
>> ========================
>> Dr Victor Lazzarini
>> Senior Lecturer
>> NUI Maynooth, Ireland
>> victor dot lazzarini at nuim dot ie
>> 
>> 
>> 
>> 
>> On 2 Apr 2014, at 11:28, Rory Walsh  wrote:
>> 
>>> Nice. That's a whole lot easier!
>>> 
>>> 
>>> On 2 Apr 2014 00:36, "Victor Lazzarini"  wrote:
>>> I've put InputMessage() back into CSOUND. I don't know why it ended up being removed, you can use it now.
>>> 
>>> On 1 Apr 2014, at 23:36, Rory Walsh wrote:
>>> 
>>>> Thanks guys, could I have that in English please ;)  Victor first,
>>>> strarg will hold which string? First second third? Gotcha on the
>>>> double parameter. John, so NaN+n will tell me the position of the
>>>> string at index n?, where it's the nth p-field in a list of p-fields?
>>>> Thanks as ever for the tuition.
>>>> 
>>>> On 1 April 2014 21:17,   wrote:
>>>>> In the case of a string the p-feld is a NaN+n where n is an index of
>>>>> the string.
>>>>> strarg ia an aray of charsor zero-terminated strings
>>>>>   ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
>>>>> ==John
>>>>> 
>>>>> 
>>>>> Quoting Victor Lazzarini :
>>>>> 
>>>>>> strarg will hold the string. The double parameter is a time offset,
>>>>>> you can just set it to 0.
>>>>>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
>>>>>> 
>>>>>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
>>>>>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
>>>>>>> Sorry for the confusion, would be easier with InputMessage :), oh and
>>>>>>> finally, what's the double parameter for in insert_score_event(csound,
>>>>>>> evtblk, double)?
>>>>>>> 
>>>>>>>  EVTBLK evtblk;
>>>>>>>  evtblk.opcod = 'f';
>>>>>>>  evtblk.strarg =
>>>>>>>  evtblk.p[0] =
>>>>>>>  evtblk.p[1] =
>>>>>>>  evtblk.p[2] =
>>>>>>>  evtblk.p[3] =
>>>>>>> 
>>>>>>> On 1 April 2014 18:40, Rory Walsh  wrote:
>>>>>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
>>>>>>>> method to see how it's done.
>>>>>>>> 
>>>>>>>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>>>>>>>>> There is no InputMessage() in CSOUND. There is the API function
>>>>>>>>> csoundInputMessage() or Csound::InputMessage().
>>>>>>>>> 
>>>>>>>>> In CSOUND, you have insert_score_event().
>>>>>>>>> 
>>>>>>>>> ========================
>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>> Senior Lecturer
>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>>>>>>>>> 
>>>>>>>>>> Are you using the C API or the C++ API?
>>>>>>>>>> 
>>>>>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>>>>>>>> 
>>>>>>>>>> In C++: csound->InputMessage(const char *message)
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>> Michael Gogins
>>>>>>>>>> Irreducible Productions
>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>>>>>>>>>> Can't seem to access csoundInputMessage()?
>>>>>>>>>> 
>>>>>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>>>>>>>> 
>>>>>>>>>> Seems like I should be able to no?
>>>>>>>>>> 
>>>>>>>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>>>>>>>>>>> Thanks Victor. I'll take a look.
>>>>>>>>>>> 
>>>>>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
>>>>>>>>>>>  wrote:
>>>>>>>>>>>> Actually, I just found out that it's not exposed there. I
>>>>>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
>>>>>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
>>>>>>>>>>>> 
>>>>>>>>>>>> ========================
>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
>>>>>>>>>>>>  wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>>> OK. You should use the csound->InputMessage() form from
>>>>>>>>>>>>> Opcodes instead of the API function,
>>>>>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>>>>>>>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>> 
>>> 
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-02 21:19
FromRory Walsh
SubjectRe: [Cs-dev] quick question about plugin opcodes..
Yup. Loading more than say 40 or so samples during a k-rate cycle is
not to be advised I can report. I guess that's to be expected.

On 2 April 2014 21:16, Victor Lazzarini  wrote:
> Is it loaded in alphabetic order?
> On 2 Apr 2014, at 16:03, Rory Walsh wrote:
>
>> Great. I got this going Ok in the end. It's now pretty easy to load
>> all sound files in a single directory to a bank of GEN01 tables. One
>> can then map them to keys on a keyboard with very little code:
>>
>>
>> instr 1000
>>   iFirstTableNumber = 1
>>   iTrig = 1
>>   i1 ftsamplebank "/home/rory/NiMPTi/Drums1", iTrig, iFirstTableNumber, 0, 4, 1
>> endin
>>
>> instr 1
>>   iTable = p4     ;p4 will be a table number which matches the MIDI key
>>   aOut loscil3 1, 1, iTable, 1, 0;
>>   outs aOut, aOut
>> endin
>>
>>
>> The tables can be refreshed by sending a trigger to the opcode which
>> means one can drop samples into a directory during performance and
>> update, or they can simple move to another directory. The last 3
>> p-fields are for skiptime, format and channel. Anything I'm missing? I
>> did have a file extension parameter, but I thought it would be easier
>> to just load any file format libsndfile can.
>>
>> On 2 April 2014 12:44, Victor Lazzarini  wrote:
>>> yes, I figured that out ;)
>>> ========================
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> NUI Maynooth, Ireland
>>> victor dot lazzarini at nuim dot ie
>>>
>>>
>>>
>>>
>>> On 2 Apr 2014, at 11:28, Rory Walsh  wrote:
>>>
>>>> Nice. That's a whole lot easier!
>>>>
>>>>
>>>> On 2 Apr 2014 00:36, "Victor Lazzarini"  wrote:
>>>> I've put InputMessage() back into CSOUND. I don't know why it ended up being removed, you can use it now.
>>>>
>>>> On 1 Apr 2014, at 23:36, Rory Walsh wrote:
>>>>
>>>>> Thanks guys, could I have that in English please ;)  Victor first,
>>>>> strarg will hold which string? First second third? Gotcha on the
>>>>> double parameter. John, so NaN+n will tell me the position of the
>>>>> string at index n?, where it's the nth p-field in a list of p-fields?
>>>>> Thanks as ever for the tuition.
>>>>>
>>>>> On 1 April 2014 21:17,   wrote:
>>>>>> In the case of a string the p-feld is a NaN+n where n is an index of
>>>>>> the string.
>>>>>> strarg ia an aray of charsor zero-terminated strings
>>>>>>   ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
>>>>>> ==John
>>>>>>
>>>>>>
>>>>>> Quoting Victor Lazzarini :
>>>>>>
>>>>>>> strarg will hold the string. The double parameter is a time offset,
>>>>>>> you can just set it to 0.
>>>>>>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
>>>>>>>
>>>>>>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
>>>>>>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
>>>>>>>> Sorry for the confusion, would be easier with InputMessage :), oh and
>>>>>>>> finally, what's the double parameter for in insert_score_event(csound,
>>>>>>>> evtblk, double)?
>>>>>>>>
>>>>>>>>  EVTBLK evtblk;
>>>>>>>>  evtblk.opcod = 'f';
>>>>>>>>  evtblk.strarg =
>>>>>>>>  evtblk.p[0] =
>>>>>>>>  evtblk.p[1] =
>>>>>>>>  evtblk.p[2] =
>>>>>>>>  evtblk.p[3] =
>>>>>>>>
>>>>>>>> On 1 April 2014 18:40, Rory Walsh  wrote:
>>>>>>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
>>>>>>>>> method to see how it's done.
>>>>>>>>>
>>>>>>>>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>>>>>>>>>> There is no InputMessage() in CSOUND. There is the API function
>>>>>>>>>> csoundInputMessage() or Csound::InputMessage().
>>>>>>>>>>
>>>>>>>>>> In CSOUND, you have insert_score_event().
>>>>>>>>>>
>>>>>>>>>> ========================
>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>> Senior Lecturer
>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>>>>>>>>>>
>>>>>>>>>>> Are you using the C API or the C++ API?
>>>>>>>>>>>
>>>>>>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>>>>>>>>>
>>>>>>>>>>> In C++: csound->InputMessage(const char *message)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>> Michael Gogins
>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>>>>>>>>>>> Can't seem to access csoundInputMessage()?
>>>>>>>>>>>
>>>>>>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>>>>>>>>>
>>>>>>>>>>> Seems like I should be able to no?
>>>>>>>>>>>
>>>>>>>>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>>>>>>>>>>>> Thanks Victor. I'll take a look.
>>>>>>>>>>>>
>>>>>>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>> Actually, I just found out that it's not exposed there. I
>>>>>>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
>>>>>>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
>>>>>>>>>>>>>
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> OK. You should use the csound->InputMessage() form from
>>>>>>>>>>>>>> Opcodes instead of the API function,
>>>>>>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>>>>>>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-03 07:46
FromVictor Lazzarini
SubjectRe: [Cs-dev] quick question about plugin opcodes..
Wouldn't it be better to make this opcode init-time only? That way it can load asynchronously in --realtime mode.
On 2 Apr 2014, at 21:19, Rory Walsh wrote:

> Yup. Loading more than say 40 or so samples during a k-rate cycle is
> not to be advised I can report. I guess that's to be expected.
> 
> On 2 April 2014 21:16, Victor Lazzarini  wrote:
>> Is it loaded in alphabetic order?
>> On 2 Apr 2014, at 16:03, Rory Walsh wrote:
>> 
>>> Great. I got this going Ok in the end. It's now pretty easy to load
>>> all sound files in a single directory to a bank of GEN01 tables. One
>>> can then map them to keys on a keyboard with very little code:
>>> 
>>> 
>>> instr 1000
>>>  iFirstTableNumber = 1
>>>  iTrig = 1
>>>  i1 ftsamplebank "/home/rory/NiMPTi/Drums1", iTrig, iFirstTableNumber, 0, 4, 1
>>> endin
>>> 
>>> instr 1
>>>  iTable = p4     ;p4 will be a table number which matches the MIDI key
>>>  aOut loscil3 1, 1, iTable, 1, 0;
>>>  outs aOut, aOut
>>> endin
>>> 
>>> 
>>> The tables can be refreshed by sending a trigger to the opcode which
>>> means one can drop samples into a directory during performance and
>>> update, or they can simple move to another directory. The last 3
>>> p-fields are for skiptime, format and channel. Anything I'm missing? I
>>> did have a file extension parameter, but I thought it would be easier
>>> to just load any file format libsndfile can.
>>> 
>>> On 2 April 2014 12:44, Victor Lazzarini  wrote:
>>>> yes, I figured that out ;)
>>>> ========================
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> NUI Maynooth, Ireland
>>>> victor dot lazzarini at nuim dot ie
>>>> 
>>>> 
>>>> 
>>>> 
>>>> On 2 Apr 2014, at 11:28, Rory Walsh  wrote:
>>>> 
>>>>> Nice. That's a whole lot easier!
>>>>> 
>>>>> 
>>>>> On 2 Apr 2014 00:36, "Victor Lazzarini"  wrote:
>>>>> I've put InputMessage() back into CSOUND. I don't know why it ended up being removed, you can use it now.
>>>>> 
>>>>> On 1 Apr 2014, at 23:36, Rory Walsh wrote:
>>>>> 
>>>>>> Thanks guys, could I have that in English please ;)  Victor first,
>>>>>> strarg will hold which string? First second third? Gotcha on the
>>>>>> double parameter. John, so NaN+n will tell me the position of the
>>>>>> string at index n?, where it's the nth p-field in a list of p-fields?
>>>>>> Thanks as ever for the tuition.
>>>>>> 
>>>>>> On 1 April 2014 21:17,   wrote:
>>>>>>> In the case of a string the p-feld is a NaN+n where n is an index of
>>>>>>> the string.
>>>>>>> strarg ia an aray of charsor zero-terminated strings
>>>>>>>  ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
>>>>>>> ==John
>>>>>>> 
>>>>>>> 
>>>>>>> Quoting Victor Lazzarini :
>>>>>>> 
>>>>>>>> strarg will hold the string. The double parameter is a time offset,
>>>>>>>> you can just set it to 0.
>>>>>>>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
>>>>>>>> 
>>>>>>>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
>>>>>>>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
>>>>>>>>> Sorry for the confusion, would be easier with InputMessage :), oh and
>>>>>>>>> finally, what's the double parameter for in insert_score_event(csound,
>>>>>>>>> evtblk, double)?
>>>>>>>>> 
>>>>>>>>> EVTBLK evtblk;
>>>>>>>>> evtblk.opcod = 'f';
>>>>>>>>> evtblk.strarg =
>>>>>>>>> evtblk.p[0] =
>>>>>>>>> evtblk.p[1] =
>>>>>>>>> evtblk.p[2] =
>>>>>>>>> evtblk.p[3] =
>>>>>>>>> 
>>>>>>>>> On 1 April 2014 18:40, Rory Walsh  wrote:
>>>>>>>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
>>>>>>>>>> method to see how it's done.
>>>>>>>>>> 
>>>>>>>>>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>>>>>>>>>>> There is no InputMessage() in CSOUND. There is the API function
>>>>>>>>>>> csoundInputMessage() or Csound::InputMessage().
>>>>>>>>>>> 
>>>>>>>>>>> In CSOUND, you have insert_score_event().
>>>>>>>>>>> 
>>>>>>>>>>> ========================
>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>>>>>>>>>>> 
>>>>>>>>>>>> Are you using the C API or the C++ API?
>>>>>>>>>>>> 
>>>>>>>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>>>>>>>>>> 
>>>>>>>>>>>> In C++: csound->InputMessage(const char *message)
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>>>>>>>>>>>> Can't seem to access csoundInputMessage()?
>>>>>>>>>>>> 
>>>>>>>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>>>>>>>>>> 
>>>>>>>>>>>> Seems like I should be able to no?
>>>>>>>>>>>> 
>>>>>>>>>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>>>>>>>>>>>>> Thanks Victor. I'll take a look.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>> Actually, I just found out that it's not exposed there. I
>>>>>>>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
>>>>>>>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> OK. You should use the csound->InputMessage() form from
>>>>>>>>>>>>>>> Opcodes instead of the API function,
>>>>>>>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>>>>>>>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> Dept. of Music
>>>>> NUI Maynooth Ireland
>>>>> tel.: +353 1 708 3545
>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-03 13:27
FromRory Walsh
SubjectRe: [Cs-dev] quick question about plugin opcodes..
Do tell me more. I've seen reference to '--realtime' before but don't
know much about it.

On 3 April 2014 07:46, Victor Lazzarini  wrote:
> Wouldn't it be better to make this opcode init-time only? That way it can load asynchronously in --realtime mode.
> On 2 Apr 2014, at 21:19, Rory Walsh wrote:
>
>> Yup. Loading more than say 40 or so samples during a k-rate cycle is
>> not to be advised I can report. I guess that's to be expected.
>>
>> On 2 April 2014 21:16, Victor Lazzarini  wrote:
>>> Is it loaded in alphabetic order?
>>> On 2 Apr 2014, at 16:03, Rory Walsh wrote:
>>>
>>>> Great. I got this going Ok in the end. It's now pretty easy to load
>>>> all sound files in a single directory to a bank of GEN01 tables. One
>>>> can then map them to keys on a keyboard with very little code:
>>>>
>>>>
>>>> instr 1000
>>>>  iFirstTableNumber = 1
>>>>  iTrig = 1
>>>>  i1 ftsamplebank "/home/rory/NiMPTi/Drums1", iTrig, iFirstTableNumber, 0, 4, 1
>>>> endin
>>>>
>>>> instr 1
>>>>  iTable = p4     ;p4 will be a table number which matches the MIDI key
>>>>  aOut loscil3 1, 1, iTable, 1, 0;
>>>>  outs aOut, aOut
>>>> endin
>>>>
>>>>
>>>> The tables can be refreshed by sending a trigger to the opcode which
>>>> means one can drop samples into a directory during performance and
>>>> update, or they can simple move to another directory. The last 3
>>>> p-fields are for skiptime, format and channel. Anything I'm missing? I
>>>> did have a file extension parameter, but I thought it would be easier
>>>> to just load any file format libsndfile can.
>>>>
>>>> On 2 April 2014 12:44, Victor Lazzarini  wrote:
>>>>> yes, I figured that out ;)
>>>>> ========================
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> NUI Maynooth, Ireland
>>>>> victor dot lazzarini at nuim dot ie
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 2 Apr 2014, at 11:28, Rory Walsh  wrote:
>>>>>
>>>>>> Nice. That's a whole lot easier!
>>>>>>
>>>>>>
>>>>>> On 2 Apr 2014 00:36, "Victor Lazzarini"  wrote:
>>>>>> I've put InputMessage() back into CSOUND. I don't know why it ended up being removed, you can use it now.
>>>>>>
>>>>>> On 1 Apr 2014, at 23:36, Rory Walsh wrote:
>>>>>>
>>>>>>> Thanks guys, could I have that in English please ;)  Victor first,
>>>>>>> strarg will hold which string? First second third? Gotcha on the
>>>>>>> double parameter. John, so NaN+n will tell me the position of the
>>>>>>> string at index n?, where it's the nth p-field in a list of p-fields?
>>>>>>> Thanks as ever for the tuition.
>>>>>>>
>>>>>>> On 1 April 2014 21:17,   wrote:
>>>>>>>> In the case of a string the p-feld is a NaN+n where n is an index of
>>>>>>>> the string.
>>>>>>>> strarg ia an aray of charsor zero-terminated strings
>>>>>>>>  ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
>>>>>>>> ==John
>>>>>>>>
>>>>>>>>
>>>>>>>> Quoting Victor Lazzarini :
>>>>>>>>
>>>>>>>>> strarg will hold the string. The double parameter is a time offset,
>>>>>>>>> you can just set it to 0.
>>>>>>>>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
>>>>>>>>>
>>>>>>>>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
>>>>>>>>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
>>>>>>>>>> Sorry for the confusion, would be easier with InputMessage :), oh and
>>>>>>>>>> finally, what's the double parameter for in insert_score_event(csound,
>>>>>>>>>> evtblk, double)?
>>>>>>>>>>
>>>>>>>>>> EVTBLK evtblk;
>>>>>>>>>> evtblk.opcod = 'f';
>>>>>>>>>> evtblk.strarg =
>>>>>>>>>> evtblk.p[0] =
>>>>>>>>>> evtblk.p[1] =
>>>>>>>>>> evtblk.p[2] =
>>>>>>>>>> evtblk.p[3] =
>>>>>>>>>>
>>>>>>>>>> On 1 April 2014 18:40, Rory Walsh  wrote:
>>>>>>>>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
>>>>>>>>>>> method to see how it's done.
>>>>>>>>>>>
>>>>>>>>>>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>>>>>>>>>>>> There is no InputMessage() in CSOUND. There is the API function
>>>>>>>>>>>> csoundInputMessage() or Csound::InputMessage().
>>>>>>>>>>>>
>>>>>>>>>>>> In CSOUND, you have insert_score_event().
>>>>>>>>>>>>
>>>>>>>>>>>> ========================
>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Are you using the C API or the C++ API?
>>>>>>>>>>>>>
>>>>>>>>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>>>>>>>>>>>
>>>>>>>>>>>>> In C++: csound->InputMessage(const char *message)
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>>>>>>>>>>>>> Can't seem to access csoundInputMessage()?
>>>>>>>>>>>>>
>>>>>>>>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>>>>>>>>>>>
>>>>>>>>>>>>> Seems like I should be able to no?
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>>>>>>>>>>>>>> Thanks Victor. I'll take a look.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>> Actually, I just found out that it's not exposed there. I
>>>>>>>>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
>>>>>>>>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> OK. You should use the csound->InputMessage() form from
>>>>>>>>>>>>>>>> Opcodes instead of the API function,
>>>>>>>>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>>>>>>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> Dept. of Music
>>>>>> NUI Maynooth Ireland
>>>>>> tel.: +353 1 708 3545
>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-03 13:41
FromVictor Lazzarini
SubjectRe: [Cs-dev] quick question about plugin opcodes..
in  --realtime all init-time code is executed asynchronously (among other things). So if a table is loading, performance will not have to block until it’s done.
Performance of a given instrument will only come in after all init is done. So if your opcode is init-time, you can place them in an instrument that
will load the tables asynchronously. You can put in a perf-time variable to work as flag to indicate that it’s loaded, if you need to.

(The side effect of this mode is that some instruments might start performing a kcycle late if the init is heavy. On the other hand, there will be no
break up in performance).

========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 3 Apr 2014, at 13:27, Rory Walsh  wrote:

> Do tell me more. I've seen reference to '--realtime' before but don't
> know much about it.
> 
> On 3 April 2014 07:46, Victor Lazzarini  wrote:
>> Wouldn't it be better to make this opcode init-time only? That way it can load asynchronously in --realtime mode.
>> On 2 Apr 2014, at 21:19, Rory Walsh wrote:
>> 
>>> Yup. Loading more than say 40 or so samples during a k-rate cycle is
>>> not to be advised I can report. I guess that's to be expected.
>>> 
>>> On 2 April 2014 21:16, Victor Lazzarini  wrote:
>>>> Is it loaded in alphabetic order?
>>>> On 2 Apr 2014, at 16:03, Rory Walsh wrote:
>>>> 
>>>>> Great. I got this going Ok in the end. It's now pretty easy to load
>>>>> all sound files in a single directory to a bank of GEN01 tables. One
>>>>> can then map them to keys on a keyboard with very little code:
>>>>> 
>>>>> 
>>>>> instr 1000
>>>>> iFirstTableNumber = 1
>>>>> iTrig = 1
>>>>> i1 ftsamplebank "/home/rory/NiMPTi/Drums1", iTrig, iFirstTableNumber, 0, 4, 1
>>>>> endin
>>>>> 
>>>>> instr 1
>>>>> iTable = p4     ;p4 will be a table number which matches the MIDI key
>>>>> aOut loscil3 1, 1, iTable, 1, 0;
>>>>> outs aOut, aOut
>>>>> endin
>>>>> 
>>>>> 
>>>>> The tables can be refreshed by sending a trigger to the opcode which
>>>>> means one can drop samples into a directory during performance and
>>>>> update, or they can simple move to another directory. The last 3
>>>>> p-fields are for skiptime, format and channel. Anything I'm missing? I
>>>>> did have a file extension parameter, but I thought it would be easier
>>>>> to just load any file format libsndfile can.
>>>>> 
>>>>> On 2 April 2014 12:44, Victor Lazzarini  wrote:
>>>>>> yes, I figured that out ;)
>>>>>> ========================
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> NUI Maynooth, Ireland
>>>>>> victor dot lazzarini at nuim dot ie
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On 2 Apr 2014, at 11:28, Rory Walsh  wrote:
>>>>>> 
>>>>>>> Nice. That's a whole lot easier!
>>>>>>> 
>>>>>>> 
>>>>>>> On 2 Apr 2014 00:36, "Victor Lazzarini"  wrote:
>>>>>>> I've put InputMessage() back into CSOUND. I don't know why it ended up being removed, you can use it now.
>>>>>>> 
>>>>>>> On 1 Apr 2014, at 23:36, Rory Walsh wrote:
>>>>>>> 
>>>>>>>> Thanks guys, could I have that in English please ;)  Victor first,
>>>>>>>> strarg will hold which string? First second third? Gotcha on the
>>>>>>>> double parameter. John, so NaN+n will tell me the position of the
>>>>>>>> string at index n?, where it's the nth p-field in a list of p-fields?
>>>>>>>> Thanks as ever for the tuition.
>>>>>>>> 
>>>>>>>> On 1 April 2014 21:17,   wrote:
>>>>>>>>> In the case of a string the p-feld is a NaN+n where n is an index of
>>>>>>>>> the string.
>>>>>>>>> strarg ia an aray of charsor zero-terminated strings
>>>>>>>>> ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
>>>>>>>>> ==John
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> Quoting Victor Lazzarini :
>>>>>>>>> 
>>>>>>>>>> strarg will hold the string. The double parameter is a time offset,
>>>>>>>>>> you can just set it to 0.
>>>>>>>>>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
>>>>>>>>>> 
>>>>>>>>>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
>>>>>>>>>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
>>>>>>>>>>> Sorry for the confusion, would be easier with InputMessage :), oh and
>>>>>>>>>>> finally, what's the double parameter for in insert_score_event(csound,
>>>>>>>>>>> evtblk, double)?
>>>>>>>>>>> 
>>>>>>>>>>> EVTBLK evtblk;
>>>>>>>>>>> evtblk.opcod = 'f';
>>>>>>>>>>> evtblk.strarg =
>>>>>>>>>>> evtblk.p[0] =
>>>>>>>>>>> evtblk.p[1] =
>>>>>>>>>>> evtblk.p[2] =
>>>>>>>>>>> evtblk.p[3] =
>>>>>>>>>>> 
>>>>>>>>>>> On 1 April 2014 18:40, Rory Walsh  wrote:
>>>>>>>>>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
>>>>>>>>>>>> method to see how it's done.
>>>>>>>>>>>> 
>>>>>>>>>>>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>>>>>>>>>>>>> There is no InputMessage() in CSOUND. There is the API function
>>>>>>>>>>>>> csoundInputMessage() or Csound::InputMessage().
>>>>>>>>>>>>> 
>>>>>>>>>>>>> In CSOUND, you have insert_score_event().
>>>>>>>>>>>>> 
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Are you using the C API or the C++ API?
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> In C++: csound->InputMessage(const char *message)
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>>>>>>>>>>>>>> Can't seem to access csoundInputMessage()?
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Seems like I should be able to no?
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>>>>>>>>>>>>>>> Thanks Victor. I'll take a look.
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>> Actually, I just found out that it's not exposed there. I
>>>>>>>>>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
>>>>>>>>>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> OK. You should use the csound->InputMessage() form from
>>>>>>>>>>>>>>>>> Opcodes instead of the API function,
>>>>>>>>>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>>>>>>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>> 
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>> 
>>>>>>> Dr Victor Lazzarini
>>>>>>> Senior Lecturer
>>>>>>> Dept. of Music
>>>>>>> NUI Maynooth Ireland
>>>>>>> tel.: +353 1 708 3545
>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-03 13:48
FromRory Walsh
SubjectRe: [Cs-dev] quick question about plugin opcodes..
Sounds promising. And if I call that instrument at any time later it
will still run its init code asynchronously?

On 3 April 2014 13:41, Victor Lazzarini  wrote:
> in  --realtime all init-time code is executed asynchronously (among other things). So if a table is loading, performance will not have to block until it's done.
> Performance of a given instrument will only come in after all init is done. So if your opcode is init-time, you can place them in an instrument that
> will load the tables asynchronously. You can put in a perf-time variable to work as flag to indicate that it's loaded, if you need to.
>
> (The side effect of this mode is that some instruments might start performing a kcycle late if the init is heavy. On the other hand, there will be no
> break up in performance).
>
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
>
>
>
>
> On 3 Apr 2014, at 13:27, Rory Walsh  wrote:
>
>> Do tell me more. I've seen reference to '--realtime' before but don't
>> know much about it.
>>
>> On 3 April 2014 07:46, Victor Lazzarini  wrote:
>>> Wouldn't it be better to make this opcode init-time only? That way it can load asynchronously in --realtime mode.
>>> On 2 Apr 2014, at 21:19, Rory Walsh wrote:
>>>
>>>> Yup. Loading more than say 40 or so samples during a k-rate cycle is
>>>> not to be advised I can report. I guess that's to be expected.
>>>>
>>>> On 2 April 2014 21:16, Victor Lazzarini  wrote:
>>>>> Is it loaded in alphabetic order?
>>>>> On 2 Apr 2014, at 16:03, Rory Walsh wrote:
>>>>>
>>>>>> Great. I got this going Ok in the end. It's now pretty easy to load
>>>>>> all sound files in a single directory to a bank of GEN01 tables. One
>>>>>> can then map them to keys on a keyboard with very little code:
>>>>>>
>>>>>>
>>>>>> instr 1000
>>>>>> iFirstTableNumber = 1
>>>>>> iTrig = 1
>>>>>> i1 ftsamplebank "/home/rory/NiMPTi/Drums1", iTrig, iFirstTableNumber, 0, 4, 1
>>>>>> endin
>>>>>>
>>>>>> instr 1
>>>>>> iTable = p4     ;p4 will be a table number which matches the MIDI key
>>>>>> aOut loscil3 1, 1, iTable, 1, 0;
>>>>>> outs aOut, aOut
>>>>>> endin
>>>>>>
>>>>>>
>>>>>> The tables can be refreshed by sending a trigger to the opcode which
>>>>>> means one can drop samples into a directory during performance and
>>>>>> update, or they can simple move to another directory. The last 3
>>>>>> p-fields are for skiptime, format and channel. Anything I'm missing? I
>>>>>> did have a file extension parameter, but I thought it would be easier
>>>>>> to just load any file format libsndfile can.
>>>>>>
>>>>>> On 2 April 2014 12:44, Victor Lazzarini  wrote:
>>>>>>> yes, I figured that out ;)
>>>>>>> ========================
>>>>>>> Dr Victor Lazzarini
>>>>>>> Senior Lecturer
>>>>>>> NUI Maynooth, Ireland
>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 2 Apr 2014, at 11:28, Rory Walsh  wrote:
>>>>>>>
>>>>>>>> Nice. That's a whole lot easier!
>>>>>>>>
>>>>>>>>
>>>>>>>> On 2 Apr 2014 00:36, "Victor Lazzarini"  wrote:
>>>>>>>> I've put InputMessage() back into CSOUND. I don't know why it ended up being removed, you can use it now.
>>>>>>>>
>>>>>>>> On 1 Apr 2014, at 23:36, Rory Walsh wrote:
>>>>>>>>
>>>>>>>>> Thanks guys, could I have that in English please ;)  Victor first,
>>>>>>>>> strarg will hold which string? First second third? Gotcha on the
>>>>>>>>> double parameter. John, so NaN+n will tell me the position of the
>>>>>>>>> string at index n?, where it's the nth p-field in a list of p-fields?
>>>>>>>>> Thanks as ever for the tuition.
>>>>>>>>>
>>>>>>>>> On 1 April 2014 21:17,   wrote:
>>>>>>>>>> In the case of a string the p-feld is a NaN+n where n is an index of
>>>>>>>>>> the string.
>>>>>>>>>> strarg ia an aray of charsor zero-terminated strings
>>>>>>>>>> ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
>>>>>>>>>> ==John
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Quoting Victor Lazzarini :
>>>>>>>>>>
>>>>>>>>>>> strarg will hold the string. The double parameter is a time offset,
>>>>>>>>>>> you can just set it to 0.
>>>>>>>>>>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
>>>>>>>>>>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
>>>>>>>>>>>> Sorry for the confusion, would be easier with InputMessage :), oh and
>>>>>>>>>>>> finally, what's the double parameter for in insert_score_event(csound,
>>>>>>>>>>>> evtblk, double)?
>>>>>>>>>>>>
>>>>>>>>>>>> EVTBLK evtblk;
>>>>>>>>>>>> evtblk.opcod = 'f';
>>>>>>>>>>>> evtblk.strarg =
>>>>>>>>>>>> evtblk.p[0] =
>>>>>>>>>>>> evtblk.p[1] =
>>>>>>>>>>>> evtblk.p[2] =
>>>>>>>>>>>> evtblk.p[3] =
>>>>>>>>>>>>
>>>>>>>>>>>> On 1 April 2014 18:40, Rory Walsh  wrote:
>>>>>>>>>>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
>>>>>>>>>>>>> method to see how it's done.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>>>>>>>>>>>>>> There is no InputMessage() in CSOUND. There is the API function
>>>>>>>>>>>>>> csoundInputMessage() or Csound::InputMessage().
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> In CSOUND, you have insert_score_event().
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Are you using the C API or the C++ API?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> In C++: csound->InputMessage(const char *message)
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>>>>>>>>>>>>>>> Can't seem to access csoundInputMessage()?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Seems like I should be able to no?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>>>>>>>>>>>>>>>> Thanks Victor. I'll take a look.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>> Actually, I just found out that it's not exposed there. I
>>>>>>>>>>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
>>>>>>>>>>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> OK. You should use the csound->InputMessage() form from
>>>>>>>>>>>>>>>>>> Opcodes instead of the API function,
>>>>>>>>>>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>> Dr Victor Lazzarini
>>>>>>>> Senior Lecturer
>>>>>>>> Dept. of Music
>>>>>>>> NUI Maynooth Ireland
>>>>>>>> tel.: +353 1 708 3545
>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> Dept. of Music
>>>>> NUI Maynooth Ireland
>>>>> tel.: +353 1 708 3545
>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-03 18:01
FromRory Walsh
SubjectRe: [Cs-dev] quick question about plugin opcodes..
Hi Victor. I made that opcode i-rate only but calling it at any time
during a performance result in clicks. I wonder is there anything I
can do about it. I can go back to the k-rate version and break up the
score events so that one is sent per k-cycle until they are done. I
don't need a super quick update, and no notes will be playing while
it's updating. Btw, I have a feeling that this might not be a problem
on other more powerful machines.

On 3 April 2014 13:48, Rory Walsh  wrote:
> Sounds promising. And if I call that instrument at any time later it
> will still run its init code asynchronously?
>
> On 3 April 2014 13:41, Victor Lazzarini  wrote:
>> in  --realtime all init-time code is executed asynchronously (among other things). So if a table is loading, performance will not have to block until it's done.
>> Performance of a given instrument will only come in after all init is done. So if your opcode is init-time, you can place them in an instrument that
>> will load the tables asynchronously. You can put in a perf-time variable to work as flag to indicate that it's loaded, if you need to.
>>
>> (The side effect of this mode is that some instruments might start performing a kcycle late if the init is heavy. On the other hand, there will be no
>> break up in performance).
>>
>> ========================
>> Dr Victor Lazzarini
>> Senior Lecturer
>> NUI Maynooth, Ireland
>> victor dot lazzarini at nuim dot ie
>>
>>
>>
>>
>> On 3 Apr 2014, at 13:27, Rory Walsh  wrote:
>>
>>> Do tell me more. I've seen reference to '--realtime' before but don't
>>> know much about it.
>>>
>>> On 3 April 2014 07:46, Victor Lazzarini  wrote:
>>>> Wouldn't it be better to make this opcode init-time only? That way it can load asynchronously in --realtime mode.
>>>> On 2 Apr 2014, at 21:19, Rory Walsh wrote:
>>>>
>>>>> Yup. Loading more than say 40 or so samples during a k-rate cycle is
>>>>> not to be advised I can report. I guess that's to be expected.
>>>>>
>>>>> On 2 April 2014 21:16, Victor Lazzarini  wrote:
>>>>>> Is it loaded in alphabetic order?
>>>>>> On 2 Apr 2014, at 16:03, Rory Walsh wrote:
>>>>>>
>>>>>>> Great. I got this going Ok in the end. It's now pretty easy to load
>>>>>>> all sound files in a single directory to a bank of GEN01 tables. One
>>>>>>> can then map them to keys on a keyboard with very little code:
>>>>>>>
>>>>>>>
>>>>>>> instr 1000
>>>>>>> iFirstTableNumber = 1
>>>>>>> iTrig = 1
>>>>>>> i1 ftsamplebank "/home/rory/NiMPTi/Drums1", iTrig, iFirstTableNumber, 0, 4, 1
>>>>>>> endin
>>>>>>>
>>>>>>> instr 1
>>>>>>> iTable = p4     ;p4 will be a table number which matches the MIDI key
>>>>>>> aOut loscil3 1, 1, iTable, 1, 0;
>>>>>>> outs aOut, aOut
>>>>>>> endin
>>>>>>>
>>>>>>>
>>>>>>> The tables can be refreshed by sending a trigger to the opcode which
>>>>>>> means one can drop samples into a directory during performance and
>>>>>>> update, or they can simple move to another directory. The last 3
>>>>>>> p-fields are for skiptime, format and channel. Anything I'm missing? I
>>>>>>> did have a file extension parameter, but I thought it would be easier
>>>>>>> to just load any file format libsndfile can.
>>>>>>>
>>>>>>> On 2 April 2014 12:44, Victor Lazzarini  wrote:
>>>>>>>> yes, I figured that out ;)
>>>>>>>> ========================
>>>>>>>> Dr Victor Lazzarini
>>>>>>>> Senior Lecturer
>>>>>>>> NUI Maynooth, Ireland
>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On 2 Apr 2014, at 11:28, Rory Walsh  wrote:
>>>>>>>>
>>>>>>>>> Nice. That's a whole lot easier!
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 2 Apr 2014 00:36, "Victor Lazzarini"  wrote:
>>>>>>>>> I've put InputMessage() back into CSOUND. I don't know why it ended up being removed, you can use it now.
>>>>>>>>>
>>>>>>>>> On 1 Apr 2014, at 23:36, Rory Walsh wrote:
>>>>>>>>>
>>>>>>>>>> Thanks guys, could I have that in English please ;)  Victor first,
>>>>>>>>>> strarg will hold which string? First second third? Gotcha on the
>>>>>>>>>> double parameter. John, so NaN+n will tell me the position of the
>>>>>>>>>> string at index n?, where it's the nth p-field in a list of p-fields?
>>>>>>>>>> Thanks as ever for the tuition.
>>>>>>>>>>
>>>>>>>>>> On 1 April 2014 21:17,   wrote:
>>>>>>>>>>> In the case of a string the p-feld is a NaN+n where n is an index of
>>>>>>>>>>> the string.
>>>>>>>>>>> strarg ia an aray of charsor zero-terminated strings
>>>>>>>>>>> ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
>>>>>>>>>>> ==John
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Quoting Victor Lazzarini :
>>>>>>>>>>>
>>>>>>>>>>>> strarg will hold the string. The double parameter is a time offset,
>>>>>>>>>>>> you can just set it to 0.
>>>>>>>>>>>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
>>>>>>>>>>>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
>>>>>>>>>>>>> Sorry for the confusion, would be easier with InputMessage :), oh and
>>>>>>>>>>>>> finally, what's the double parameter for in insert_score_event(csound,
>>>>>>>>>>>>> evtblk, double)?
>>>>>>>>>>>>>
>>>>>>>>>>>>> EVTBLK evtblk;
>>>>>>>>>>>>> evtblk.opcod = 'f';
>>>>>>>>>>>>> evtblk.strarg =
>>>>>>>>>>>>> evtblk.p[0] =
>>>>>>>>>>>>> evtblk.p[1] =
>>>>>>>>>>>>> evtblk.p[2] =
>>>>>>>>>>>>> evtblk.p[3] =
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 1 April 2014 18:40, Rory Walsh  wrote:
>>>>>>>>>>>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
>>>>>>>>>>>>>> method to see how it's done.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>>>>>>>>>>>>>>> There is no InputMessage() in CSOUND. There is the API function
>>>>>>>>>>>>>>> csoundInputMessage() or Csound::InputMessage().
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> In CSOUND, you have insert_score_event().
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Are you using the C API or the C++ API?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> In C++: csound->InputMessage(const char *message)
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>>>>>>>>>>>>>>>> Can't seem to access csoundInputMessage()?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Seems like I should be able to no?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>> Thanks Victor. I'll take a look.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>> Actually, I just found out that it's not exposed there. I
>>>>>>>>>>>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
>>>>>>>>>>>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
>>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> OK. You should use the csound->InputMessage() form from
>>>>>>>>>>>>>>>>>>> Opcodes instead of the API function,
>>>>>>>>>>>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>> Senior Lecturer
>>>>>>>>> Dept. of Music
>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> Dept. of Music
>>>>>> NUI Maynooth Ireland
>>>>>> tel.: +353 1 708 3545
>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-03 18:57
FromVictor Lazzarini
SubjectRe: [Cs-dev] quick question about plugin opcodes..
It shouldn't cause clicks in --realtime mode, but it might well cause clicks normally. Strange that it causes clicks at init-time and
not at perf.  

On 3 Apr 2014, at 18:01, Rory Walsh wrote:

> Hi Victor. I made that opcode i-rate only but calling it at any time
> during a performance result in clicks. I wonder is there anything I
> can do about it. I can go back to the k-rate version and break up the
> score events so that one is sent per k-cycle until they are done. I
> don't need a super quick update, and no notes will be playing while
> it's updating. Btw, I have a feeling that this might not be a problem
> on other more powerful machines.
> 
> On 3 April 2014 13:48, Rory Walsh  wrote:
>> Sounds promising. And if I call that instrument at any time later it
>> will still run its init code asynchronously?
>> 
>> On 3 April 2014 13:41, Victor Lazzarini  wrote:
>>> in  --realtime all init-time code is executed asynchronously (among other things). So if a table is loading, performance will not have to block until it's done.
>>> Performance of a given instrument will only come in after all init is done. So if your opcode is init-time, you can place them in an instrument that
>>> will load the tables asynchronously. You can put in a perf-time variable to work as flag to indicate that it's loaded, if you need to.
>>> 
>>> (The side effect of this mode is that some instruments might start performing a kcycle late if the init is heavy. On the other hand, there will be no
>>> break up in performance).
>>> 
>>> ========================
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> NUI Maynooth, Ireland
>>> victor dot lazzarini at nuim dot ie
>>> 
>>> 
>>> 
>>> 
>>> On 3 Apr 2014, at 13:27, Rory Walsh  wrote:
>>> 
>>>> Do tell me more. I've seen reference to '--realtime' before but don't
>>>> know much about it.
>>>> 
>>>> On 3 April 2014 07:46, Victor Lazzarini  wrote:
>>>>> Wouldn't it be better to make this opcode init-time only? That way it can load asynchronously in --realtime mode.
>>>>> On 2 Apr 2014, at 21:19, Rory Walsh wrote:
>>>>> 
>>>>>> Yup. Loading more than say 40 or so samples during a k-rate cycle is
>>>>>> not to be advised I can report. I guess that's to be expected.
>>>>>> 
>>>>>> On 2 April 2014 21:16, Victor Lazzarini  wrote:
>>>>>>> Is it loaded in alphabetic order?
>>>>>>> On 2 Apr 2014, at 16:03, Rory Walsh wrote:
>>>>>>> 
>>>>>>>> Great. I got this going Ok in the end. It's now pretty easy to load
>>>>>>>> all sound files in a single directory to a bank of GEN01 tables. One
>>>>>>>> can then map them to keys on a keyboard with very little code:
>>>>>>>> 
>>>>>>>> 
>>>>>>>> instr 1000
>>>>>>>> iFirstTableNumber = 1
>>>>>>>> iTrig = 1
>>>>>>>> i1 ftsamplebank "/home/rory/NiMPTi/Drums1", iTrig, iFirstTableNumber, 0, 4, 1
>>>>>>>> endin
>>>>>>>> 
>>>>>>>> instr 1
>>>>>>>> iTable = p4     ;p4 will be a table number which matches the MIDI key
>>>>>>>> aOut loscil3 1, 1, iTable, 1, 0;
>>>>>>>> outs aOut, aOut
>>>>>>>> endin
>>>>>>>> 
>>>>>>>> 
>>>>>>>> The tables can be refreshed by sending a trigger to the opcode which
>>>>>>>> means one can drop samples into a directory during performance and
>>>>>>>> update, or they can simple move to another directory. The last 3
>>>>>>>> p-fields are for skiptime, format and channel. Anything I'm missing? I
>>>>>>>> did have a file extension parameter, but I thought it would be easier
>>>>>>>> to just load any file format libsndfile can.
>>>>>>>> 
>>>>>>>> On 2 April 2014 12:44, Victor Lazzarini  wrote:
>>>>>>>>> yes, I figured that out ;)
>>>>>>>>> ========================
>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>> Senior Lecturer
>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> On 2 Apr 2014, at 11:28, Rory Walsh  wrote:
>>>>>>>>> 
>>>>>>>>>> Nice. That's a whole lot easier!
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> On 2 Apr 2014 00:36, "Victor Lazzarini"  wrote:
>>>>>>>>>> I've put InputMessage() back into CSOUND. I don't know why it ended up being removed, you can use it now.
>>>>>>>>>> 
>>>>>>>>>> On 1 Apr 2014, at 23:36, Rory Walsh wrote:
>>>>>>>>>> 
>>>>>>>>>>> Thanks guys, could I have that in English please ;)  Victor first,
>>>>>>>>>>> strarg will hold which string? First second third? Gotcha on the
>>>>>>>>>>> double parameter. John, so NaN+n will tell me the position of the
>>>>>>>>>>> string at index n?, where it's the nth p-field in a list of p-fields?
>>>>>>>>>>> Thanks as ever for the tuition.
>>>>>>>>>>> 
>>>>>>>>>>> On 1 April 2014 21:17,   wrote:
>>>>>>>>>>>> In the case of a string the p-feld is a NaN+n where n is an index of
>>>>>>>>>>>> the string.
>>>>>>>>>>>> strarg ia an aray of charsor zero-terminated strings
>>>>>>>>>>>> ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
>>>>>>>>>>>> ==John
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> Quoting Victor Lazzarini :
>>>>>>>>>>>> 
>>>>>>>>>>>>> strarg will hold the string. The double parameter is a time offset,
>>>>>>>>>>>>> you can just set it to 0.
>>>>>>>>>>>>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
>>>>>>>>>>>>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
>>>>>>>>>>>>>> Sorry for the confusion, would be easier with InputMessage :), oh and
>>>>>>>>>>>>>> finally, what's the double parameter for in insert_score_event(csound,
>>>>>>>>>>>>>> evtblk, double)?
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> EVTBLK evtblk;
>>>>>>>>>>>>>> evtblk.opcod = 'f';
>>>>>>>>>>>>>> evtblk.strarg =
>>>>>>>>>>>>>> evtblk.p[0] =
>>>>>>>>>>>>>> evtblk.p[1] =
>>>>>>>>>>>>>> evtblk.p[2] =
>>>>>>>>>>>>>> evtblk.p[3] =
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> On 1 April 2014 18:40, Rory Walsh  wrote:
>>>>>>>>>>>>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
>>>>>>>>>>>>>>> method to see how it's done.
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>>>>>>>>>>>>>>>> There is no InputMessage() in CSOUND. There is the API function
>>>>>>>>>>>>>>>> csoundInputMessage() or Csound::InputMessage().
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> In CSOUND, you have insert_score_event().
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Are you using the C API or the C++ API?
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> In C++: csound->InputMessage(const char *message)
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>> Can't seem to access csoundInputMessage()?
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Seems like I should be able to no?
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>>> Thanks Victor. I'll take a look.
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
>>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>>> Actually, I just found out that it's not exposed there. I
>>>>>>>>>>>>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
>>>>>>>>>>>>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
>>>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> OK. You should use the csound->InputMessage() form from
>>>>>>>>>>>>>>>>>>>> Opcodes instead of the API function,
>>>>>>>>>>>>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>> 
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>> 
>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>> Senior Lecturer
>>>>>>>>>> Dept. of Music
>>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>> 
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>> 
>>>>>>> Dr Victor Lazzarini
>>>>>>> Senior Lecturer
>>>>>>> Dept. of Music
>>>>>>> NUI Maynooth Ireland
>>>>>>> tel.: +353 1 708 3545
>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> Dept. of Music
>>>>> NUI Maynooth Ireland
>>>>> tel.: +353 1 708 3545
>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-03 19:07
FromRory Walsh
SubjectRe: [Cs-dev] quick question about plugin opcodes..
It causes clicks at both init-time and perf-time. I tried several
things there, including updating over a number of k-cycles but that
made it worse. I used to do a similar thing before where I would send
score statements from Cabbage between k boundaries and I don't recall
any problems. I can't seem to find out anything about --realtime, is
it in the docs?
http://www.csounds.com/manual/html/

On 3 April 2014 18:57, Victor Lazzarini  wrote:
> It shouldn't cause clicks in --realtime mode, but it might well cause clicks normally. Strange that it causes clicks at init-time and
> not at perf.
>
> On 3 Apr 2014, at 18:01, Rory Walsh wrote:
>
>> Hi Victor. I made that opcode i-rate only but calling it at any time
>> during a performance result in clicks. I wonder is there anything I
>> can do about it. I can go back to the k-rate version and break up the
>> score events so that one is sent per k-cycle until they are done. I
>> don't need a super quick update, and no notes will be playing while
>> it's updating. Btw, I have a feeling that this might not be a problem
>> on other more powerful machines.
>>
>> On 3 April 2014 13:48, Rory Walsh  wrote:
>>> Sounds promising. And if I call that instrument at any time later it
>>> will still run its init code asynchronously?
>>>
>>> On 3 April 2014 13:41, Victor Lazzarini  wrote:
>>>> in  --realtime all init-time code is executed asynchronously (among other things). So if a table is loading, performance will not have to block until it's done.
>>>> Performance of a given instrument will only come in after all init is done. So if your opcode is init-time, you can place them in an instrument that
>>>> will load the tables asynchronously. You can put in a perf-time variable to work as flag to indicate that it's loaded, if you need to.
>>>>
>>>> (The side effect of this mode is that some instruments might start performing a kcycle late if the init is heavy. On the other hand, there will be no
>>>> break up in performance).
>>>>
>>>> ========================
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> NUI Maynooth, Ireland
>>>> victor dot lazzarini at nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>> On 3 Apr 2014, at 13:27, Rory Walsh  wrote:
>>>>
>>>>> Do tell me more. I've seen reference to '--realtime' before but don't
>>>>> know much about it.
>>>>>
>>>>> On 3 April 2014 07:46, Victor Lazzarini  wrote:
>>>>>> Wouldn't it be better to make this opcode init-time only? That way it can load asynchronously in --realtime mode.
>>>>>> On 2 Apr 2014, at 21:19, Rory Walsh wrote:
>>>>>>
>>>>>>> Yup. Loading more than say 40 or so samples during a k-rate cycle is
>>>>>>> not to be advised I can report. I guess that's to be expected.
>>>>>>>
>>>>>>> On 2 April 2014 21:16, Victor Lazzarini  wrote:
>>>>>>>> Is it loaded in alphabetic order?
>>>>>>>> On 2 Apr 2014, at 16:03, Rory Walsh wrote:
>>>>>>>>
>>>>>>>>> Great. I got this going Ok in the end. It's now pretty easy to load
>>>>>>>>> all sound files in a single directory to a bank of GEN01 tables. One
>>>>>>>>> can then map them to keys on a keyboard with very little code:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> instr 1000
>>>>>>>>> iFirstTableNumber = 1
>>>>>>>>> iTrig = 1
>>>>>>>>> i1 ftsamplebank "/home/rory/NiMPTi/Drums1", iTrig, iFirstTableNumber, 0, 4, 1
>>>>>>>>> endin
>>>>>>>>>
>>>>>>>>> instr 1
>>>>>>>>> iTable = p4     ;p4 will be a table number which matches the MIDI key
>>>>>>>>> aOut loscil3 1, 1, iTable, 1, 0;
>>>>>>>>> outs aOut, aOut
>>>>>>>>> endin
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> The tables can be refreshed by sending a trigger to the opcode which
>>>>>>>>> means one can drop samples into a directory during performance and
>>>>>>>>> update, or they can simple move to another directory. The last 3
>>>>>>>>> p-fields are for skiptime, format and channel. Anything I'm missing? I
>>>>>>>>> did have a file extension parameter, but I thought it would be easier
>>>>>>>>> to just load any file format libsndfile can.
>>>>>>>>>
>>>>>>>>> On 2 April 2014 12:44, Victor Lazzarini  wrote:
>>>>>>>>>> yes, I figured that out ;)
>>>>>>>>>> ========================
>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>> Senior Lecturer
>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 2 Apr 2014, at 11:28, Rory Walsh  wrote:
>>>>>>>>>>
>>>>>>>>>>> Nice. That's a whole lot easier!
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 2 Apr 2014 00:36, "Victor Lazzarini"  wrote:
>>>>>>>>>>> I've put InputMessage() back into CSOUND. I don't know why it ended up being removed, you can use it now.
>>>>>>>>>>>
>>>>>>>>>>> On 1 Apr 2014, at 23:36, Rory Walsh wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Thanks guys, could I have that in English please ;)  Victor first,
>>>>>>>>>>>> strarg will hold which string? First second third? Gotcha on the
>>>>>>>>>>>> double parameter. John, so NaN+n will tell me the position of the
>>>>>>>>>>>> string at index n?, where it's the nth p-field in a list of p-fields?
>>>>>>>>>>>> Thanks as ever for the tuition.
>>>>>>>>>>>>
>>>>>>>>>>>> On 1 April 2014 21:17,   wrote:
>>>>>>>>>>>>> In the case of a string the p-feld is a NaN+n where n is an index of
>>>>>>>>>>>>> the string.
>>>>>>>>>>>>> strarg ia an aray of charsor zero-terminated strings
>>>>>>>>>>>>> ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
>>>>>>>>>>>>> ==John
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Quoting Victor Lazzarini :
>>>>>>>>>>>>>
>>>>>>>>>>>>>> strarg will hold the string. The double parameter is a time offset,
>>>>>>>>>>>>>> you can just set it to 0.
>>>>>>>>>>>>>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
>>>>>>>>>>>>>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
>>>>>>>>>>>>>>> Sorry for the confusion, would be easier with InputMessage :), oh and
>>>>>>>>>>>>>>> finally, what's the double parameter for in insert_score_event(csound,
>>>>>>>>>>>>>>> evtblk, double)?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> EVTBLK evtblk;
>>>>>>>>>>>>>>> evtblk.opcod = 'f';
>>>>>>>>>>>>>>> evtblk.strarg =
>>>>>>>>>>>>>>> evtblk.p[0] =
>>>>>>>>>>>>>>> evtblk.p[1] =
>>>>>>>>>>>>>>> evtblk.p[2] =
>>>>>>>>>>>>>>> evtblk.p[3] =
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 1 April 2014 18:40, Rory Walsh  wrote:
>>>>>>>>>>>>>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
>>>>>>>>>>>>>>>> method to see how it's done.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>>>>>>>>>>>>>>>>> There is no InputMessage() in CSOUND. There is the API function
>>>>>>>>>>>>>>>>> csoundInputMessage() or Csound::InputMessage().
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> In CSOUND, you have insert_score_event().
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Are you using the C API or the C++ API?
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> In C++: csound->InputMessage(const char *message)
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>>> Can't seem to access csoundInputMessage()?
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Seems like I should be able to no?
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>>>> Thanks Victor. I'll take a look.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
>>>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>>>> Actually, I just found out that it's not exposed there. I
>>>>>>>>>>>>>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
>>>>>>>>>>>>>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> OK. You should use the csound->InputMessage() form from
>>>>>>>>>>>>>>>>>>>>> Opcodes instead of the API function,
>>>>>>>>>>>>>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>> Dept. of Music
>>>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>> Dr Victor Lazzarini
>>>>>>>> Senior Lecturer
>>>>>>>> Dept. of Music
>>>>>>>> NUI Maynooth Ireland
>>>>>>>> tel.: +353 1 708 3545
>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> Dept. of Music
>>>>>> NUI Maynooth Ireland
>>>>>> tel.: +353 1 708 3545
>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-03 19:08
FromRory Walsh
SubjectRe: [Cs-dev] quick question about plugin opcodes..
Also, when I pass '--realtime' to CsOptions I don't get any indication
from Csound about it being in realtime mode?

On 3 April 2014 19:07, Rory Walsh  wrote:
> It causes clicks at both init-time and perf-time. I tried several
> things there, including updating over a number of k-cycles but that
> made it worse. I used to do a similar thing before where I would send
> score statements from Cabbage between k boundaries and I don't recall
> any problems. I can't seem to find out anything about --realtime, is
> it in the docs?
> http://www.csounds.com/manual/html/
>
> On 3 April 2014 18:57, Victor Lazzarini  wrote:
>> It shouldn't cause clicks in --realtime mode, but it might well cause clicks normally. Strange that it causes clicks at init-time and
>> not at perf.
>>
>> On 3 Apr 2014, at 18:01, Rory Walsh wrote:
>>
>>> Hi Victor. I made that opcode i-rate only but calling it at any time
>>> during a performance result in clicks. I wonder is there anything I
>>> can do about it. I can go back to the k-rate version and break up the
>>> score events so that one is sent per k-cycle until they are done. I
>>> don't need a super quick update, and no notes will be playing while
>>> it's updating. Btw, I have a feeling that this might not be a problem
>>> on other more powerful machines.
>>>
>>> On 3 April 2014 13:48, Rory Walsh  wrote:
>>>> Sounds promising. And if I call that instrument at any time later it
>>>> will still run its init code asynchronously?
>>>>
>>>> On 3 April 2014 13:41, Victor Lazzarini  wrote:
>>>>> in  --realtime all init-time code is executed asynchronously (among other things). So if a table is loading, performance will not have to block until it's done.
>>>>> Performance of a given instrument will only come in after all init is done. So if your opcode is init-time, you can place them in an instrument that
>>>>> will load the tables asynchronously. You can put in a perf-time variable to work as flag to indicate that it's loaded, if you need to.
>>>>>
>>>>> (The side effect of this mode is that some instruments might start performing a kcycle late if the init is heavy. On the other hand, there will be no
>>>>> break up in performance).
>>>>>
>>>>> ========================
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> NUI Maynooth, Ireland
>>>>> victor dot lazzarini at nuim dot ie
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 3 Apr 2014, at 13:27, Rory Walsh  wrote:
>>>>>
>>>>>> Do tell me more. I've seen reference to '--realtime' before but don't
>>>>>> know much about it.
>>>>>>
>>>>>> On 3 April 2014 07:46, Victor Lazzarini  wrote:
>>>>>>> Wouldn't it be better to make this opcode init-time only? That way it can load asynchronously in --realtime mode.
>>>>>>> On 2 Apr 2014, at 21:19, Rory Walsh wrote:
>>>>>>>
>>>>>>>> Yup. Loading more than say 40 or so samples during a k-rate cycle is
>>>>>>>> not to be advised I can report. I guess that's to be expected.
>>>>>>>>
>>>>>>>> On 2 April 2014 21:16, Victor Lazzarini  wrote:
>>>>>>>>> Is it loaded in alphabetic order?
>>>>>>>>> On 2 Apr 2014, at 16:03, Rory Walsh wrote:
>>>>>>>>>
>>>>>>>>>> Great. I got this going Ok in the end. It's now pretty easy to load
>>>>>>>>>> all sound files in a single directory to a bank of GEN01 tables. One
>>>>>>>>>> can then map them to keys on a keyboard with very little code:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> instr 1000
>>>>>>>>>> iFirstTableNumber = 1
>>>>>>>>>> iTrig = 1
>>>>>>>>>> i1 ftsamplebank "/home/rory/NiMPTi/Drums1", iTrig, iFirstTableNumber, 0, 4, 1
>>>>>>>>>> endin
>>>>>>>>>>
>>>>>>>>>> instr 1
>>>>>>>>>> iTable = p4     ;p4 will be a table number which matches the MIDI key
>>>>>>>>>> aOut loscil3 1, 1, iTable, 1, 0;
>>>>>>>>>> outs aOut, aOut
>>>>>>>>>> endin
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> The tables can be refreshed by sending a trigger to the opcode which
>>>>>>>>>> means one can drop samples into a directory during performance and
>>>>>>>>>> update, or they can simple move to another directory. The last 3
>>>>>>>>>> p-fields are for skiptime, format and channel. Anything I'm missing? I
>>>>>>>>>> did have a file extension parameter, but I thought it would be easier
>>>>>>>>>> to just load any file format libsndfile can.
>>>>>>>>>>
>>>>>>>>>> On 2 April 2014 12:44, Victor Lazzarini  wrote:
>>>>>>>>>>> yes, I figured that out ;)
>>>>>>>>>>> ========================
>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 2 Apr 2014, at 11:28, Rory Walsh  wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Nice. That's a whole lot easier!
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 2 Apr 2014 00:36, "Victor Lazzarini"  wrote:
>>>>>>>>>>>> I've put InputMessage() back into CSOUND. I don't know why it ended up being removed, you can use it now.
>>>>>>>>>>>>
>>>>>>>>>>>> On 1 Apr 2014, at 23:36, Rory Walsh wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks guys, could I have that in English please ;)  Victor first,
>>>>>>>>>>>>> strarg will hold which string? First second third? Gotcha on the
>>>>>>>>>>>>> double parameter. John, so NaN+n will tell me the position of the
>>>>>>>>>>>>> string at index n?, where it's the nth p-field in a list of p-fields?
>>>>>>>>>>>>> Thanks as ever for the tuition.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 1 April 2014 21:17,   wrote:
>>>>>>>>>>>>>> In the case of a string the p-feld is a NaN+n where n is an index of
>>>>>>>>>>>>>> the string.
>>>>>>>>>>>>>> strarg ia an aray of charsor zero-terminated strings
>>>>>>>>>>>>>> ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
>>>>>>>>>>>>>> ==John
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Quoting Victor Lazzarini :
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> strarg will hold the string. The double parameter is a time offset,
>>>>>>>>>>>>>>> you can just set it to 0.
>>>>>>>>>>>>>>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
>>>>>>>>>>>>>>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
>>>>>>>>>>>>>>>> Sorry for the confusion, would be easier with InputMessage :), oh and
>>>>>>>>>>>>>>>> finally, what's the double parameter for in insert_score_event(csound,
>>>>>>>>>>>>>>>> evtblk, double)?
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> EVTBLK evtblk;
>>>>>>>>>>>>>>>> evtblk.opcod = 'f';
>>>>>>>>>>>>>>>> evtblk.strarg =
>>>>>>>>>>>>>>>> evtblk.p[0] =
>>>>>>>>>>>>>>>> evtblk.p[1] =
>>>>>>>>>>>>>>>> evtblk.p[2] =
>>>>>>>>>>>>>>>> evtblk.p[3] =
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On 1 April 2014 18:40, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
>>>>>>>>>>>>>>>>> method to see how it's done.
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>>>>>>>>>>>>>>>>>> There is no InputMessage() in CSOUND. There is the API function
>>>>>>>>>>>>>>>>>> csoundInputMessage() or Csound::InputMessage().
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> In CSOUND, you have insert_score_event().
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Are you using the C API or the C++ API?
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> In C++: csound->InputMessage(const char *message)
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>>>> Can't seem to access csoundInputMessage()?
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> Seems like I should be able to no?
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>>>>> Thanks Victor. I'll take a look.
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>>>>> Actually, I just found out that it's not exposed there. I
>>>>>>>>>>>>>>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
>>>>>>>>>>>>>>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> OK. You should use the csound->InputMessage() form from
>>>>>>>>>>>>>>>>>>>>>> Opcodes instead of the API function,
>>>>>>>>>>>>>>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>> Dept. of Music
>>>>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>> Senior Lecturer
>>>>>>>>> Dept. of Music
>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>> Dr Victor Lazzarini
>>>>>>> Senior Lecturer
>>>>>>> Dept. of Music
>>>>>>> NUI Maynooth Ireland
>>>>>>> tel.: +353 1 708 3545
>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-03 19:11
FromRory Walsh
SubjectRe: [Cs-dev] quick question about plugin opcodes..
And finally, I suspect it's something to do with Cabbage as I have no
problems with it in plain old Csound. It might be doing a little too
much between k-cycles.

On 3 April 2014 19:08, Rory Walsh  wrote:
> Also, when I pass '--realtime' to CsOptions I don't get any indication
> from Csound about it being in realtime mode?
>
> On 3 April 2014 19:07, Rory Walsh  wrote:
>> It causes clicks at both init-time and perf-time. I tried several
>> things there, including updating over a number of k-cycles but that
>> made it worse. I used to do a similar thing before where I would send
>> score statements from Cabbage between k boundaries and I don't recall
>> any problems. I can't seem to find out anything about --realtime, is
>> it in the docs?
>> http://www.csounds.com/manual/html/
>>
>> On 3 April 2014 18:57, Victor Lazzarini  wrote:
>>> It shouldn't cause clicks in --realtime mode, but it might well cause clicks normally. Strange that it causes clicks at init-time and
>>> not at perf.
>>>
>>> On 3 Apr 2014, at 18:01, Rory Walsh wrote:
>>>
>>>> Hi Victor. I made that opcode i-rate only but calling it at any time
>>>> during a performance result in clicks. I wonder is there anything I
>>>> can do about it. I can go back to the k-rate version and break up the
>>>> score events so that one is sent per k-cycle until they are done. I
>>>> don't need a super quick update, and no notes will be playing while
>>>> it's updating. Btw, I have a feeling that this might not be a problem
>>>> on other more powerful machines.
>>>>
>>>> On 3 April 2014 13:48, Rory Walsh  wrote:
>>>>> Sounds promising. And if I call that instrument at any time later it
>>>>> will still run its init code asynchronously?
>>>>>
>>>>> On 3 April 2014 13:41, Victor Lazzarini  wrote:
>>>>>> in  --realtime all init-time code is executed asynchronously (among other things). So if a table is loading, performance will not have to block until it's done.
>>>>>> Performance of a given instrument will only come in after all init is done. So if your opcode is init-time, you can place them in an instrument that
>>>>>> will load the tables asynchronously. You can put in a perf-time variable to work as flag to indicate that it's loaded, if you need to.
>>>>>>
>>>>>> (The side effect of this mode is that some instruments might start performing a kcycle late if the init is heavy. On the other hand, there will be no
>>>>>> break up in performance).
>>>>>>
>>>>>> ========================
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> NUI Maynooth, Ireland
>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 3 Apr 2014, at 13:27, Rory Walsh  wrote:
>>>>>>
>>>>>>> Do tell me more. I've seen reference to '--realtime' before but don't
>>>>>>> know much about it.
>>>>>>>
>>>>>>> On 3 April 2014 07:46, Victor Lazzarini  wrote:
>>>>>>>> Wouldn't it be better to make this opcode init-time only? That way it can load asynchronously in --realtime mode.
>>>>>>>> On 2 Apr 2014, at 21:19, Rory Walsh wrote:
>>>>>>>>
>>>>>>>>> Yup. Loading more than say 40 or so samples during a k-rate cycle is
>>>>>>>>> not to be advised I can report. I guess that's to be expected.
>>>>>>>>>
>>>>>>>>> On 2 April 2014 21:16, Victor Lazzarini  wrote:
>>>>>>>>>> Is it loaded in alphabetic order?
>>>>>>>>>> On 2 Apr 2014, at 16:03, Rory Walsh wrote:
>>>>>>>>>>
>>>>>>>>>>> Great. I got this going Ok in the end. It's now pretty easy to load
>>>>>>>>>>> all sound files in a single directory to a bank of GEN01 tables. One
>>>>>>>>>>> can then map them to keys on a keyboard with very little code:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> instr 1000
>>>>>>>>>>> iFirstTableNumber = 1
>>>>>>>>>>> iTrig = 1
>>>>>>>>>>> i1 ftsamplebank "/home/rory/NiMPTi/Drums1", iTrig, iFirstTableNumber, 0, 4, 1
>>>>>>>>>>> endin
>>>>>>>>>>>
>>>>>>>>>>> instr 1
>>>>>>>>>>> iTable = p4     ;p4 will be a table number which matches the MIDI key
>>>>>>>>>>> aOut loscil3 1, 1, iTable, 1, 0;
>>>>>>>>>>> outs aOut, aOut
>>>>>>>>>>> endin
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> The tables can be refreshed by sending a trigger to the opcode which
>>>>>>>>>>> means one can drop samples into a directory during performance and
>>>>>>>>>>> update, or they can simple move to another directory. The last 3
>>>>>>>>>>> p-fields are for skiptime, format and channel. Anything I'm missing? I
>>>>>>>>>>> did have a file extension parameter, but I thought it would be easier
>>>>>>>>>>> to just load any file format libsndfile can.
>>>>>>>>>>>
>>>>>>>>>>> On 2 April 2014 12:44, Victor Lazzarini  wrote:
>>>>>>>>>>>> yes, I figured that out ;)
>>>>>>>>>>>> ========================
>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 2 Apr 2014, at 11:28, Rory Walsh  wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Nice. That's a whole lot easier!
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 2 Apr 2014 00:36, "Victor Lazzarini"  wrote:
>>>>>>>>>>>>> I've put InputMessage() back into CSOUND. I don't know why it ended up being removed, you can use it now.
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 1 Apr 2014, at 23:36, Rory Walsh wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thanks guys, could I have that in English please ;)  Victor first,
>>>>>>>>>>>>>> strarg will hold which string? First second third? Gotcha on the
>>>>>>>>>>>>>> double parameter. John, so NaN+n will tell me the position of the
>>>>>>>>>>>>>> string at index n?, where it's the nth p-field in a list of p-fields?
>>>>>>>>>>>>>> Thanks as ever for the tuition.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 1 April 2014 21:17,   wrote:
>>>>>>>>>>>>>>> In the case of a string the p-feld is a NaN+n where n is an index of
>>>>>>>>>>>>>>> the string.
>>>>>>>>>>>>>>> strarg ia an aray of charsor zero-terminated strings
>>>>>>>>>>>>>>> ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
>>>>>>>>>>>>>>> ==John
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Quoting Victor Lazzarini :
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> strarg will hold the string. The double parameter is a time offset,
>>>>>>>>>>>>>>>> you can just set it to 0.
>>>>>>>>>>>>>>>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
>>>>>>>>>>>>>>>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
>>>>>>>>>>>>>>>>> Sorry for the confusion, would be easier with InputMessage :), oh and
>>>>>>>>>>>>>>>>> finally, what's the double parameter for in insert_score_event(csound,
>>>>>>>>>>>>>>>>> evtblk, double)?
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> EVTBLK evtblk;
>>>>>>>>>>>>>>>>> evtblk.opcod = 'f';
>>>>>>>>>>>>>>>>> evtblk.strarg =
>>>>>>>>>>>>>>>>> evtblk.p[0] =
>>>>>>>>>>>>>>>>> evtblk.p[1] =
>>>>>>>>>>>>>>>>> evtblk.p[2] =
>>>>>>>>>>>>>>>>> evtblk.p[3] =
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> On 1 April 2014 18:40, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
>>>>>>>>>>>>>>>>>> method to see how it's done.
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>>>>>>>>>>>>>>>>>>> There is no InputMessage() in CSOUND. There is the API function
>>>>>>>>>>>>>>>>>>> csoundInputMessage() or Csound::InputMessage().
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> In CSOUND, you have insert_score_event().
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Are you using the C API or the C++ API?
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> In C++: csound->InputMessage(const char *message)
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>>>>> Can't seem to access csoundInputMessage()?
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> Seems like I should be able to no?
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>>>>>> Thanks Victor. I'll take a look.
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>>>>>> Actually, I just found out that it's not exposed there. I
>>>>>>>>>>>>>>>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
>>>>>>>>>>>>>>>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> OK. You should use the csound->InputMessage() form from
>>>>>>>>>>>>>>>>>>>>>>> Opcodes instead of the API function,
>>>>>>>>>>>>>>>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>
>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>> Dept. of Music
>>>>>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>> Senior Lecturer
>>>>>>>>>> Dept. of Music
>>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>> Dr Victor Lazzarini
>>>>>>>> Senior Lecturer
>>>>>>>> Dept. of Music
>>>>>>>> NUI Maynooth Ireland
>>>>>>>> tel.: +353 1 708 3545
>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-03 19:11
FromVictor Lazzarini
SubjectRe: [Cs-dev] quick question about plugin opcodes..
There is no such indication. It just runs like that.
On 3 Apr 2014, at 19:08, Rory Walsh wrote:

> Also, when I pass '--realtime' to CsOptions I don't get any indication
> from Csound about it being in realtime mode?
> 
> On 3 April 2014 19:07, Rory Walsh  wrote:
>> It causes clicks at both init-time and perf-time. I tried several
>> things there, including updating over a number of k-cycles but that
>> made it worse. I used to do a similar thing before where I would send
>> score statements from Cabbage between k boundaries and I don't recall
>> any problems. I can't seem to find out anything about --realtime, is
>> it in the docs?
>> http://www.csounds.com/manual/html/
>> 
>> On 3 April 2014 18:57, Victor Lazzarini  wrote:
>>> It shouldn't cause clicks in --realtime mode, but it might well cause clicks normally. Strange that it causes clicks at init-time and
>>> not at perf.
>>> 
>>> On 3 Apr 2014, at 18:01, Rory Walsh wrote:
>>> 
>>>> Hi Victor. I made that opcode i-rate only but calling it at any time
>>>> during a performance result in clicks. I wonder is there anything I
>>>> can do about it. I can go back to the k-rate version and break up the
>>>> score events so that one is sent per k-cycle until they are done. I
>>>> don't need a super quick update, and no notes will be playing while
>>>> it's updating. Btw, I have a feeling that this might not be a problem
>>>> on other more powerful machines.
>>>> 
>>>> On 3 April 2014 13:48, Rory Walsh  wrote:
>>>>> Sounds promising. And if I call that instrument at any time later it
>>>>> will still run its init code asynchronously?
>>>>> 
>>>>> On 3 April 2014 13:41, Victor Lazzarini  wrote:
>>>>>> in  --realtime all init-time code is executed asynchronously (among other things). So if a table is loading, performance will not have to block until it's done.
>>>>>> Performance of a given instrument will only come in after all init is done. So if your opcode is init-time, you can place them in an instrument that
>>>>>> will load the tables asynchronously. You can put in a perf-time variable to work as flag to indicate that it's loaded, if you need to.
>>>>>> 
>>>>>> (The side effect of this mode is that some instruments might start performing a kcycle late if the init is heavy. On the other hand, there will be no
>>>>>> break up in performance).
>>>>>> 
>>>>>> ========================
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> NUI Maynooth, Ireland
>>>>>> victor dot lazzarini at nuim dot ie
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On 3 Apr 2014, at 13:27, Rory Walsh  wrote:
>>>>>> 
>>>>>>> Do tell me more. I've seen reference to '--realtime' before but don't
>>>>>>> know much about it.
>>>>>>> 
>>>>>>> On 3 April 2014 07:46, Victor Lazzarini  wrote:
>>>>>>>> Wouldn't it be better to make this opcode init-time only? That way it can load asynchronously in --realtime mode.
>>>>>>>> On 2 Apr 2014, at 21:19, Rory Walsh wrote:
>>>>>>>> 
>>>>>>>>> Yup. Loading more than say 40 or so samples during a k-rate cycle is
>>>>>>>>> not to be advised I can report. I guess that's to be expected.
>>>>>>>>> 
>>>>>>>>> On 2 April 2014 21:16, Victor Lazzarini  wrote:
>>>>>>>>>> Is it loaded in alphabetic order?
>>>>>>>>>> On 2 Apr 2014, at 16:03, Rory Walsh wrote:
>>>>>>>>>> 
>>>>>>>>>>> Great. I got this going Ok in the end. It's now pretty easy to load
>>>>>>>>>>> all sound files in a single directory to a bank of GEN01 tables. One
>>>>>>>>>>> can then map them to keys on a keyboard with very little code:
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> instr 1000
>>>>>>>>>>> iFirstTableNumber = 1
>>>>>>>>>>> iTrig = 1
>>>>>>>>>>> i1 ftsamplebank "/home/rory/NiMPTi/Drums1", iTrig, iFirstTableNumber, 0, 4, 1
>>>>>>>>>>> endin
>>>>>>>>>>> 
>>>>>>>>>>> instr 1
>>>>>>>>>>> iTable = p4     ;p4 will be a table number which matches the MIDI key
>>>>>>>>>>> aOut loscil3 1, 1, iTable, 1, 0;
>>>>>>>>>>> outs aOut, aOut
>>>>>>>>>>> endin
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> The tables can be refreshed by sending a trigger to the opcode which
>>>>>>>>>>> means one can drop samples into a directory during performance and
>>>>>>>>>>> update, or they can simple move to another directory. The last 3
>>>>>>>>>>> p-fields are for skiptime, format and channel. Anything I'm missing? I
>>>>>>>>>>> did have a file extension parameter, but I thought it would be easier
>>>>>>>>>>> to just load any file format libsndfile can.
>>>>>>>>>>> 
>>>>>>>>>>> On 2 April 2014 12:44, Victor Lazzarini  wrote:
>>>>>>>>>>>> yes, I figured that out ;)
>>>>>>>>>>>> ========================
>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> On 2 Apr 2014, at 11:28, Rory Walsh  wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>>> Nice. That's a whole lot easier!
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> On 2 Apr 2014 00:36, "Victor Lazzarini"  wrote:
>>>>>>>>>>>>> I've put InputMessage() back into CSOUND. I don't know why it ended up being removed, you can use it now.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> On 1 Apr 2014, at 23:36, Rory Walsh wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Thanks guys, could I have that in English please ;)  Victor first,
>>>>>>>>>>>>>> strarg will hold which string? First second third? Gotcha on the
>>>>>>>>>>>>>> double parameter. John, so NaN+n will tell me the position of the
>>>>>>>>>>>>>> string at index n?, where it's the nth p-field in a list of p-fields?
>>>>>>>>>>>>>> Thanks as ever for the tuition.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> On 1 April 2014 21:17,   wrote:
>>>>>>>>>>>>>>> In the case of a string the p-feld is a NaN+n where n is an index of
>>>>>>>>>>>>>>> the string.
>>>>>>>>>>>>>>> strarg ia an aray of charsor zero-terminated strings
>>>>>>>>>>>>>>> ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
>>>>>>>>>>>>>>> ==John
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Quoting Victor Lazzarini :
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> strarg will hold the string. The double parameter is a time offset,
>>>>>>>>>>>>>>>> you can just set it to 0.
>>>>>>>>>>>>>>>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
>>>>>>>>>>>>>>>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
>>>>>>>>>>>>>>>>> Sorry for the confusion, would be easier with InputMessage :), oh and
>>>>>>>>>>>>>>>>> finally, what's the double parameter for in insert_score_event(csound,
>>>>>>>>>>>>>>>>> evtblk, double)?
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> EVTBLK evtblk;
>>>>>>>>>>>>>>>>> evtblk.opcod = 'f';
>>>>>>>>>>>>>>>>> evtblk.strarg =
>>>>>>>>>>>>>>>>> evtblk.p[0] =
>>>>>>>>>>>>>>>>> evtblk.p[1] =
>>>>>>>>>>>>>>>>> evtblk.p[2] =
>>>>>>>>>>>>>>>>> evtblk.p[3] =
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On 1 April 2014 18:40, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
>>>>>>>>>>>>>>>>>> method to see how it's done.
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>>>>>>>>>>>>>>>>>>> There is no InputMessage() in CSOUND. There is the API function
>>>>>>>>>>>>>>>>>>> csoundInputMessage() or Csound::InputMessage().
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> In CSOUND, you have insert_score_event().
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> Are you using the C API or the C++ API?
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> In C++: csound->InputMessage(const char *message)
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>>>>> Can't seem to access csoundInputMessage()?
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> Seems like I should be able to no?
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>>>>>> Thanks Victor. I'll take a look.
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>>>>>> Actually, I just found out that it's not exposed there. I
>>>>>>>>>>>>>>>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
>>>>>>>>>>>>>>>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> OK. You should use the csound->InputMessage() form from
>>>>>>>>>>>>>>>>>>>>>>> Opcodes instead of the API function,
>>>>>>>>>>>>>>>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>> Dept. of Music
>>>>>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>> 
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>> 
>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>> Senior Lecturer
>>>>>>>>>> Dept. of Music
>>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>> 
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>> 
>>>>>>>> Dr Victor Lazzarini
>>>>>>>> Senior Lecturer
>>>>>>>> Dept. of Music
>>>>>>>> NUI Maynooth Ireland
>>>>>>>> tel.: +353 1 708 3545
>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>> 
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>> 
>>> 
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-03 19:22
FromRory Walsh
SubjectRe: [Cs-dev] quick question about plugin opcodes..
Just a thought, do I have to enable realtime mode during building,
because i really don't hear any difference here.

On 3 April 2014 19:11, Victor Lazzarini  wrote:
> There is no such indication. It just runs like that.
> On 3 Apr 2014, at 19:08, Rory Walsh wrote:
>
>> Also, when I pass '--realtime' to CsOptions I don't get any indication
>> from Csound about it being in realtime mode?
>>
>> On 3 April 2014 19:07, Rory Walsh  wrote:
>>> It causes clicks at both init-time and perf-time. I tried several
>>> things there, including updating over a number of k-cycles but that
>>> made it worse. I used to do a similar thing before where I would send
>>> score statements from Cabbage between k boundaries and I don't recall
>>> any problems. I can't seem to find out anything about --realtime, is
>>> it in the docs?
>>> http://www.csounds.com/manual/html/
>>>
>>> On 3 April 2014 18:57, Victor Lazzarini  wrote:
>>>> It shouldn't cause clicks in --realtime mode, but it might well cause clicks normally. Strange that it causes clicks at init-time and
>>>> not at perf.
>>>>
>>>> On 3 Apr 2014, at 18:01, Rory Walsh wrote:
>>>>
>>>>> Hi Victor. I made that opcode i-rate only but calling it at any time
>>>>> during a performance result in clicks. I wonder is there anything I
>>>>> can do about it. I can go back to the k-rate version and break up the
>>>>> score events so that one is sent per k-cycle until they are done. I
>>>>> don't need a super quick update, and no notes will be playing while
>>>>> it's updating. Btw, I have a feeling that this might not be a problem
>>>>> on other more powerful machines.
>>>>>
>>>>> On 3 April 2014 13:48, Rory Walsh  wrote:
>>>>>> Sounds promising. And if I call that instrument at any time later it
>>>>>> will still run its init code asynchronously?
>>>>>>
>>>>>> On 3 April 2014 13:41, Victor Lazzarini  wrote:
>>>>>>> in  --realtime all init-time code is executed asynchronously (among other things). So if a table is loading, performance will not have to block until it's done.
>>>>>>> Performance of a given instrument will only come in after all init is done. So if your opcode is init-time, you can place them in an instrument that
>>>>>>> will load the tables asynchronously. You can put in a perf-time variable to work as flag to indicate that it's loaded, if you need to.
>>>>>>>
>>>>>>> (The side effect of this mode is that some instruments might start performing a kcycle late if the init is heavy. On the other hand, there will be no
>>>>>>> break up in performance).
>>>>>>>
>>>>>>> ========================
>>>>>>> Dr Victor Lazzarini
>>>>>>> Senior Lecturer
>>>>>>> NUI Maynooth, Ireland
>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 3 Apr 2014, at 13:27, Rory Walsh  wrote:
>>>>>>>
>>>>>>>> Do tell me more. I've seen reference to '--realtime' before but don't
>>>>>>>> know much about it.
>>>>>>>>
>>>>>>>> On 3 April 2014 07:46, Victor Lazzarini  wrote:
>>>>>>>>> Wouldn't it be better to make this opcode init-time only? That way it can load asynchronously in --realtime mode.
>>>>>>>>> On 2 Apr 2014, at 21:19, Rory Walsh wrote:
>>>>>>>>>
>>>>>>>>>> Yup. Loading more than say 40 or so samples during a k-rate cycle is
>>>>>>>>>> not to be advised I can report. I guess that's to be expected.
>>>>>>>>>>
>>>>>>>>>> On 2 April 2014 21:16, Victor Lazzarini  wrote:
>>>>>>>>>>> Is it loaded in alphabetic order?
>>>>>>>>>>> On 2 Apr 2014, at 16:03, Rory Walsh wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Great. I got this going Ok in the end. It's now pretty easy to load
>>>>>>>>>>>> all sound files in a single directory to a bank of GEN01 tables. One
>>>>>>>>>>>> can then map them to keys on a keyboard with very little code:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> instr 1000
>>>>>>>>>>>> iFirstTableNumber = 1
>>>>>>>>>>>> iTrig = 1
>>>>>>>>>>>> i1 ftsamplebank "/home/rory/NiMPTi/Drums1", iTrig, iFirstTableNumber, 0, 4, 1
>>>>>>>>>>>> endin
>>>>>>>>>>>>
>>>>>>>>>>>> instr 1
>>>>>>>>>>>> iTable = p4     ;p4 will be a table number which matches the MIDI key
>>>>>>>>>>>> aOut loscil3 1, 1, iTable, 1, 0;
>>>>>>>>>>>> outs aOut, aOut
>>>>>>>>>>>> endin
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> The tables can be refreshed by sending a trigger to the opcode which
>>>>>>>>>>>> means one can drop samples into a directory during performance and
>>>>>>>>>>>> update, or they can simple move to another directory. The last 3
>>>>>>>>>>>> p-fields are for skiptime, format and channel. Anything I'm missing? I
>>>>>>>>>>>> did have a file extension parameter, but I thought it would be easier
>>>>>>>>>>>> to just load any file format libsndfile can.
>>>>>>>>>>>>
>>>>>>>>>>>> On 2 April 2014 12:44, Victor Lazzarini  wrote:
>>>>>>>>>>>>> yes, I figured that out ;)
>>>>>>>>>>>>> ========================
>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 2 Apr 2014, at 11:28, Rory Walsh  wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Nice. That's a whole lot easier!
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 2 Apr 2014 00:36, "Victor Lazzarini"  wrote:
>>>>>>>>>>>>>> I've put InputMessage() back into CSOUND. I don't know why it ended up being removed, you can use it now.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 1 Apr 2014, at 23:36, Rory Walsh wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thanks guys, could I have that in English please ;)  Victor first,
>>>>>>>>>>>>>>> strarg will hold which string? First second third? Gotcha on the
>>>>>>>>>>>>>>> double parameter. John, so NaN+n will tell me the position of the
>>>>>>>>>>>>>>> string at index n?, where it's the nth p-field in a list of p-fields?
>>>>>>>>>>>>>>> Thanks as ever for the tuition.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 1 April 2014 21:17,   wrote:
>>>>>>>>>>>>>>>> In the case of a string the p-feld is a NaN+n where n is an index of
>>>>>>>>>>>>>>>> the string.
>>>>>>>>>>>>>>>> strarg ia an aray of charsor zero-terminated strings
>>>>>>>>>>>>>>>> ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
>>>>>>>>>>>>>>>> ==John
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Quoting Victor Lazzarini :
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>> strarg will hold the string. The double parameter is a time offset,
>>>>>>>>>>>>>>>>> you can just set it to 0.
>>>>>>>>>>>>>>>>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
>>>>>>>>>>>>>>>>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
>>>>>>>>>>>>>>>>>> Sorry for the confusion, would be easier with InputMessage :), oh and
>>>>>>>>>>>>>>>>>> finally, what's the double parameter for in insert_score_event(csound,
>>>>>>>>>>>>>>>>>> evtblk, double)?
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> EVTBLK evtblk;
>>>>>>>>>>>>>>>>>> evtblk.opcod = 'f';
>>>>>>>>>>>>>>>>>> evtblk.strarg =
>>>>>>>>>>>>>>>>>> evtblk.p[0] =
>>>>>>>>>>>>>>>>>> evtblk.p[1] =
>>>>>>>>>>>>>>>>>> evtblk.p[2] =
>>>>>>>>>>>>>>>>>> evtblk.p[3] =
>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>> On 1 April 2014 18:40, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
>>>>>>>>>>>>>>>>>>> method to see how it's done.
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>>>>>>>>>>>>>>>>>>>> There is no InputMessage() in CSOUND. There is the API function
>>>>>>>>>>>>>>>>>>>> csoundInputMessage() or Csound::InputMessage().
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> In CSOUND, you have insert_score_event().
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Are you using the C API or the C++ API?
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> In C++: csound->InputMessage(const char *message)
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>>>>>> Can't seem to access csoundInputMessage()?
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> Seems like I should be able to no?
>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>>>>>>> Thanks Victor. I'll take a look.
>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>>>>>>> Actually, I just found out that it's not exposed there. I
>>>>>>>>>>>>>>>>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
>>>>>>>>>>>>>>>>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>>>>>> OK. You should use the csound->InputMessage() form from
>>>>>>>>>>>>>>>>>>>>>>>> Opcodes instead of the API function,
>>>>>>>>>>>>>>>>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>> Dept. of Music
>>>>>>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>
>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>> Dept. of Music
>>>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>
>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>> Senior Lecturer
>>>>>>>>> Dept. of Music
>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2014-04-03 19:32
FromVictor Lazzarini
SubjectRe: [Cs-dev] quick question about plugin opcodes..
no, there is nothing to be enabled.
On 3 Apr 2014, at 19:22, Rory Walsh wrote:

> Just a thought, do I have to enable realtime mode during building,
> because i really don't hear any difference here.
> 
> On 3 April 2014 19:11, Victor Lazzarini  wrote:
>> There is no such indication. It just runs like that.
>> On 3 Apr 2014, at 19:08, Rory Walsh wrote:
>> 
>>> Also, when I pass '--realtime' to CsOptions I don't get any indication
>>> from Csound about it being in realtime mode?
>>> 
>>> On 3 April 2014 19:07, Rory Walsh  wrote:
>>>> It causes clicks at both init-time and perf-time. I tried several
>>>> things there, including updating over a number of k-cycles but that
>>>> made it worse. I used to do a similar thing before where I would send
>>>> score statements from Cabbage between k boundaries and I don't recall
>>>> any problems. I can't seem to find out anything about --realtime, is
>>>> it in the docs?
>>>> http://www.csounds.com/manual/html/
>>>> 
>>>> On 3 April 2014 18:57, Victor Lazzarini  wrote:
>>>>> It shouldn't cause clicks in --realtime mode, but it might well cause clicks normally. Strange that it causes clicks at init-time and
>>>>> not at perf.
>>>>> 
>>>>> On 3 Apr 2014, at 18:01, Rory Walsh wrote:
>>>>> 
>>>>>> Hi Victor. I made that opcode i-rate only but calling it at any time
>>>>>> during a performance result in clicks. I wonder is there anything I
>>>>>> can do about it. I can go back to the k-rate version and break up the
>>>>>> score events so that one is sent per k-cycle until they are done. I
>>>>>> don't need a super quick update, and no notes will be playing while
>>>>>> it's updating. Btw, I have a feeling that this might not be a problem
>>>>>> on other more powerful machines.
>>>>>> 
>>>>>> On 3 April 2014 13:48, Rory Walsh  wrote:
>>>>>>> Sounds promising. And if I call that instrument at any time later it
>>>>>>> will still run its init code asynchronously?
>>>>>>> 
>>>>>>> On 3 April 2014 13:41, Victor Lazzarini  wrote:
>>>>>>>> in  --realtime all init-time code is executed asynchronously (among other things). So if a table is loading, performance will not have to block until it's done.
>>>>>>>> Performance of a given instrument will only come in after all init is done. So if your opcode is init-time, you can place them in an instrument that
>>>>>>>> will load the tables asynchronously. You can put in a perf-time variable to work as flag to indicate that it's loaded, if you need to.
>>>>>>>> 
>>>>>>>> (The side effect of this mode is that some instruments might start performing a kcycle late if the init is heavy. On the other hand, there will be no
>>>>>>>> break up in performance).
>>>>>>>> 
>>>>>>>> ========================
>>>>>>>> Dr Victor Lazzarini
>>>>>>>> Senior Lecturer
>>>>>>>> NUI Maynooth, Ireland
>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On 3 Apr 2014, at 13:27, Rory Walsh  wrote:
>>>>>>>> 
>>>>>>>>> Do tell me more. I've seen reference to '--realtime' before but don't
>>>>>>>>> know much about it.
>>>>>>>>> 
>>>>>>>>> On 3 April 2014 07:46, Victor Lazzarini  wrote:
>>>>>>>>>> Wouldn't it be better to make this opcode init-time only? That way it can load asynchronously in --realtime mode.
>>>>>>>>>> On 2 Apr 2014, at 21:19, Rory Walsh wrote:
>>>>>>>>>> 
>>>>>>>>>>> Yup. Loading more than say 40 or so samples during a k-rate cycle is
>>>>>>>>>>> not to be advised I can report. I guess that's to be expected.
>>>>>>>>>>> 
>>>>>>>>>>> On 2 April 2014 21:16, Victor Lazzarini  wrote:
>>>>>>>>>>>> Is it loaded in alphabetic order?
>>>>>>>>>>>> On 2 Apr 2014, at 16:03, Rory Walsh wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>>> Great. I got this going Ok in the end. It's now pretty easy to load
>>>>>>>>>>>>> all sound files in a single directory to a bank of GEN01 tables. One
>>>>>>>>>>>>> can then map them to keys on a keyboard with very little code:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> instr 1000
>>>>>>>>>>>>> iFirstTableNumber = 1
>>>>>>>>>>>>> iTrig = 1
>>>>>>>>>>>>> i1 ftsamplebank "/home/rory/NiMPTi/Drums1", iTrig, iFirstTableNumber, 0, 4, 1
>>>>>>>>>>>>> endin
>>>>>>>>>>>>> 
>>>>>>>>>>>>> instr 1
>>>>>>>>>>>>> iTable = p4     ;p4 will be a table number which matches the MIDI key
>>>>>>>>>>>>> aOut loscil3 1, 1, iTable, 1, 0;
>>>>>>>>>>>>> outs aOut, aOut
>>>>>>>>>>>>> endin
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> The tables can be refreshed by sending a trigger to the opcode which
>>>>>>>>>>>>> means one can drop samples into a directory during performance and
>>>>>>>>>>>>> update, or they can simple move to another directory. The last 3
>>>>>>>>>>>>> p-fields are for skiptime, format and channel. Anything I'm missing? I
>>>>>>>>>>>>> did have a file extension parameter, but I thought it would be easier
>>>>>>>>>>>>> to just load any file format libsndfile can.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> On 2 April 2014 12:44, Victor Lazzarini  wrote:
>>>>>>>>>>>>>> yes, I figured that out ;)
>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> On 2 Apr 2014, at 11:28, Rory Walsh  wrote:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Nice. That's a whole lot easier!
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On 2 Apr 2014 00:36, "Victor Lazzarini"  wrote:
>>>>>>>>>>>>>>> I've put InputMessage() back into CSOUND. I don't know why it ended up being removed, you can use it now.
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On 1 Apr 2014, at 23:36, Rory Walsh wrote:
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> Thanks guys, could I have that in English please ;)  Victor first,
>>>>>>>>>>>>>>>> strarg will hold which string? First second third? Gotcha on the
>>>>>>>>>>>>>>>> double parameter. John, so NaN+n will tell me the position of the
>>>>>>>>>>>>>>>> string at index n?, where it's the nth p-field in a list of p-fields?
>>>>>>>>>>>>>>>> Thanks as ever for the tuition.
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> On 1 April 2014 21:17,   wrote:
>>>>>>>>>>>>>>>>> In the case of a string the p-feld is a NaN+n where n is an index of
>>>>>>>>>>>>>>>>> the string.
>>>>>>>>>>>>>>>>> strarg ia an aray of charsor zero-terminated strings
>>>>>>>>>>>>>>>>> ['a', 'b', '\0', 'c' 'd', '\0'] for two strings "ab" and "cd"
>>>>>>>>>>>>>>>>> ==John
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Quoting Victor Lazzarini :
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>> strarg will hold the string. The double parameter is a time offset,
>>>>>>>>>>>>>>>>>> you can just set it to 0.
>>>>>>>>>>>>>>>>>> On 1 Apr 2014, at 18:58, Rory Walsh wrote:
>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> Right, how do I go about filling an evtblk. Do p[0]->p[?] represent
>>>>>>>>>>>>>>>>>>> p-fields? These are all MYFLTs, how do I add a string to a p-field?
>>>>>>>>>>>>>>>>>>> Sorry for the confusion, would be easier with InputMessage :), oh and
>>>>>>>>>>>>>>>>>>> finally, what's the double parameter for in insert_score_event(csound,
>>>>>>>>>>>>>>>>>>> evtblk, double)?
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> EVTBLK evtblk;
>>>>>>>>>>>>>>>>>>> evtblk.opcod = 'f';
>>>>>>>>>>>>>>>>>>> evtblk.strarg =
>>>>>>>>>>>>>>>>>>> evtblk.p[0] =
>>>>>>>>>>>>>>>>>>> evtblk.p[1] =
>>>>>>>>>>>>>>>>>>> evtblk.p[2] =
>>>>>>>>>>>>>>>>>>> evtblk.p[3] =
>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>> On 1 April 2014 18:40, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>>>>> That's a pity. But I guess I can just look at the csoundInputMessage()
>>>>>>>>>>>>>>>>>>>> method to see how it's done.
>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>> On 1 April 2014 18:31, Victor Lazzarini  wrote:
>>>>>>>>>>>>>>>>>>>>> There is no InputMessage() in CSOUND. There is the API function
>>>>>>>>>>>>>>>>>>>>> csoundInputMessage() or Csound::InputMessage().
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> In CSOUND, you have insert_score_event().
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>> On 1 Apr 2014, at 18:27, Michael Gogins  wrote:
>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Are you using the C API or the C++ API?
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> In C: csound->InputMessage(CSOUND*, const char *message)
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> In C++: csound->InputMessage(const char *message)
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> -----------------------------------------------------
>>>>>>>>>>>>>>>>>>>>>> Michael Gogins
>>>>>>>>>>>>>>>>>>>>>> Irreducible Productions
>>>>>>>>>>>>>>>>>>>>>> http://michaelgogins.tumblr.com
>>>>>>>>>>>>>>>>>>>>>> Michael dot Gogins at gmail dot com
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> On Tue, Apr 1, 2014 at 12:38 PM, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>>>>>>> Can't seem to access csoundInputMessage()?
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> error: 'CSOUND' has no member named 'csoundInputMessage'
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> Seems like I should be able to no?
>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>> On 1 April 2014 14:08, Rory Walsh  wrote:
>>>>>>>>>>>>>>>>>>>>>>> Thanks Victor. I'll take a look.
>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>> On 1 April 2014 14:05, Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>>>>>>>> Actually, I just found out that it's not exposed there. I
>>>>>>>>>>>>>>>>>>>>>>>> would say try csoundInputMessage() then, if there is a problem,
>>>>>>>>>>>>>>>>>>>>>>>> you can use csound->insert_score_event() (which will definitely work).
>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>> ========================
>>>>>>>>>>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>>>>>>>>>>> NUI Maynooth, Ireland
>>>>>>>>>>>>>>>>>>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>> On 1 Apr 2014, at 14:00, Victor Lazzarini
>>>>>>>>>>>>>>>>>>>>>>>>  wrote:
>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>> OK. You should use the csound->InputMessage() form from
>>>>>>>>>>>>>>>>>>>>>>>>> Opcodes instead of the API function,
>>>>>>>>>>>>>>>>>>>>>>>>> see http://csound.sourceforge.net/doc/html/structCSOUND__.html
>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>>>>> Dept. of Music
>>>>>>>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>>> 
>>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>>> 
>>>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>>>> Senior Lecturer
>>>>>>>>>>>> Dept. of Music
>>>>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>>> 
>>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>>> 
>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>> Senior Lecturer
>>>>>>>>>> Dept. of Music
>>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Csound-devel mailing list
>>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>>> 
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> _______________________________________________
>>>>>>>>> Csound-devel mailing list
>>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>>> 
>>>>>>>> 
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> _______________________________________________
>>>>>>>> Csound-devel mailing list
>>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> Dept. of Music
>>>>> NUI Maynooth Ireland
>>>>> tel.: +353 1 708 3545
>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie




------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net