| 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 |