| No, that seems fine. Let me see when exactly things go south..
On 29 March 2014 20:21, Victor Lazzarini wrote:
> what about a short string with the extension, does it get truncated?
> ========================
> Dr Victor Lazzarini
> Senior Lecturer
> NUI Maynooth, Ireland
> victor dot lazzarini at nuim dot ie
>
>
>
>
> On 29 Mar 2014, at 20:16, Rory Walsh wrote:
>
>> I'd say it is most definitely to do with the '.', everything works
>> fine without it. But if it was being seen as an escape sequence you
>> would think the string would truncate from there.
>>
>> On 29 March 2014 20:12, Victor Lazzarini wrote:
>>> So it must be to do with the length and the '.'. Can you have a very long filename without an extension?
>>> ========================
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> NUI Maynooth, Ireland
>>> victor dot lazzarini at nuim dot ie
>>>
>>>
>>>
>>>
>>> On 29 Mar 2014, at 19:15, Rory Walsh wrote:
>>>
>>>> It doesn't remove the .wav, it truncates the string after it. Seems to
>>>> work Ok if I use shorter strings, but hanging the length of the file
>>>> name doesn't seem to make any difference.
>>>>
>>>> On 29 March 2014 18:46, Victor Lazzarini wrote:
>>>>> It does some parsing, maybe it's getting the size of the string wrong. Did you say it removes .wav, is that so? Does it matter if the name is shorter or
>>>>> longer? Or is it anything after the dot?
>>>>> ========================
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> NUI Maynooth, Ireland
>>>>> victor dot lazzarini at nuim dot ie
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 29 Mar 2014, at 18:17, Rory Walsh wrote:
>>>>>
>>>>>> Good point. Could well be sprintfk.
>>>>>>
>>>>>> On 29 March 2014 18:15, Victor Lazzarini wrote:
>>>>>>> I wonder if that's prints or sprintf that is removing the end of the string.
>>>>>>> ========================
>>>>>>> Dr Victor Lazzarini
>>>>>>> Senior Lecturer
>>>>>>> NUI Maynooth, Ireland
>>>>>>> victor dot lazzarini at nuim dot ie
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 29 Mar 2014, at 16:55, Rory Walsh wrote:
>>>>>>>
>>>>>>>> I think Joachim mentioned something about this problem before, but you
>>>>>>>> can see from the instrument below that the prints opcode is sometimes
>>>>>>>> truncating strings. Removing the '.wav' part of the string seems to
>>>>>>>> resolve the issue.
>>>>>>>>
>>>>>>>>
>>>>>>>> instr 1
>>>>>>>> iIndex, iDestinationTableLeft, iDestinationTableRight init 0
>>>>>>>> gSfilepath strcpy
>>>>>>>> "/home/rory/sourcecode/cabbageaudio/CodeLiteCabbage/Standalone/temp.wav"
>>>>>>>>
>>>>>>>> Smsg sprintfk "\nSoundfiler %d is opening %s into function tables %d
>>>>>>>> and %d \n", iIndex,
>>>>>>>> "/home/rory/sourcecode/cabbageaudio/CodeLiteCabbage/Standalone/temp.wav",
>>>>>>>> iDestinationTableLeft, iDestinationTableRight
>>>>>>>> prints Smsg
>>>>>>>>
>>>>>>>> Smsg sprintfk "\nSoundfiler %d is opening %s into function tables %d
>>>>>>>> and %d \n", iIndex, gSfilepath, iDestinationTableLeft,
>>>>>>>> iDestinationTableRight
>>>>>>>> prints Smsg
>>>>>>>> endin
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> _______________________________________________
>>>>>>>> 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 |