[LAD] GRAME and Faust selected for Google Summer of Code 2023

2023-02-23 Thread Stéphane Letz
Hi All, GRAME and Faust are selected for Google Summer of Code 2023: https://summerofcode.withgoogle.com/programs/2023/organizations/grame Projets ideas here: https://github.com/grame-cncm/faustideas Contributions welcome ! Stéphane ___ Linux-audio-d

[LAD] Re: Admissable clock inaccuracy for MIDI

2023-02-23 Thread Fons Adriaensen
On Wed, Feb 22, 2023 at 03:42:00PM +0100, Fons Adriaensen wrote: > BTW, just using > >sem_timedwait () > > in a RT thread I get > > Min ~ 60 us > Max ~ 135 us > Average ~ 74 us. And using clock_nanosleep (CLOCK_MONOTONIC, TIMER_ABSTIME, &T, 0); in a RT thread I get Min ~

[LAD] Re: Admissable clock inaccuracy for MIDI

2023-02-23 Thread Jeanette C.
Hi Fons, thanks for this tip, The functions look good and helpful. But perhaps I'm not getting something. I made a very simple test program, no RT thread, no special thread at all. https://www.dropbox.com/s/ox9owa6fdd459dt/nanosleep.cpp I tried including both time.h and ctime. The result is that

[LAD] [SOLVED] Re: Re: Admissable clock inaccuracy for MIDI

2023-02-23 Thread Jeanette C.
Feb 23 2023, Jeanette C. has written: ... I made a very simple test program, no RT thread, no special thread at all. https://www.dropbox.com/s/ox9owa6fdd459dt/nanosleep.cpp ... It just needed a function to do clever increasing of the timespec nanoseconds. Best wishes and thanks again, Jeanett

[LAD] Calculating logarithmic curve for controller automation

2023-02-23 Thread Jeanette C.
Hey hey, how is a logarithmic curve usually programmed in a DAW or sequencer? Do you scale the values of (log1) to log(2) to the desired range and stretch it over time? Do you ajudst steepness by either using more less of the log function or changing both values like log(20) to log(21)? I'm s

[LAD] Re: Calculating logarithmic curve for controller automation

2023-02-23 Thread Fons Adriaensen
On Thu, Feb 23, 2023 at 07:09:51PM +0100, Jeanette C. wrote: > how is a logarithmic curve usually programmed in a DAW or sequencer? It's not clear what exactly you are asking... If a = log (b), b = exp (a), what are a and b in your case ? Ciao, -- FA _

[LAD] Re: Calculating logarithmic curve for controller automation

2023-02-23 Thread John Rigg
On Thu, Feb 23, 2023 at 07:09:51PM +0100, Jeanette C. wrote: > Hey hey, > how is a logarithmic curve usually programmed in a DAW or sequencer? Do you > scale the values of (log1) to log(2) to the desired range and stretch it > over time? Do you ajudst steepness by either using more less of the log

[LAD] Re: Calculating logarithmic curve for controller automation

2023-02-23 Thread Jeanette C.
Hi Fons, I don't understand, exactly what you mean. So here's an example. I record some music in a DAW. I have a beat based timeline (bars, beats, ticks and a tempo). Then I want to gradually change the tempo. AFAIK several DAWs offer predefinede curves to do such changes. You may have a linear ch

[LAD] Re: Calculating logarithmic curve for controller automation

2023-02-23 Thread Fons Adriaensen
On Thu, Feb 23, 2023 at 08:43:52PM +0100, Jeanette C. wrote: > In my example: I want to change the tempo from 120BPM to 150BPM over > four bars of equal length. What you want here is probably an exponential mapping from bars or beats to tempo. For example if you want to change from 1 to 4, a li

[LAD] Re: Calculating logarithmic curve for controller automation

2023-02-23 Thread Jeanette C.
Feb 23 2023, Fons Adriaensen has written: ... So if the start and end values are A and B, you would make a linear function from log (A) to log (B), and then use exp () on that to find the tempo at any point. ... Thanks! This is fascinating. Starting with an exponential curve i.e. first get exp(a