add process_samples + encode for graph
fix max value to widget max
remove debug infos