From 294d7edaf7becb2609fa3eed053ea53aad782ec6 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Mon, 14 Nov 2022 16:02:02 +0100 Subject: [PATCH] Add small sample pool function --- music-normalize/main.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/music-normalize/main.py b/music-normalize/main.py index 4b0b3eac..ba9e6765 100755 --- a/music-normalize/main.py +++ b/music-normalize/main.py @@ -294,3 +294,19 @@ if __name__ == "__main__": # FIXME empty dictionary here print("Dynamically normalized music:") print(nonlinear) + +""" +from multiprocessing.pool import ThreadPool + +def test(i): + return([i,{"2":i*2,"3":i*3}]) + + +list = [1,2,3,4,5] + +with ThreadPool(8) as t: + out = t.starmap(test,zip(list)) + +for i in out: + print(i) +"""