Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Sample accurate k-rate was Re: Questions aboutmusmon/insert

Date2008-10-21 19:20
FromMichael Gogins
SubjectRe: [Cs-dev] Sample accurate k-rate was Re: Questions aboutmusmon/insert
This is a very reasonable solution with the current implementation.

My musical education and experience suggest that performance action precision is 5 milliseconds at best, therefore performance perception precision is probably somewhat less than that, so 2 ms or so is probably the very, very best anyone can hear. Actual research would be nice, however.

Thought experiment: listen to fast runs in high octaves on the piano... Gould, Argerich... 4/4 Presto (MM 200) 16th notes... each note is about 75 ms... I believe I can distinctly hear if the run is even or uneven... hmm!

In CsoundVST, the orchestra is usually running at sr = 44100 and ksmps = 15 = 0.00034 seconds (0.34 ms)... that would seem to be more than adequate.

Regards,
Mike


-----Original Message-----
>From: victor 
>Sent: Oct 21, 2008 3:28 AM
>To: Developer discussions 
>Subject: Re: [Cs-dev] Sample accurate k-rate was Re: Questions aboutmusmon/insert
>
>yes, all opcodes work on chunks. Changing this is a major task.
>But: running at ksmps=10, for my perception is enough. I must say
>I can't distinguish events that are less than 1ms from their correct
>start time. Csound seems to run fast enough, too, with that k-rate.
>
>Regards
>
>Victor
>
>----- Original Message ----- 
>From: "Jonatan Liljedahl" 
>To: "Developer discussions" 
>Sent: Monday, October 20, 2008 10:40 PM
>Subject: Re: [Cs-dev] Sample accurate k-rate was Re: Questions 
>aboutmusmon/insert
>
>
>I actually thought that events could start within a k-rate cycle,
>because I saw an "unsigned long start_kcnt" in the eventnode struct and
>assumed this was it's usage. But maybe it's actually start time measured
>in k-rate cycles?
>
> typedef struct eventnode {
>    struct eventnode  *nxt;
>    unsigned long     start_kcnt;
>    EVTBLK            evt;
>  } EVTNODE;
>
>jitter-free event scheduling would be very nice. But maybe many opcodes
>assume they work on whole k-rate chunks?
>
>Victor Lazzarini wrote:
>> But the event start times will always be at k-rate boundaries,
>> unless we change the whole system.
>>
>> At 17:09 20/10/2008, you wrote:
>>> I understand that all events are rounded to k-periods (e.g. score and
>>> MIDI events), so when you increase the size of kr, you are actually
>>> adding jitter to the precision of event timing. It would be nice if
>>> events had some sort of time stamp that indicated to which sample
>>> within the k period the event belonged to, so that opcodes that want
>>> to take advantage of this can do so, while others can simply ignore it
>>> and continue with the previous behavior. This would enable sample
>>> accurate syncing of events even if the opcode receives k-rate
>>> information. The opcode would have to keep track of this internally,
>>> naturally.
>>> My goal is to have score and MIDI events with no jitter, no matter the
>>> size of kr. Maybe there's a better way to do this?
>>>
>>> Cheers,
>>> Andrés
>>>
>>> On Mon, Oct 20, 2008 at 9:23 AM, Victor Lazzarini
>>>  wrote:
>>>> Explain a little more , please?
>>>>
>>>> At 15:09 20/10/2008, you wrote:
>>>>> How hard would it be to time tag events within a control period? It
>>>>> would be great if opcodes could have sample accurate processing of
>>>>> k-rate signals (like MIDI for instance).
>>>>>
>>>>> Cheers,
>>>>> Andrés
>>>>>
>>>>> On Mon, Oct 20, 2008 at 5:43 AM, jpff  wrote:
>>>>>> That is one of my current concerns -- I have not looked at Beatmode.
>>>>>> Anyone got a simple example I can try?
>>>>>> ==John ffitch
>>>>>>
>>>>>>
>>> -------------------------------------------------------------------------
>>>>>> This SF.Net email is sponsored by the Moblin
>>>>> Your Move Developer's challenge
>>>>>> Build the coolest Linux based applications
>>>>> with Moblin SDK & win great prizes
>>>>>> Grand prize is a trip for two to an Open
>>> Source event anywhere in the world
>>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>>
>>>>> Andrés
>>>>>
>>>>> -------------------------------------------------------------------------
>>>>> This SF.Net email is sponsored by the Moblin
>>> Your Move Developer's challenge
>>>>> Build the coolest Linux based applications
>>> with Moblin SDK & win great prizes
>>>>> Grand prize is a trip for two to an Open Source event anywhere in the 
>>>>> world
>>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> Victor Lazzarini
>>>> Music Technology Laboratory
>>>> Music Department
>>>> National University of Ireland, Maynooth
>>>>
>>>>
>>>> -------------------------------------------------------------------------
>>>> This SF.Net email is sponsored by the Moblin
>>> Your Move Developer's challenge
>>>> Build the coolest Linux based applications
>>> with Moblin SDK & win great prizes
>>>> Grand prize is a trip for two to an Open Source event anywhere in the 
>>>> world
>>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>>
>>> --
>>>
>>>
>>> Andrés
>>>
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's 
>>> challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great 
>>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the 
>>> world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> Victor Lazzarini
>> Music Technology Laboratory
>> Music Department
>> National University of Ireland, Maynooth
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's 
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great 
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the 
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>-- 
>/Jonatan         [ http://kymatica.com ]
>
>-------------------------------------------------------------------------
>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>Build the coolest Linux based applications with Moblin SDK & win great 
>prizes
>Grand prize is a trip for two to an Open Source event anywhere in the world
>http://moblin-contest.org/redirect.php?banner_id=100&url=/
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel 
>
>
>
>-------------------------------------------------------------------------
>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>Build the coolest Linux based applications with Moblin SDK & win great prizes
>Grand prize is a trip for two to an Open Source event anywhere in the world
>http://moblin-contest.org/redirect.php?banner_id=100&url=/
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https