mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-04 16:51:37 -05:00
whitespace
This commit is contained in:
parent
dbf38ceea8
commit
b3dc3693d7
6 changed files with 17 additions and 17 deletions
|
@ -32,7 +32,7 @@ namespace Avtk
|
||||||
{
|
{
|
||||||
|
|
||||||
ClipSelector::ClipSelector( int _x, int _y, int _w, int _h,
|
ClipSelector::ClipSelector( int _x, int _y, int _w, int _h,
|
||||||
const char *_label, bool master ) :
|
const char *_label, bool master ) :
|
||||||
Fl_Button(_x, _y, _w, _h)
|
Fl_Button(_x, _y, _w, _h)
|
||||||
{
|
{
|
||||||
copy_label(_label);
|
copy_label(_label);
|
||||||
|
|
|
@ -97,7 +97,7 @@ class ClipSelector : public Fl_Button
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ClipSelector( int _x, int _y, int _w, int _h,
|
ClipSelector( int _x, int _y, int _w, int _h,
|
||||||
const char *_label, bool master = false);
|
char *_label, bool master = false);
|
||||||
|
|
||||||
int ID;
|
int ID;
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
event.hxx
|
event.hxx
|
||||||
|
|
||||||
This file provides declarations for each type of event that the engine uses.
|
This file provides declarations for each type of event that the engine uses.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -307,10 +307,10 @@ void handleDspEvents()
|
||||||
break;
|
break;
|
||||||
/*{
|
/*{
|
||||||
if ( availableRead >= sizeof(EventFxReverb) ) {
|
if ( availableRead >= sizeof(EventFxReverb) ) {
|
||||||
EventFxReverb ev;
|
EventFxReverb ev;
|
||||||
jack_ringbuffer_read( rbToDsp, (char*)&ev, sizeof(EventFxReverb) );
|
jack_ringbuffer_read( rbToDsp, (char*)&ev, sizeof(EventFxReverb) );
|
||||||
// TODO implement reverb
|
// TODO implement reverb
|
||||||
break; }
|
break; }
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
case Event::TRACK_VOLUME: {
|
case Event::TRACK_VOLUME: {
|
||||||
|
|
|
@ -72,9 +72,9 @@ LooperClip* Looper::getClip(int scene)
|
||||||
|
|
||||||
void Looper::beat()
|
void Looper::beat()
|
||||||
{
|
{
|
||||||
//TODO needed?
|
//TODO needed?
|
||||||
//FIXME: Need to keep looperClips in sync when there exists no int N
|
//FIXME: Need to keep looperClips in sync when there exists no int N
|
||||||
// such that playSpeed*N==1
|
// such that playSpeed*N==1
|
||||||
// for(int i=0;i<NSCENES;i++)
|
// for(int i=0;i<NSCENES;i++)
|
||||||
// {
|
// {
|
||||||
// int iph=clips[i]->getPlayhead()+1.0;
|
// int iph=clips[i]->getPlayhead()+1.0;
|
||||||
|
@ -113,7 +113,7 @@ void Looper::process(unsigned int nframes, Buffers* buffers)
|
||||||
clips[clip]->queuePlay(true);
|
clips[clip]->queuePlay(true);
|
||||||
|
|
||||||
if ( clips[clip]->recordSpaceAvailable() < LOOPER_SAMPLES_BEFORE_REQUEST &&
|
if ( clips[clip]->recordSpaceAvailable() < LOOPER_SAMPLES_BEFORE_REQUEST &&
|
||||||
!clips[clip]->newBufferInTransit() ) {
|
!clips[clip]->newBufferInTransit() ) {
|
||||||
EventLooperClipRequestBuffer e( track, clip, clips[clip]->audioBufferSize() + LOOPER_SAMPLES_UPDATE_SIZE);
|
EventLooperClipRequestBuffer e( track, clip, clips[clip]->audioBufferSize() + LOOPER_SAMPLES_UPDATE_SIZE);
|
||||||
writeToGuiRingbuffer( &e );
|
writeToGuiRingbuffer( &e );
|
||||||
clips[clip]->newBufferInTransit(true);
|
clips[clip]->newBufferInTransit(true);
|
||||||
|
|
|
@ -114,7 +114,7 @@ void LooperClip::load( AudioBuffer* ab )
|
||||||
}
|
}
|
||||||
|
|
||||||
_buffer = ab;
|
_buffer = ab;
|
||||||
EventClipBeatsChanged e( track, scene, _beatsToRecord, true );
|
EventClipBeatsChanged e( track, scene, _beatsToRecord, true );
|
||||||
writeToGuiRingbuffer( &e );
|
writeToGuiRingbuffer( &e );
|
||||||
|
|
||||||
_playhead = 0;
|
_playhead = 0;
|
||||||
|
@ -155,7 +155,7 @@ void LooperClip::setRequestedBuffer( AudioBuffer* ab )
|
||||||
void LooperClip::recieveSaveBuffer( AudioBuffer* saveBuffer )
|
void LooperClip::recieveSaveBuffer( AudioBuffer* saveBuffer )
|
||||||
{
|
{
|
||||||
if ( saveBuffer->getSize() >= _buffer->getDataL().at(0) ||
|
if ( saveBuffer->getSize() >= _buffer->getDataL().at(0) ||
|
||||||
saveBuffer->getSize() >= _buffer->getDataR().at(0) ) {
|
saveBuffer->getSize() >= _buffer->getDataR().at(0) ) {
|
||||||
// copy current contents into save buffer,
|
// copy current contents into save buffer,
|
||||||
// getData() contains L and R buffer, so twice the size is needed
|
// getData() contains L and R buffer, so twice the size is needed
|
||||||
size_t framesBySize = _buffer->getAudioFrames();
|
size_t framesBySize = _buffer->getAudioFrames();
|
||||||
|
@ -198,11 +198,11 @@ void LooperClip::setBarsToRecord(int bars)
|
||||||
|
|
||||||
int LooperClip::getBeatsToRecord()
|
int LooperClip::getBeatsToRecord()
|
||||||
{
|
{
|
||||||
return _beatsToRecord;
|
return _beatsToRecord;
|
||||||
}
|
}
|
||||||
|
|
||||||
int LooperClip::getBarsToRecord(){
|
int LooperClip::getBarsToRecord(){
|
||||||
return _beatsToRecord / 4;
|
return _beatsToRecord / 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LooperClip::record(int count, float* L, float* R)
|
void LooperClip::record(int count, float* L, float* R)
|
||||||
|
@ -440,8 +440,8 @@ void LooperClip::getSample(float playSpeed, float* L, float* R)
|
||||||
{
|
{
|
||||||
if ( _buffer && (_buffer->getSize() > 0)) {
|
if ( _buffer && (_buffer->getSize() > 0)) {
|
||||||
if ( _playhead >= _recordhead ||
|
if ( _playhead >= _recordhead ||
|
||||||
_playhead >= _buffer->getSize() ||
|
_playhead >= _buffer->getSize() ||
|
||||||
_playhead < 0 ) {
|
_playhead < 0 ) {
|
||||||
_playhead = 0;
|
_playhead = 0;
|
||||||
|
|
||||||
EventGuiPrint e( "LooperClip resetting _playhead" );
|
EventGuiPrint e( "LooperClip resetting _playhead" );
|
||||||
|
|
Loading…
Add table
Reference in a new issue