Comments (4)
Absolutely! Here we're talking about the mean duration, which is computed as follows (in pseudocode):
# 1 position == 1/12 quarter note
mesh = np.logspace(0, 7, 32+1, base=2) # log space between 1 and 128 positions (~2.5 bars)
mean_durations = []
for bar in bars:
mean_duration = mean(duration_in_positions(note)) for note in bar.notes)
mean_duration = quantize_to_mesh(mean_duration, mesh)
mean_durations.append(mean_duration)
Note that the mean duration is only used for the description and does not correspond 1:1 with the duration indices for notes. In case you're referring to note durations: In the REMI+ representation, note durations are actually quantized to a different mesh, which is chosen in a way to have a high resolution for shorter notes and a lower resolution for longer notes (see constants.py
for the exact mesh).
I hope this helps, lmk if you still have questions.
from figaro.
Thank you very much for the quick response, this already helps me a lot!
Now, just out of curiousity, if "mean duration does not correspond 1:1 with the duration indices for notes": how does it correspond then? Or are you referring to the quantization to the different mesh in REMI+?
from figaro.
Yes, exactly, I’m referring to the fact that a different mesh is used for quantizing mean durations vs. note durations. To get actual durations from REMI+/description tokens, you’d have to first de-quantize them by indexing the respective mesh.
from figaro.
Alright, thx again! I'll let you know if I have any more questions.
from figaro.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from figaro.