-GUI sends Record to Looper

This commit is contained in:
Harry van Haaren 2013-07-25 14:37:55 +01:00
parent 953ea89d64
commit bd848121e7
3 changed files with 7 additions and 3 deletions

View file

@ -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;

View file

@ -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
{

View file

@ -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 );
}