mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-05 17:11:40 -05:00
-Fixed function issue, fixed TimeBase
This commit is contained in:
parent
1e5b9ff162
commit
de952f69f1
2 changed files with 2 additions and 3 deletions
|
@ -3,7 +3,6 @@
|
|||
#define LUPPP_LOOPER_CLIP_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <cstdio> // size_t
|
||||
#include "state/stately.hxx"
|
||||
#include "config.hxx"
|
||||
#include "gridlogic.hxx"
|
||||
|
@ -77,7 +76,7 @@ class LooperClip : public Stately
|
|||
/// Luppp internal buffer resizing
|
||||
void newBufferInTransit(bool n);
|
||||
bool newBufferInTransit();
|
||||
size_t recordSpaceAvailable();
|
||||
unsigned long recordSpaceAvailable();
|
||||
|
||||
/** used to update the size of the buffer for this looperclip. The current
|
||||
* data is copied into the new buffer, then the smaller buffer is sent
|
||||
|
|
|
@ -159,7 +159,7 @@ void TimeManager::process(Buffers* buffers)
|
|||
|
||||
buffers->transportPosition->ticks_per_beat = 1920;
|
||||
|
||||
int bpm = int( samplerate * fpb / 60.0);
|
||||
int bpm = ( samplerate * 60) / fpb;
|
||||
//LUPPP_NOTE("BPM = %i " , bpm );
|
||||
buffers->transportPosition->beats_per_minute = bpm;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue