sugarlabs / musicblocks

Music Blocks -- A musical microworld
https://musicblocks.sugarlabs.org/
GNU Affero General Public License v3.0
539 stars 726 forks source link

Ratio Interval #3918

Open pikurasa opened 4 days ago

pikurasa commented 4 days ago

Description

The Ratio Interval does not work with Hertz and Scalar Step.

There also seems to be unpredictable behavior for Transpose by Ratio, but I don't know if it's related.

Expected Behavior

Regardless of whether the pitch is expressed in hertz, scalar step, or any other way, Ratio Interval should do the same thing: add a second pitch at a given interval, as expressed in a ratio.

Video

ratio-interval-and-transpose-test.webm

Project is linked below:

How to Reproduce

Use this testing project: https://musicblocks.sugarlabs.org/index.html?id=1719438276376628&run=True

Console log Errors:

interval-and-transpose-test-musicblocks.sugarlabs.org-1719440212606.log

pikurasa commented 21 hours ago

@walterbender I think this would be the second priority.