vigliensoni / R-VAE

Rhythm generator using Variational Autoencoder(VAE)
MIT License
26 stars 0 forks source link

Fix timeout when creating model and matrix #13

Open vigliensoni opened 4 years ago

vigliensoni commented 4 years ago

When saving a model, the matrix generation is taking a long time (30x30 = 900 sampled points). I'm getting the following error from Node:

node: stack Error: Max API Message Request timed out. id: u15569491665
    at makeError (/Applications/Ableton Live 10 Suite.app/Contents/App-Resources/Max/Max.app/Contents/Resources/C74/packages/Node For Max/source/lib/api/index.js:9:14)
    at Timeout._onTimeout (/Applications/Ableton Live 10 Suite.app/Contents/App-Resources/Max/Max.app/Contents/Resources/C74/packages/Node For Max/source/lib/api/index.js:178:12)
    at listOnTimeout (internal/timers.js:531:17)
    at processTimers (internal/timers.js:475:7)

I should take a look into asynchronous call to the function that is generating and saving the matrix.

vigliensoni commented 4 years ago

As of now, two sets of files are generated:

With the current version, I can do one or the other, not both at the same time for the timeout issue. I should look into async calls.

vigliensoni commented 4 years ago

The issue seems to have been fixed in b6220220e645c5e4b940b9ffe16d2a627f7ff5e8 but still testing.