Giter Site home page Giter Site logo

change tempo about musicblocks HOT 9 CLOSED

sugarlabs avatar sugarlabs commented on June 11, 2024
change tempo

from musicblocks.

Comments (9)

walterbender avatar walterbender commented on June 11, 2024

I added a constant in logo.js to tweak the timing of notes. To my ear and by measurement using the Time block, setting BPMFACTOR = 2 gives us 120 quarter notes per minute. @pikurasa maybe you could test other values and determine a good default?

@khandelwalYash I cannot seem to get Tonejs to set bpm nor does it seem that the default of 120 is what we are hearing.

from musicblocks.

pikurasa avatar pikurasa commented on June 11, 2024

Okay, I will think about it.

Off the top of my head, 120 seemed a little brisk and 60 was too slow. Maybe in the 90-100 area...

I am going for a "mindful and singable" speed.

Devin

from musicblocks.

walterbender avatar walterbender commented on June 11, 2024

I made the code a bit more explicit and exposed BPM in the UI (under the Tone palette). I want to make this work properly in the Tone.js framework, but to my ear the current work-around is working. (Also set the default to 90.)

from musicblocks.

khandelwalYash avatar khandelwalYash commented on June 11, 2024

BPM can be changed by using .bpm member of Tone.Transport.
Its default value is 120, it is mentioned the link -> http://tonejs.org/docs/#Transport

from musicblocks.

walterbender avatar walterbender commented on June 11, 2024

Yes. But I think the problem is we are sending a time interval when we play
notes, not a note specification. So I don't think it is doing anything.

On Sun, Oct 11, 2015 at 9:03 AM, Yash Khandelwal [email protected]
wrote:

BPM can be changed by using .bpm member of Tone.Transport.
Its default value is 120, it is mentioned the link ->
http://tonejs.org/docs/#Transport


Reply to this email directly or view it on GitHub
https://github.com/walterbender/musicblocks/issues/18#issuecomment-147191346
.

Walter Bender
Sugar Labs
http://www.sugarlabs.org

from musicblocks.

pikurasa avatar pikurasa commented on June 11, 2024

I think that you got this working pretty well so far. Tested a few BPM against my metronome (60,90,120,240) and they checked out.

One note: I am able to input zero as an argument for BPM. I think we need (explicit) lower level. The lower limit on my metronome, for example, is 36 (It is all kind of arbitrary, but "0" doesn't make any sense at all).

screenshot - 10132015 - 02-19-32 pm why can i even input a zero as tempo argument

from musicblocks.

walterbender avatar walterbender commented on June 11, 2024

I think I do check for < 30 and > 1000 but I don't report it to the user.
Please check again with the latest patch: it will change 0 to 30 but also
issue a warning.

On Tue, Oct 13, 2015 at 2:23 PM, Devin Ulibarri [email protected]
wrote:

I think that you got this working pretty well so far. Tested a few BPM
against my metronome (60,90,120,240) and they checked out.

One note: I am able to input zero as an argument for BPM. I think we need
(explicit) lower level. The lower limit on my metronome, for example, is 36
(It is all kind of arbitrary, but "0" doesn't make any sense at all).

[image: screenshot - 10132015 - 02-19-32 pm why can i even input a zero as
tempo argument]
https://cloud.githubusercontent.com/assets/13454579/10464093/01018654-71b6-11e5-8d82-50a2fae46d7c.png


Reply to this email directly or view it on GitHub
https://github.com/walterbender/musicblocks/issues/18#issuecomment-147803140
.

Walter Bender
Sugar Labs
http://www.sugarlabs.org

from musicblocks.

pikurasa avatar pikurasa commented on June 11, 2024

Seems to work.

screenshot - 10152015 - 09-29-47 am warning works
screenshot - 10152015 - 09-30-22 am upper limit of 1000

from musicblocks.

walterbender avatar walterbender commented on June 11, 2024

there are some design questions that will be raised in a new issue.

from musicblocks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.