mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-04 16:51:37 -05:00
-Selecting "special" clips in GUI possible, tested with APC footpedal
This commit is contained in:
parent
da92d83c84
commit
59c46e3dfd
1 changed files with 12 additions and 0 deletions
|
@ -272,6 +272,7 @@ int ClipSelector::handle(int event)
|
|||
{0},
|
||||
//{ "Record" },
|
||||
{ "Use as tempo" },
|
||||
{ "Special select"},
|
||||
{ "Rename" },
|
||||
{ "Clear" },
|
||||
{ 0 }
|
||||
|
@ -312,6 +313,17 @@ int ClipSelector::handle(int event)
|
|||
EventLooperUseAsTempo e (ID, clipNum);
|
||||
writeToDspRingbuffer( &e );
|
||||
}
|
||||
else if ( strcmp(m->label(), "Special select") == 0 )
|
||||
{
|
||||
printf("special selected %i, %i\n", ID, clipNum );
|
||||
// turn on special selection, send note event, turn off selection:
|
||||
EventGridSelectClipEnable e1(true);
|
||||
writeToDspRingbuffer( &e1 );
|
||||
EventGridEvent e2(ID, clipNum, true);
|
||||
writeToDspRingbuffer( &e2 );
|
||||
EventGridSelectClipEnable e3(false);
|
||||
writeToDspRingbuffer( &e3 );
|
||||
}
|
||||
else if ( strcmp(m->label(), "Rename") == 0 )
|
||||
{
|
||||
const char* name = fl_input( "Clip name: ", clips[clipNum].getName().c_str() );
|
||||
|
|
Loading…
Add table
Reference in a new issue