@@ -809,13 +809,13 @@ LfpDisplayOptions::LfpDisplayOptions(LfpDisplayCanvas* canvas_, LfpTimescale* ti
809809 addAndMakeVisible (channelZoomSliderLabel);
810810
811811 // init channel display skipping options
812- channelDisplaySkipOptions.add (" None" );
813- channelDisplaySkipOptions.add (" 1" );
812+ channelDisplaySkipOptions.add (" All" );
814813 channelDisplaySkipOptions.add (" 2" );
815814 channelDisplaySkipOptions.add (" 4" );
816815 channelDisplaySkipOptions.add (" 8" );
817816 channelDisplaySkipOptions.add (" 16" );
818817 channelDisplaySkipOptions.add (" 32" );
818+ channelDisplaySkipOptions.add (" 64" );
819819 selectedChannelDisplaySkip = 1 ;
820820 selectedChannelDisplaySkipValue = channelDisplaySkipOptions[selectedChannelDisplaySkip - 1 ];
821821
@@ -1316,7 +1316,7 @@ void LfpDisplayOptions::comboBoxChanged(ComboBox* cb)
13161316{
13171317 if (cb == channelDisplaySkipSelection)
13181318 {
1319- const int skipAmt = pow (2 , cb->getSelectedId () - 2 );
1319+ const int skipAmt = pow (2 , cb->getSelectedId () - 1 );
13201320 lfpDisplay->setChannelDisplaySkipAmount (skipAmt);
13211321// const int skipAmt = pow(2, cb->getSelectedId() - 2);
13221322//
@@ -2615,7 +2615,8 @@ void LfpDisplay::rebuildDrawableChannelsList()
26152615 }
26162616 else // skip some channels
26172617 {
2618- if (i % (displaySkipAmt + 1 ) == 0 ) // add these channels
2618+ std::cout << " displaySkipAmt = " << displaySkipAmt << std::endl;
2619+ if (i % (displaySkipAmt) == 0 ) // add these channels
26192620 {
26202621 channels[i]->setHidden (false );
26212622 channelInfo[i]->setHidden (false );
0 commit comments