@@ -45,7 +45,7 @@ public ShinNFDebug(DisplayOpenGL parent, IVisualizer visualizer, Dictionary<stri
45
45
{
46
46
this . HostWindow = parent ;
47
47
Configurer . Configure ( this , config ) ;
48
- this . RawDataIn = new float [ ColorChord . NoteFinder . AllBinValues . Length ] ;
48
+ this . RawDataIn = new float [ ColorChord . NoteFinder . AllBinValues . Length * 2 ] ;
49
49
}
50
50
51
51
public bool SupportsFormat ( IVisualizerFormat format ) => true ;
@@ -115,10 +115,11 @@ public void Render()
115
115
if ( ! this . SetupDone ) { return ; }
116
116
this . Shader ! . Use ( ) ;
117
117
118
- if ( this . RawDataIn . Length != ColorChord . NoteFinder . AllBinValues . Length ) { this . RawDataIn = new float [ ColorChord . NoteFinder . AllBinValues . Length ] ; }
118
+ if ( this . RawDataIn . Length != ColorChord . NoteFinder . AllBinValues . Length * 2 ) { this . RawDataIn = new float [ ColorChord . NoteFinder . AllBinValues . Length * 2 ] ; }
119
119
ColorChord . NoteFinder . AllBinValues . CopyTo ( this . RawDataIn ) ;
120
+ ( ( ShinNoteFinder ) ColorChord . NoteFinder ) . RecentBinChanges . CopyTo ( this . RawDataIn , ColorChord . NoteFinder . AllBinValues . Length ) ;
120
121
GL . ActiveTexture ( TextureUnit . Texture0 ) ;
121
- GL . TexImage2D ( TextureTarget . Texture2D , 0 , PixelInternalFormat . R32f , ColorChord . NoteFinder ! . AllBinValues . Length , 1 , 0 , PixelFormat . Red , PixelType . Float , this . RawDataIn ) ;
122
+ GL . TexImage2D ( TextureTarget . Texture2D , 0 , PixelInternalFormat . R32f , ColorChord . NoteFinder ! . AllBinValues . Length , 2 , 0 , PixelFormat . Red , PixelType . Float , this . RawDataIn ) ;
122
123
GL . ActiveTexture ( TextureUnit . Texture1 ) ;
123
124
GL . TexImage2D ( TextureTarget . Texture2D , 0 , PixelInternalFormat . R8ui , ColorChord . NoteFinder ! . AllBinValues . Length / 8 , 1 , 0 , PixelFormat . RedInteger , PixelType . UnsignedByte , ( ( ShinNoteFinder ) ColorChord . NoteFinder ) . PeakBits ) ;
124
125
GL . ActiveTexture ( TextureUnit . Texture2 ) ;
0 commit comments