-GUI sends Record to Looper
This commit is contained in:
parent
953ea89d64
commit
bd848121e7
3 changed files with 7 additions and 3 deletions
|
@ -273,6 +273,10 @@ class ClipSelector : public Fl_Button
|
|||
{
|
||||
case ClipState::CLIP_EMPTY:
|
||||
clips[clipNum].state = ClipState::CLIP_RECORDING;
|
||||
{
|
||||
EventLooperState e = EventLooperState( 0, Looper::STATE_RECORD_QUEUED);
|
||||
writeToDspRingbuffer( &e );
|
||||
}
|
||||
break;
|
||||
case ClipState::CLIP_LOADED:
|
||||
{
|
||||
|
@ -292,7 +296,7 @@ class ClipSelector : public Fl_Button
|
|||
}
|
||||
break;
|
||||
case ClipState::CLIP_RECORDING:
|
||||
clips[clipNum].state = ClipState::CLIP_STOPPING;
|
||||
clips[clipNum].state = ClipState::CLIP_LOADED;
|
||||
break;
|
||||
case ClipState::CLIP_STOPPING:
|
||||
clips[clipNum].state = ClipState::CLIP_PLAYING;
|
||||
|
|
|
@ -148,7 +148,7 @@ void Jack::writeApcOutput( unsigned char* data )
|
|||
if( buf != 0 )
|
||||
{
|
||||
memcpy( buf, data, sizeof( unsigned char ) * 3);
|
||||
cout << "writeApcOutput " << int(buf[0]) << ", " << int(buf[1]) << ", " << int(buf[2]) << endl;
|
||||
//cout << "writeApcOutput " << int(buf[0]) << ", " << int(buf[1]) << ", " << int(buf[2]) << endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -255,7 +255,7 @@ void Looper::setLoopLength(float l)
|
|||
numBeats = 4;
|
||||
|
||||
char buffer [50];
|
||||
sprintf (buffer, "Looper loop lenght = %i", numBeats );
|
||||
sprintf (buffer, "Looper %i loop lenght = %i", track, numBeats );
|
||||
EventGuiPrint e( buffer );
|
||||
writeToGuiRingbuffer( &e );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue