veejay icon indicating copy to clipboard operation
veejay copied to clipboard

reloaded - midi learning events

Open game-stop opened this issue 10 years ago • 0 comments

Not all video4linux events have their midi learning counter part

see usage of vj_midi_learning_vims_complex

void    on_v4l_saturation_value_changed(GtkWidget *widget, gpointer user_data)
{
    if(!info->status_lock)
    {
        multi_vims( VIMS_STREAM_SET_SATURATION, "%d %d",
            info->selected_slot->sample_id,
            (gint) (GTK_ADJUSTMENT(GTK_RANGE(widget)->adjustment)->value * 65535.0) );
    vj_midi_learning_vims_complex( info->midi, "v4l_saturation", VIMS_STREAM_SET_SATURATION, info->selected_slot->sample_id,
            1 );

    }
}

/* no midi support yet for the following v4l controls (FIXME) */
void    on_v4l_gain_value_changed(GtkWidget *widget, gpointer user_data)
{
    if(!info->status_lock)
    {
        multi_vims( VIMS_STREAM_SET_V4LCTRL, "%d %d gain", info->selected_slot->sample_id,(int)(GTK_ADJUSTMENT(GTK_RANGE(widget)->adjustment)->value * 65535.0) ); 
    }
}

game-stop avatar Apr 09 '16 08:04 game-stop